{
  "$id": "https://spinnaker.io/2022/08/UserSecretMetadata.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Describes metadata corresponding to a UserSecret.",
  "properties": {
    "encoding": {
      "description": "The encoding format of the secret payload.",
      "example": "opaque",
      "type": "string"
    },
    "roles": {
      "description": "The set of roles authorized to use this secret.",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "type": {
      "description": "The type of user secret contained in the external secret payload.",
      "type": "string"
    }
  },
  "required": [
    "type",
    "roles"
  ],
  "title": "UserSecretMetadata",
  "type": "object"
}