{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amsterdam-nl/json-schema/amsterdam-nl-bagopenbareruimtes-schema.json",
  "title": "Bagopenbareruimtes",
  "description": "Een OPENBARE RUIMTE is een door het bevoegde gemeentelijke orgaan als zodanig aangewezen en van een naam voorziene buitenruimte die binnen één woonplaats is gelegen. Als openbare ruimte worden onder meer aangemerkt weg, water, terrein, spoorbaan en landschappelijk gebied.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amsterdam-nl-bag-openapi.yml#/components/schemas/Bagopenbareruimtes",
  "type": "object",
  "properties": {
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/BagdefaultOpenbareruimtesLinks"
        }
      ],
      "title": " links"
    },
    "identificatie": {
      "type": "string",
      "title": "Openbare ruimte ID",
      "description": "Unieke identificatie van een openbare ruimte"
    },
    "volgnummer": {
      "type": "integer",
      "maximum": 9223372036854775807,
      "minimum": -9223372036854775808,
      "format": "int64",
      "title": "Object volgnummer",
      "description": "Uniek volgnummer van de toestand van het object"
    },
    "plusvolgnummer": {
      "type": [
        "integer",
        "null"
      ],
      "maximum": 9223372036854775807,
      "minimum": -9223372036854775808,
      "format": "int64",
      "title": "Object plus volgnummer",
      "description": "Uniek BAG-plus volgnummer van de toestand van het object"
    },
    "registratiedatum": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "title": "Object registratiedatum",
      "description": "De datum waarop de toestand van het object is geregistreerd"
    },
    "straatcode": {
      "type": [
        "string",
        "null"
      ],
      "title": "Straat code",
      "description": "Dit is een vervallen kenmerk en wordt niet geactualiseerd"
    },
    "straatnaamPtt": {
      "type": [
        "string",
        "null"
      ],
      "title": "Straatnaam PTT",
      "description": "Dit is een vervallen kenmerk en wordt niet geactualiseerd"
    },
    "statusCode": {
      "type": [
        "integer",
        "null"
      ],
      "maximum": 9223372036854775807,
      "minimum": -9223372036854775808,
      "format": "int64",
      "title": "Openbare ruimte status code",
      "description": "De levenscyclus van een OPENBARE RUIMTE waarin de betreffende openbare ruimte zich bevindt. Code"
    },
    "statusOmschrijving": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte status omschrijving",
      "description": "De levenscyclus van een OPENBARE RUIMTE waarin de betreffende openbare ruimte zich bevindt. Omschrijving"
    },
    "beginGeldigheid": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "title": "Openbare ruimte geldigheid begindatum",
      "description": "De ingangsdatum van de geldigheid van een bepaalde combinatie van gegevens over een OPENBARE RUIMTE"
    },
    "eindGeldigheid": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "title": "Openbare ruimte geldigheid einddatum",
      "description": "De einddatum van de geldigheid van een bepaalde combinatie van gegevens over een OPENBARE RUIMTE"
    },
    "geconstateerd": {
      "type": [
        "boolean",
        "null"
      ],
      "title": "Openbare ruimte geconstateerd indicatie",
      "description": "Een aanduiding waarmee kan worden aangegeven dat een openbare ruimte in de registratie is opgenomen als gevolg van een feitelijke constatering, zonder dat er op het moment van opname sprake was van een regulier brondocument voor deze opname"
    },
    "typeCode": {
      "type": [
        "integer",
        "null"
      ],
      "maximum": 9223372036854775807,
      "minimum": -9223372036854775808,
      "format": "int64",
      "title": "Openbare ruimte type code",
      "description": "De aard van de zodanig benoemde openbare ruimte. Code"
    },
    "typeOmschrijving": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte type omschrijving",
      "description": "De aard van de zodanig benoemde openbare ruimte. Omschrijving"
    },
    "documentdatum": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "title": "Brondocument datum",
      "description": "De datum waarop het brondocument is vastgesteld"
    },
    "documentnummer": {
      "type": [
        "string",
        "null"
      ],
      "title": "Brondocument nummer",
      "description": "Het unieke nummer van het brondocument"
    },
    "naam": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte naam",
      "description": "Officiële naam openbare ruimte (80 tekens)"
    },
    "naamNen": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte NEN naam",
      "description": "Straatnaam volgens de inkortingsregels van NEN 5825 (24 tekens)"
    },
    "ligtInWoonplaatsId": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte ligt in woonplaats",
      "description": "De woonplaats (landelijke identificatie) waarin de openbare ruimte ligt",
      "readOnly": true,
      "deprecated": true
    },
    "beschrijvingNaam": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte naam beschrijving",
      "description": "Beschrijving van de openbare ruimte bijvoorbeeld: Vogel. Wereldwijd ......... grootste zeevogel ter wereld"
    },
    "heeftDossierId": {
      "type": [
        "string",
        "null"
      ],
      "title": "Openbare ruimte heeft dossier",
      "description": "Het dossier op basis waarvan het object is toegevoegd aan de registratie",
      "readOnly": true,
      "deprecated": true
    },
    "bagprocesCode": {
      "type": [
        "integer",
        "null"
      ],
      "maximum": 9223372036854775807,
      "minimum": -9223372036854775808,
      "format": "int64",
      "title": "BAG proces code",
      "description": "Functionele handeling die ten grondslag ligt aan de gebeurtenis. code"
    },
    "bagprocesOmschrijving": {
      "type": [
        "string",
        "null"
      ],
      "title": "BAG proces omschrijving",
      "description": "Functionele handeling die ten grondslag ligt aan de gebeurtenis. omschrijving"
    },
    "geometrie": {
      "$ref": "#/$defs/Geometry"
    },
    "datumActueelTot": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "title": "Actueel tot datum",
      "description": "Einddatum van de cyclus, eventueel in combinatie met het kenmerk Status"
    },
    "opgemaakteNaam": {
      "type": [
        "string",
        "null"
      ],
      "title": "Opgemaakte openbare ruimte naam",
      "description": "Officiële naam openbare ruimte, buiten Amsterdam gecombineerd met de woonplaatsnaam"
    }
  },
  "required": [
    "_links",
    "heeftDossierId",
    "identificatie",
    "ligtInWoonplaatsId",
    "volgnummer"
  ],
  "$defs": {
    "BagOpenbareruimtesLink": {
      "type": "object",
      "description": "The identifier of the relationship to openbareruimtes.",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "title": {
          "type": "string"
        },
        "identificatie": {
          "type": "string",
          "title": "Openbare ruimte ID",
          "description": "Unieke identificatie van een openbare ruimte"
        },
        "volgnummer": {
          "type": "integer",
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "format": "int64",
          "title": "Object volgnummer",
          "description": "Uniek volgnummer van de toestand van het object"
        }
      },
      "required": [
        "href",
        "identificatie",
        "title",
        "volgnummer"
      ]
    },
    "BagWoonplaatsenLink": {
      "type": "object",
      "description": "The identifier of the relationship to woonplaatsen.",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "title": {
          "type": "string"
        },
        "identificatie": {
          "type": "string",
          "title": "Woonplaats ID",
          "description": "Unieke aanduiding van een woonplaats"
        },
        "volgnummer": {
          "type": "integer",
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "format": "int64",
          "title": "Object volgnummer",
          "description": "Uniek volgnummer van de toestand van het object"
        }
      },
      "required": [
        "href",
        "identificatie",
        "title",
        "volgnummer"
      ]
    },
    "BagdefaultOpenbareruimtesLinks": {
      "type": "object",
      "description": "The contents of the `openbareruimtes._links` field. It contains all relationships with objects.",
      "properties": {
        "schema": {
          "type": "string",
          "format": "uri",
          "description": "The schema field is exposed with every record",
          "readOnly": true
        },
        "self": {
          "$ref": "#/$defs/BagOpenbareruimtesLink"
        },
        "ligtInWoonplaats": {
          "$ref": "#/$defs/BagWoonplaatsenLink"
        },
        "heeftDossier": {
          "$ref": "#/$defs/BagdossiersLink"
        },
        "heeftOnderzoeken": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BagopenbareruimtesHeeftOnderzoeken_M2M"
          }
        }
      },
      "required": [
        "heeftDossier",
        "heeftOnderzoeken",
        "ligtInWoonplaats",
        "schema",
        "self"
      ]
    },
    "BagdossiersLink": {
      "type": "object",
      "description": "The identifier of the relationship to dossiers.",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "title": {
          "type": "string"
        },
        "dossier": {
          "type": "string",
          "title": "Dossier ID",
          "description": "Verwijzing vanuit de overige objectklassen"
        }
      },
      "required": [
        "dossier",
        "href",
        "title"
      ]
    },
    "BagopenbareruimtesHeeftOnderzoeken_M2M": {
      "type": "object",
      "description": "The M2M table for `Openbareruimtes.heeftOnderzoeken` that links to `Onderzoeken`",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "title": {
          "type": "string",
          "readOnly": true
        },
        "identificatie": {
          "type": [
            "string",
            "null"
          ]
        },
        "volgnummer": {
          "type": [
            "integer",
            "null"
          ],
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "format": "int64"
        },
        "beginGeldigheid": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "eindGeldigheid": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "href",
        "title"
      ]
    },
    "Geometry": {
      "type": "object",
      "description": "GeoJSON geometry",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Point",
            "LineString",
            "Polygon",
            "MultiPoint",
            "MultiLineString",
            "MultiPolygon"
          ],
          "description": "the geometry type"
        },
        "coordinates": {
          "type": "array",
          "minItems": 2,
          "description": "Based on the geometry type, a point or collection of points.",
          "items": {
            "type": "number"
          }
        }
      }
    }
  }
}