OpenForm

Primitives

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.

PrimitiveDescription
AddressPostal address with street, locality, region, postal code, and country
AttachmentAttached document data (file name, MIME type, checksum)
BboxGeographic bounding box defined by southwest and northeast coordinates
CoordinateGeographic coordinate in WGS84 with latitude/longitude in decimal degrees
DurationISO 8601 duration string (e.g., P1Y, PT30M, P1DT12H)
IdentificationIdentification document details (passport, SSN, driver's license)
MetadataCustom key-value pairs for domain-specific data
MoneyMonetary amount paired with ISO 4217 currency code
OrganizationOrganization identity with legal and registration details
PersonPerson name information with required fullName and optional components
PhonePhone number in E.164 format with optional type/extension
SignatureCaptured signature data (image, timestamp, method)