{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-list-dns-zones-response-schema.json",
  "title": "ListDnsZonesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-dns-api-openapi.yml#/components/schemas/ListDnsZonesResponse",
  "type": "object",
  "properties": {
    "_pagination": {
      "description": "Data about pagination like how many results, pages, page size.",
      "allOf": [
        {
          "$ref": "#/$defs/PaginationMeta"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DnsZoneResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/Links"
        }
      ]
    }
  },
  "required": [
    "_pagination",
    "data",
    "_links"
  ],
  "$defs": {
    "DnsZoneResponse": {
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer number"
        },
        "zoneName": {
          "type": "string",
          "description": "Zone name"
        }
      },
      "required": [
        "tenantId",
        "customerId",
        "zoneName"
      ]
    },
    "Links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        },
        "first": {
          "type": "string",
          "description": "Link to first page, if applicable."
        },
        "previous": {
          "type": "string",
          "description": "Link to previous page, if applicable."
        },
        "next": {
          "type": "string",
          "description": "Link to next page, if applicable."
        },
        "last": {
          "type": "string",
          "description": "Link to last page, if applicable."
        }
      },
      "required": [
        "self",
        "first",
        "last"
      ]
    },
    "PaginationMeta": {
      "type": "object",
      "properties": {
        "size": {
          "type": "number",
          "description": "Number of elements per page."
        },
        "totalElements": {
          "type": "number",
          "description": "Number of overall matched elements."
        },
        "totalPages": {
          "type": "number",
          "description": "Overall number of pages."
        },
        "page": {
          "type": "number",
          "description": "Current number of page."
        }
      },
      "required": [
        "size",
        "totalElements",
        "totalPages",
        "page"
      ]
    }
  }
}