{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stad-gent/json-schema/stad-gent-records-schema.json",
  "title": "records",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stad-gent-openapi.yml#/components/schemas/records",
  "type": "object",
  "properties": {
    "total_count": {
      "type": "integer"
    },
    "_links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/links"
      }
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/record"
      }
    }
  },
  "$defs": {
    "links": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri"
        },
        "rel": {
          "type": "string",
          "enum": [
            "self",
            "first",
            "last",
            "next",
            "dataset",
            "catalog"
          ]
        }
      }
    },
    "record": {
      "type": "object",
      "properties": {
        "_id": {
          "type": "string"
        },
        "_timestamp": {
          "type": "string",
          "format": "dateTime"
        },
        "_size": {
          "type": "integer",
          "format": "int64"
        },
        "_links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/links"
          }
        }
      },
      "additionalProperties": {
        "type": "any"
      }
    }
  }
}