{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayrank-com/json-schema/ayrank-com-sitemap-validator-response-schema.json",
  "title": "SitemapValidatorResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayrank-com-openapi.json#/components/schemas/SitemapValidatorResponse",
  "type": "object",
  "required": [
    "input",
    "discovery",
    "sitemap",
    "children",
    "childrenListed",
    "sample",
    "limits",
    "checkedAt",
    "poweredBy"
  ],
  "properties": {
    "input": {
      "type": "string"
    },
    "discovery": {
      "type": "object",
      "description": "mode: sitemap (the URL was read as a sitemap), robots (found in robots.txt) or default (robots.txt had no Sitemap line, so /sitemap.xml). Also robotsUrl, robotsStatus and declared (the Sitemap lines found)."
    },
    "sitemap": {
      "type": "object",
      "description": "url, finalUrl, status (null when there was no answer), redirects, error (blocked, timeout, network, too-many-redirects or null), contentType, gzip and report. report is null unless the file answered 2xx: { kind (urlset, sitemapindex or null), namespace, bytes, entries, lastmod { present, invalid, future }, extensions, issues, errors, warnings }. Each issue is { code, severity (error, warning or info), count, line, samples }. Codes: not-xml, xml-syntax, not-utf8, gzip-error, unknown-root, bad-namespace, bad-entity, unexpected-element, missing-loc, relative-loc, invalid-loc, long-loc, other-host, invalid-lastmod, too-many-entries, too-large, empty, nested-index, doctype, outside-path, future-lastmod, duplicate-loc, invalid-changefreq, invalid-priority, leading-whitespace, truncated, ignored-tags, same-lastmod."
    },
    "children": {
      "type": "array",
      "description": "For a sitemap index: the child sitemaps read, same shape as sitemap. error is skipped when the time budget ran out.",
      "items": {
        "type": "object"
      }
    },
    "childrenListed": {
      "type": "integer",
      "description": "Child sitemaps the index lists."
    },
    "sample": {
      "type": [
        "array",
        "null"
      ],
      "description": "URL status checks, or null when there were no URLs: { url, status (first answer), method (HEAD or GET), outcome (ok, redirect, client-error, server-error, other, rate-limited (429, not counted against the sitemap), blocked, timeout, error or skipped), redirects, finalUrl, finalStatus }. Only a plain 200 is ok.",
      "items": {
        "type": "object"
      }
    },
    "limits": {
      "type": "object",
      "description": "The caps used for this call."
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    },
    "poweredBy": {
      "$ref": "#/$defs/PoweredBy"
    }
  },
  "$defs": {
    "PoweredBy": {
      "type": "object",
      "required": [
        "text",
        "url"
      ],
      "properties": {
        "text": {
          "type": "string",
          "const": "Powered by AY Rank"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}