{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stad-gent/json-schema/stad-gent-datasets-schema.json",
  "title": "datasets",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stad-gent-openapi.yml#/components/schemas/datasets",
  "type": "object",
  "properties": {
    "total_count": {
      "type": "integer"
    },
    "_links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/links"
      }
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/dataset"
      }
    }
  },
  "$defs": {
    "dataset": {
      "type": "object",
      "additionalProperties": {},
      "properties": {
        "_links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/links"
          }
        },
        "dataset_id": {
          "type": "string"
        },
        "dataset_uid": {
          "type": "string",
          "readOnly": true
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mimetype": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            }
          }
        },
        "has_records": {
          "type": "boolean"
        },
        "data_visible": {
          "type": "boolean"
        },
        "features": {
          "type": "array",
          "description": "A map of available features for a dataset, with the fields they apply to.\n",
          "items": {
            "type": "string"
          }
        },
        "metas": {
          "type": "object"
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "annotations": {
                "type": "object"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri"
        },
        "rel": {
          "type": "string",
          "enum": [
            "self",
            "first",
            "last",
            "next",
            "dataset",
            "catalog"
          ]
        }
      }
    }
  }
}