📐 Common schemas
Common schemas provide reusable JSON Schema definitions and OpenAPI parameters for pagination, standard responses, audits, files, and contact data. Address-specific schemas are documented in Address schemas.
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. |
arrayOfStringsSchema | N/A | Array whose items must be strings. |
paginationQueryParametersSchema | Query | Optional bounded page and limit parameters. |
auditSchema | N/A | Audit record with action and actor metadata. |
paginationSchema | N/A | Pagination response metadata. |
errorSchema | N/A | Standard error response. |
successSchema | N/A | Standard success response. |
fileSchema | N/A | Uploaded-file metadata. |
addressSchema | N/A | Required structured address with US postal-code format. |
contactSchema | N/A | Contact details with required email. |
Details
address
Definition
An object with no additional properties and one optional address property. When present, address must be an array containing only strings.View complete source
postalCode
Definition
An object with no additional properties and an optional string postalCode. It does not impose a postal-code pattern.View complete source
prefecture
Definition
An object with no additional properties and an optional prefecture whose value may be a string or null.View complete source
city
Definition
An object with no additional properties and an optional string city.View complete source
country
Definition
An object with no additional properties and an optional string country.View complete source
addressJPSchema
Definition
A strict object for Japanese address data. city, country, postalCode, prefecture, and street are optional strings; the definition has no required array.View complete source
partialPostalCodeQueryParameter
Definition
A required query parameter named postalCode. Its string pattern accepts three digits, an optional hyphen, and zero through four additional digits, so both partial and complete Japanese postal codes are valid.View complete source
findAddressSchema
Definition
A withSchema composition whose parameter list contains only partialPostalCodeQueryParameter. It validates the query contract used by custom address lookup composition.View complete source
arrayOfStringsSchema
Definition
A Draft 7 array definition whose items must be strings. It has no length or uniqueness constraints.View complete source
paginationQueryParametersSchema
Definition
Two optional integer query parameters: page ranges from 1 through 1000, and limit ranges from 1 through 50. Domain schemas spread this array into their own OpenAPI parameter lists, including Chat schemas.View complete source
auditSchema
Definition
An audit record requiring UUID-formatted id, entity_id, and user_id; string entity_type; an action of create, update, or delete; and date-time created_at. Optional changes accepts arbitrary properties.View complete source
paginationSchema
Definition
A pagination metadata object requiring numeric page, limit, total, and total_pages. Page and limit have a minimum of 1; totals have a minimum of 0.View complete source
errorSchema
Definition
An error object requiring string code and message. Optional details is an object that accepts arbitrary properties.View complete source
successSchema
Definition
A success object requiring string message. Optional data is an object that accepts arbitrary properties.View complete source
fileSchema
Definition
File metadata requiring UUID id, string filename and mime_type, nonnegative numeric size, URI url, and date-time created_at.View complete source
addressSchema
Definition
A structured address requiring street, city, state, country, and postal_code. Every field is a string; postal_code accepts five US digits with an optional four-digit extension.View complete source
contactSchema
Definition
A contact object requiring a format-validated email. Optional phone is a string, and optional address accepts an object with arbitrary properties.View complete source