{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Identity",
  "title": "Identity",
  "type": "object",
  "description": "This must be provided to verify primary social, enterprise and passwordless email identities. Also, is needed to verify secondary identities.",
  "additionalProperties": false,
  "required": [
    "user_id",
    "provider"
  ],
  "properties": {
    "user_id": {
      "type": "string",
      "description": "user_id of the identity to be verified.",
      "default": "5457edea1b8f22891a000004"
    },
    "provider": {
      "$ref": "#/components/schemas/IdentityProviderEnum"
    },
    "connection_id": {
      "type": "string",
      "description": "connection_id of the identity.",
      "pattern": "^con_[A-Za-z0-9]{16}$"
    }
  }
}