{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alto-vebra/json-schema/alto-vebra-alto-contacts-api-models-responses-patch-person-response-schema.json",
  "title": "Alto.Contacts.Api.Models.Responses.PatchPersonResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alto-vebra-contacts-api-openapi.yml#/components/schemas/Alto.Contacts.Api.Models.Responses.PatchPersonResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The unique identifier for the resource."
    },
    "links": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Alto.Api.Material.Hateoas.Link"
      },
      "description": "Links to related entities."
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "The formal title of the Person."
    },
    "forename": {
      "type": [
        "string",
        "null"
      ],
      "description": "The first or given name of the Person."
    },
    "surname": {
      "type": [
        "string",
        "null"
      ],
      "description": "The surname of the Person."
    },
    "phoneNumbers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Alto.Contacts.Api.Models.Responses.Phone"
      },
      "description": "A list of the Person's phone numbers."
    },
    "emailAddresses": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Alto.Contacts.Api.Models.Responses.EmailAddress"
      },
      "description": "A list of the Person's email addresses"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Alto.Api.Material.Hateoas.Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": [
            "string",
            "null"
          ]
        },
        "rel": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Alto.Contacts.Api.Models.Responses.EmailAddress": {
      "type": "object",
      "properties": {
        "preferenceOrder": {
          "type": "integer",
          "description": "The numerical order in which email addresses are to be selected.",
          "format": "int32"
        },
        "type": {
          "enum": [
            "Unknown",
            "Personal",
            "Business"
          ],
          "type": "string",
          "description": "The type of email address."
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "The email address."
        }
      },
      "additionalProperties": false
    },
    "Alto.Contacts.Api.Models.Responses.Phone": {
      "type": "object",
      "properties": {
        "preferenceOrder": {
          "type": "integer",
          "description": "The numerical order in which phone numbers are to be selected.",
          "format": "int32"
        },
        "type": {
          "enum": [
            "Unspecified",
            "Home",
            "Business",
            "Mobile",
            "Fax",
            "Work",
            "ISDN"
          ],
          "type": "string",
          "description": "The type of phone number."
        },
        "number": {
          "type": [
            "string",
            "null"
          ],
          "description": "The telephone number for the Contact."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description of the phone number"
        }
      },
      "additionalProperties": false
    }
  }
}