pub struct Address {
pub members: HashMap<String, Value>,
}Expand description
The address member of a PointOfContact (§ 5.3 pointOfContact).
Deliberately free-form, and that is what the normative schema asks for:
metadata.schema.json types address as a bare {"type": "object"} –
no properties, no required, no additionalProperties. The prose says
why in as many words: “any properties can be used, to accommodate the
different ways addresses are structured in different countries” (§ 5.3).
This type used to declare five required members (thoroughfareNumber
typed i64, thoroughfareName, locality, postalCode, country) and
so rejected nearly every legal address – including both of the spec’s own
examples, which spell the number as a string ("134", "24") and the
postcode as postcode, not postalCode. Structure the model does not
actually know is worse than no structure: it turns valid input into a
parse error.
Fields§
§members: HashMap<String, Value>