{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stackdata-io/json-schema/stackdata-io-catalog-response-schema.json",
  "title": "CatalogResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackdata-io-openapi.json#/components/schemas/CatalogResponse",
  "type": "object",
  "properties": {
    "returned": {
      "$ref": "#/$defs/TypedCount"
    },
    "total": {
      "$ref": "#/$defs/TypedCount"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass back as `cursor` for the next page; `null` means exhausted (explicitly, never by absence)."
    },
    "applied_filters": {
      "type": "object",
      "additionalProperties": true
    },
    "datasets": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "One catalog record as plain values: id, source, title {value, lang, machine}, description, publisher, resource_kind, cadence, status, temporal, formats, licence {spdx, label, is_open}, endpoint, coverage (country list, when observed), first/last seen.\n",
        "additionalProperties": true
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "description": "Attached to every JSON response. `harvest` maps each source id to its last successful harvest timestamp.",
      "properties": {
        "harvest": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "api_version": {
          "type": "string"
        }
      }
    },
    "TypedCount": {
      "type": "object",
      "description": "A count that states whether it is exact — never a bare integer.",
      "required": [
        "value",
        "exact"
      ],
      "properties": {
        "value": {
          "type": "integer"
        },
        "exact": {
          "type": "boolean"
        }
      }
    }
  }
}