PrimitivesLast updated on
Last updated on
Reusable schemas for common data types
Primitives are schemas that are used to represent common data types such as people or addresses.
These are defined in OpenForm as schemas to encourage re-use and consistency across library implementations.
| Primitive | Description |
|---|---|
| Address | Postal address with street, locality, region, postal code, and country |
| Attachment | Attached document data (file name, MIME type, checksum) |
| Bbox | Geographic bounding box defined by southwest and northeast coordinates |
| Coordinate | Geographic coordinate in WGS84 with latitude/longitude in decimal degrees |
| Duration | ISO 8601 duration string (e.g., P1Y, PT30M, P1DT12H) |
| Identification | Identification document details (passport, SSN, driver's license) |
| Metadata | Custom key-value pairs for domain-specific data |
| Money | Monetary amount paired with ISO 4217 currency code |
| Organization | Organization identity with legal and registration details |
| Person | Person name information with required fullName and optional components |
| Phone | Phone number in E.164 format with optional type/extension |
| Signature | Captured signature data (image, timestamp, method) |