{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shepherd-vet/json-schema/shepherd-vet-restcollection-model-base-open-api-client-phone-controller-client-phone-schema.json",
  "title": "RESTCollectionModelBase_OpenApiClientPhoneController.ClientPhone",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shepherd-vet-clientphone-api-openapi.yml#/components/schemas/RESTCollectionModelBase_OpenApiClientPhoneController.ClientPhone",
  "type": "object",
  "properties": {
    "embed": {
      "type": "string"
    },
    "item": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApiClientPhoneController.ClientPhone"
      }
    },
    "page": {
      "format": "int32",
      "type": "integer"
    },
    "recordsPerPage": {
      "format": "int32",
      "type": "integer"
    },
    "searchQuery": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "totalRecords": {
      "format": "int32",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenApiClientPhoneController.ClientPhone": {
      "description": "ClientPhone REST model.",
      "type": "object",
      "properties": {
        "clientId": {
          "description": "Unique identifier representing the related Client entity.",
          "type": "string"
        },
        "clinicId": {
          "description": "Unique identifier represeinting the related Clinic entity.",
          "type": "string"
        },
        "country": {
          "$ref": "#/$defs/OpenApiClientPhoneController.Country",
          "description": "The related Country entity."
        },
        "countryId": {
          "description": "Unique identifier representing the related Country entity.",
          "type": "string"
        },
        "isPrimary": {
          "description": "Flag indicating whether this instance is the primary phone number for the client.",
          "type": "boolean"
        },
        "phoneNumber": {
          "description": "The string value of phone number.",
          "type": "string"
        },
        "phoneType": {
          "$ref": "#/$defs/OpenApiClientPhoneController.PhoneType",
          "description": "The related PhoneType. (e.g Mobile, Home, Work, Other)"
        },
        "phoneTypeId": {
          "description": "Unique identifier representing the related PhoneType entity.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClientPhoneController.Country": {
      "description": "Country REST model.",
      "type": "object",
      "properties": {
        "phoneCode": {
          "description": "The country's phone code (e.g. 1 for the US).",
          "type": "string"
        },
        "abrv": {
          "description": "Short unique identifier for the lookup.",
          "type": "string"
        },
        "description": {
          "description": "The description of the lookup entry.",
          "type": "string"
        },
        "name": {
          "description": "The name of the lookup entry.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClientPhoneController.PhoneType": {
      "description": "PhoneType REST model.",
      "type": "object",
      "properties": {
        "abrv": {
          "description": "Short unique identifier for the lookup.",
          "type": "string"
        },
        "description": {
          "description": "The description of the lookup entry.",
          "type": "string"
        },
        "name": {
          "description": "The name of the lookup entry.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    }
  }
}