{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hamburg-de/json-schema/hamburg-de-collections-schema.json",
  "title": "Collections",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hamburg-de-badegewaesser-openapi.yml#/components/schemas/Collections",
  "required": [
    "collections",
    "links"
  ],
  "type": "object",
  "properties": {
    "crs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "collections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Collection"
      }
    },
    "description": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "Collection": {
      "required": [
        "id",
        "links"
      ],
      "type": "object",
      "properties": {
        "crs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "itemType": {
          "type": "string"
        },
        "storageCrs": {
          "type": "string"
        },
        "extent": {
          "$ref": "#/$defs/Extent"
        },
        "storageCrsCoordinateEpoch": {
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Extent": {
      "type": "object",
      "properties": {
        "temporal": {
          "$ref": "#/$defs/TemporalExtent"
        },
        "spatial": {
          "$ref": "#/$defs/SpatialExtent"
        }
      }
    },
    "InstantArray": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "date-time"
      }
    },
    "InstantArrayArray": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InstantArray"
      }
    },
    "Link": {
      "required": [
        "href",
        "rel"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri-reference"
        },
        "rel": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "SpatialExtent": {
      "required": [
        "bbox",
        "crs"
      ],
      "type": "object",
      "properties": {
        "crs": {
          "type": "string"
        },
        "bbox": {
          "$ref": "#/$defs/doubleArrayArray"
        }
      }
    },
    "TemporalExtent": {
      "required": [
        "interval",
        "trs"
      ],
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "#/$defs/InstantArrayArray"
        },
        "trs": {
          "type": "string"
        }
      }
    },
    "doubleArray": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "doubleArrayArray": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/doubleArray"
      }
    }
  }
}