diff --git a/pkg/api/models/secret.go b/pkg/api/models/secret.go index 5d01d506..900b236a 100644 --- a/pkg/api/models/secret.go +++ b/pkg/api/models/secret.go @@ -20,6 +20,11 @@ type SecretMetadata struct { Scope *string `json:"scope,omitempty" yaml:"scope,omitempty"` } +type GetSecretResponseItem struct { + SecretMetadata `yaml:",inline"` + Keys []string `json:"keys" yaml:"keys"` +} + type GetSecretsResponse struct { - Secrets []SecretMetadata `json:"secrets"` + Secrets []GetSecretResponseItem `json:"secrets" yaml:"secrets"` }