{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hamburg-de/json-schema/hamburg-de-feature-collection-geo-json-baustelle-schema.json",
  "title": "featureCollectionGeoJson_baustelle",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hamburg-de-baustellen-openapi.yml#/components/schemas/featureCollectionGeoJson_baustelle",
  "required": [
    "features",
    "type"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "FeatureCollection"
      ]
    },
    "features": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/featureGeoJson_baustelle"
      }
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "timeStamp": {
      "type": "string",
      "description": "This property indicates the time and date when the response was generated.",
      "format": "date-time"
    },
    "numberMatched": {
      "minimum": 0,
      "type": "integer",
      "properties": {
        "numberReturned": {
          "minimum": 0,
          "type": "integer",
          "description": "The number of features in the feature collection.\n\nA server may omit this information in a response, if the information about the number of features is not known or difficult to compute.\n\nIf the value is provided, the value shall be identical to the number of items in the \"features\" array.",
          "format": "int32"
        }
      },
      "description": "The number of features of the feature type that match the selection parameters like `bbox`.",
      "format": "int32"
    }
  },
  "$defs": {
    "Link": {
      "required": [
        "href",
        "rel"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri-reference"
        },
        "rel": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "featureGeoJson_baustelle": {
      "title": "Baustellen",
      "required": [
        "geometry",
        "properties",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Feature"
          ]
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "id": {
          "title": "attr_gml_id",
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "geometry": {
          "$ref": "https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/ogcapi-features-1.yaml#/components/schemas/pointGeoJSON"
        },
        "properties": {
          "type": "object",
          "properties": {
            "gml_identifier": {
              "title": "gml_identifier",
              "type": "string"
            },
            "gml_identifier_attr_codespace": {
              "title": "gml_identifier_attr_codespace",
              "type": "string"
            },
            "titel": {
              "title": "Maßnahme",
              "type": "string"
            },
            "organisation": {
              "title": "Wer baut da?",
              "type": "string"
            },
            "anlass": {
              "title": "Anlass der Baustelle",
              "type": "string"
            },
            "umfang": {
              "title": "Welchen Umfang hat die Baustelle?",
              "type": "string"
            },
            "baubeginn": {
              "title": "Baubeginn",
              "type": "string"
            },
            "bauende": {
              "title": "Bauende",
              "type": "string"
            },
            "letzteaktualisierung": {
              "title": "letzteaktualisierung",
              "type": "string"
            },
            "istzugangeingeschraenkt": {
              "title": "istzugangeingeschraenkt",
              "type": "boolean"
            },
            "einschraenkungsbegruendung": {
              "title": "Einschränkungen",
              "type": "string"
            },
            "koordinate_attr_nilreason": {
              "title": "koordinate_attr_nilreason",
              "type": "string"
            },
            "koordinate_attr_gml_remoteschema": {
              "title": "koordinate_attr_gml_remoteschema",
              "type": "string"
            },
            "koordinate_attr_owns": {
              "title": "koordinate_attr_owns",
              "type": "boolean"
            },
            "iststoerung": {
              "title": "iststoerung",
              "type": "boolean"
            },
            "isthotspot": {
              "title": "isthotspot",
              "type": "boolean"
            },
            "istfreigegeben": {
              "title": "istfreigegeben",
              "type": "boolean"
            },
            "mehrwert": {
              "title": "Mehrwert",
              "type": "string"
            },
            "istoepnveingeschraenkt": {
              "title": "istoepnveingeschraenkt",
              "type": "boolean"
            },
            "oevnveinschraenkungen": {
              "title": "Einschränkung ÖPNV",
              "type": "string"
            },
            "hatinternetlink": {
              "title": "hatinternetlink",
              "type": "boolean"
            },
            "internetlink": {
              "title": "Internetlink",
              "type": "string"
            },
            "hatumleitungsbeschreibung": {
              "title": "hatumleitungsbeschreibung",
              "type": "boolean"
            },
            "umleitungsbeschreibung": {
              "title": "Umleitungsbeschreibung",
              "type": "string"
            },
            "istparkraumeingeschraenkt": {
              "title": "istparkraumeingeschraenkt",
              "type": "boolean"
            },
            "parkraumeinschraenkung": {
              "title": "Hat Parkraumeinschränkung",
              "type": "string"
            },
            "einsatzkraefte": {
              "title": "Einsatzkräfte",
              "type": "string"
            }
          }
        }
      }
    }
  }
}