{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gzw-data/refs/heads/main/json-schema/gzw-data-MetadataResponse.json",
  "title": "MetadataResponse",
  "description": "Envelope/shared schema \u2014 derived verbatim from components.schemas.MetadataResponse of the provider's published OpenAPI 3.0.3 (4.2.0) at https://gzw-data.dev/api/v1/spec. Field set is generated by the provider from observed data, so it tracks the weekly wiki scrape.",
  "allOf": [
    {
      "$ref": "gzw-data-ObjectResponse.json"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "datasetCount": {
              "type": "integer"
            },
            "datasets": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "file": {
                    "type": "string"
                  },
                  "itemCount": {
                    "type": "integer"
                  },
                  "fields": {},
                  "capabilities": {
                    "$ref": "gzw-data-Capabilities.json"
                  }
                },
                "required": [
                  "name",
                  "itemCount",
                  "fields",
                  "capabilities"
                ]
              }
            }
          }
        }
      }
    }
  ]
}