📐 Address schemas
Address schemas provide strict reusable address fragments and the query contract for the address lookup endpoint.
Inventory
| Export | Request location | Contract |
|---|---|---|
address | N/A | Optional array of string address lines. |
postalCode | N/A | Optional string postal code. |
prefecture | N/A | Optional string or null prefecture. |
city | N/A | Optional string city. |
country | N/A | Optional string country. |
addressJPSchema | N/A | Optional Japanese address components. |
partialPostalCodeQueryParameter | Query | Required partial or full Japanese postal code. |
findAddressSchema | Query | Lookup request schema. |
Details
address
Definition
address is a strict object with no required fields.
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| N/A | address | string[] | No | Every array item is a string. |
additionalProperties is false.
Used by route: None directly. Used by feature: None directly.View complete source
postalCode
Definition
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| N/A | postalCode | string | No | No pattern is imposed. |
additionalProperties is false.
Used by route: None directly. Used by feature: None directly.View complete source
prefecture
Definition
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
prefecture | N/A | string | null | No | Null is accepted. |
additionalProperties is false.
Used by route: None directly. Used by feature: None directly.View complete source
city
Definition
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| N/A | city | string | No | City name. |
additionalProperties is false.
Used by route: None directly. Used by feature: None directly.View complete source
country
Definition
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| N/A | country | string | No | Country name. |
additionalProperties is false.
Used by route: None directly. Used by feature: None directly.View complete source
addressJPSchema
Definition
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| N/A | city | string | No | City name. |
| N/A | country | string | No | Country name. |
| N/A | postalCode | string | No | Postal code. |
| N/A | prefecture | string | No | Prefecture name. |
| N/A | street | string | No | Street address. |
additionalProperties is false; the schema has no required fields.
Used by route: None directly. Used by feature: None directly.View complete source
partialPostalCodeQueryParameter
Definition
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| Query | postalCode | string | Yes | Matches ^\d{3}-?\d{0,4}$. |
Spread by findAddressSchema. Used by route: findAddressRoute. Used by feature: findAddressFeature.View complete source
findAddressSchema
Definition
Uses the required postalCode query parameter.
| Location | Field | Type | Required | Constraints |
|---|---|---|---|---|
| Query | postalCode | string | Yes | Matches ^\d{3}-?\d{0,4}$; accepts three digits, an optional hyphen, and zero to four additional digits. |
Used by route: findAddressRoute. Used by feature: findAddressFeature.View complete source