{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ordogrid/json-schema/ordogrid-client-page-schema.json",
  "title": "ClientPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ordogrid-clients-api-openapi.yml#/components/schemas/ClientPage",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/Client"
      },
      "type": "array"
    },
    "object": {
      "const": "list"
    },
    "pagination": {
      "properties": {
        "has_more": {
          "type": "boolean"
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "object",
    "data",
    "pagination"
  ],
  "type": "object",
  "$defs": {
    "Address": {
      "properties": {
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "postal_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "street": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "street",
        "city",
        "postal_code",
        "country",
        "country_code"
      ],
      "type": "object"
    },
    "Client": {
      "properties": {
        "address": {
          "anyOf": [
            {
              "$ref": "#/$defs/Address"
            },
            {
              "type": "null"
            }
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "object": {
          "const": "client"
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "vat_number": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "object",
        "type",
        "name",
        "email",
        "phone",
        "vat_number",
        "status",
        "address"
      ],
      "type": "object"
    }
  }
}