{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:PostalCodeRangeSpecification",
  "title": "PostalCodeRangeSpecification",
  "description": "Indicates a range of postal codes, usually defined as the set of valid codes between [[postalCodeBegin]] and [[postalCodeEnd]], inclusively.",
  "type": "object",
  "allOf": [
    {
      "description": "Structured values are used when the value of a property has a more complex structure than simply being a textual value or a reference to another thing.",
      "$ref": "schema:StructuredValue"
    }
  ],
  "properties": {
    "postalCodeBegin": {
      "description": "First postal code in a range (included).",
      "oneOf": [
        { "type": "string" },
        { "type": "array", "items": { "type": "string" } }
      ]
    },
    "postalCodeEnd": {
      "description": "Last postal code in the range (included). Needs to be after [[postalCodeBegin]].",
      "oneOf": [
        { "type": "string" },
        { "type": "array", "items": { "type": "string" } }
      ]
    }
  }
}
