{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postnl/json-schema/postnl-postalcode-check-response-schema.json",
  "title": "postalcodeCheckResponse",
  "description": "Array of addresses found. If no exact match is available, multiple addresses will be returned.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postnl-postalcode-check-api-openapi.yml#/components/schemas/postalcodeCheckResponse",
  "type": "array",
  "items": {
    "$ref": "#/$defs/postalcodeCheckAddress"
  },
  "$defs": {
    "postalcodeCheckAddress": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "description": "City of requested address"
        },
        "postalCode": {
          "type": "string",
          "description": "Postalcode of requested address"
        },
        "streetName": {
          "type": "string",
          "description": "Street of requested address"
        },
        "houseNumber": {
          "type": "integer",
          "description": "Housenumber of requested address"
        },
        "houseNumberAddition": {
          "type": "string",
          "description": "Housenumber addition"
        },
        "formattedAddress": {
          "type": "array",
          "description": "Full formatted address according to PostNL standard (returns each line as a separate string)",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}