{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CredentialAttribute",
  "title": "CredentialAttribute",
  "type": "object",
  "description": "An attribute definition associated with a credential",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier of the attribute"
    },
    "name": {
      "type": "string",
      "description": "Attribute name (e.g., username, password)"
    },
    "description": {
      "type": "string",
      "description": "Description of what this attribute contains"
    },
    "masked": {
      "type": "boolean",
      "description": "Whether this attribute's value should be masked in logs and UI"
    },
    "userProvided": {
      "type": "boolean",
      "description": "Whether each user provides their own value for this attribute"
    }
  }
}