{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linode/json-schema/linode-paginated-domain-record-list-schema.json",
  "title": "PaginatedDomainRecordList",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linode-domains-api-openapi.yml#/components/schemas/PaginatedDomainRecordList",
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DomainRecord"
          }
        }
      }
    }
  ],
  "$defs": {
    "DomainRecord": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique ID of this domain record."
        },
        "type": {
          "type": "string",
          "enum": [
            "A",
            "AAAA",
            "NS",
            "MX",
            "CNAME",
            "TXT",
            "SRV",
            "PTR",
            "CAA"
          ],
          "description": "The type of DNS record."
        },
        "name": {
          "type": "string",
          "description": "The hostname or FQDN for this record."
        },
        "target": {
          "type": "string",
          "description": "The target for this record."
        },
        "priority": {
          "type": "integer",
          "description": "The priority for MX and SRV records."
        },
        "weight": {
          "type": "integer",
          "description": "The weight for SRV records."
        },
        "port": {
          "type": "integer",
          "description": "The port for SRV records."
        },
        "ttl_sec": {
          "type": "integer",
          "description": "The TTL in seconds for this record."
        },
        "tag": {
          "type": "string",
          "description": "The tag for CAA records."
        }
      }
    },
    "Pagination": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "description": "The current page number."
        },
        "pages": {
          "type": "integer",
          "description": "The total number of pages."
        },
        "results": {
          "type": "integer",
          "description": "The total number of results."
        }
      }
    }
  }
}