{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hamburg-de/json-schema/hamburg-de-feature-geo-json-badegewaesser-schema.json",
  "title": "Badegewässer in Hamburg",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hamburg-de-badegewaesser-openapi.yml#/components/schemas/featureGeoJson_badegewaesser",
  "required": [
    "geometry",
    "properties",
    "type"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "Feature"
      ]
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "id": {
      "title": "gid",
      "type": "integer",
      "format": "int32",
      "readOnly": true
    },
    "geometry": {
      "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/schemas/geometryGeoJSON"
    },
    "properties": {
      "type": "object",
      "properties": {
        "name": {
          "title": "name",
          "type": "string"
        },
        "badesaison": {
          "title": "badesaison",
          "type": "string"
        },
        "hinweis": {
          "title": "hinweis",
          "type": "string"
        },
        "eg_einstufung": {
          "title": "eg_einstufung",
          "type": "integer",
          "format": "int32"
        },
        "link_zu_details": {
          "title": "link_zu_details",
          "type": "string"
        },
        "bemerkung_bsu": {
          "title": "bemerkung_bsu",
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "Link": {
      "required": [
        "href",
        "rel"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri-reference"
        },
        "rel": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    }
  }
}