{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zippedscript/json-schema/zippedscript-paginated-contact-serializer-schema.json",
  "title": "PaginatedContactSerializer",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zippedscript-employment-api-openapi.yml#/components/schemas/PaginatedContactSerializer",
  "required": [
    "count",
    "next",
    "previous",
    "results"
  ],
  "type": "object",
  "properties": {
    "count": {
      "title": "Count",
      "description": "Total number of records able to be retrieved",
      "type": "integer"
    },
    "next": {
      "title": "Next",
      "description": "A link to the next page of records",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "title": "Previous",
      "description": "A link to the previous page of records",
      "type": [
        "string",
        "null"
      ]
    },
    "results": {
      "description": "A list of the returned records",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Contact"
      }
    }
  },
  "$defs": {
    "Contact": {
      "description": "A list of the returned records",
      "required": [
        "source_name",
        "country",
        "contact_email"
      ],
      "type": "object",
      "properties": {
        "source_name": {
          "title": "Source name",
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        "country": {
          "title": "Country",
          "type": "string",
          "maxLength": 3,
          "minLength": 1
        },
        "contact_name": {
          "title": "Contact name",
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "contact_title_dept": {
          "title": "Contact title dept",
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "contact_email": {
          "title": "Contact email",
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        }
      }
    }
  }
}