{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CredentialAttributeValue",
  "title": "CredentialAttributeValue",
  "type": "object",
  "description": "The stored value for a credential attribute",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier of the attribute value"
    },
    "credentialId": {
      "type": "integer",
      "format": "int64",
      "description": "ID of the credential this value belongs to"
    },
    "credentialAttributeId": {
      "type": "integer",
      "format": "int64",
      "description": "ID of the credential attribute definition"
    },
    "userId": {
      "type": "integer",
      "format": "int64",
      "description": "User ID if this is a user-provided attribute value"
    },
    "value": {
      "type": "string",
      "description": "The encrypted attribute value"
    }
  }
}