# Schema Docs - [If (country = "United States of America")](#autogenerated_heading_2) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `postal_code`](#then_postal_code) - [Else (i.e. country != "United States of America")](#autogenerated_heading_3) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `postal_code`](#else_postal_code) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `street_address`](#street_address) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `country`](#country) | Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | | ## If (country = "United States of America") | Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | |
### ![badge](https://img.shields.io/badge/Optional-yellow) Property `postal_code`
| Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | | | Restrictions | | | --------------------------------- | --------------------------------------------------------------------------------------------------------- | | **Must match regular expression** | ```[0-9]{5}(-[0-9]{4})?``` [Test](https://regex101.com/?regex=%5B0-9%5D%7B5%7D%28-%5B0-9%5D%7B4%7D%29%3F) | | | |
## Else (i.e. country != "United States of America") | Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | |
### ![badge](https://img.shields.io/badge/Optional-yellow) Property `postal_code`
| Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | | | Restrictions | | | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | **Must match regular expression** | ```[A-Z][0-9][A-Z] [0-9][A-Z][0-9]``` [Test](https://regex101.com/?regex=%5BA-Z%5D%5B0-9%5D%5BA-Z%5D+%5B0-9%5D%5BA-Z%5D%5B0-9%5D) | | | |
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `street_address`
| Type | `string` | | ---- | -------- | | | |
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `country`
| Type | `enum (of string)` | | ---- | ------------------ | | | | Must be one of: * "United States of America" * "Canada"
---------------------------------------------------------------------------------------------------------------------------- Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on date