Encoding money and ISO 8601 timestamps
Integer minor units, UTC timestamps, and uniform property casing enforced by ADP-029.
Primitive representation standards
Eliminate rounding drift and locale timezone bugs across JSON contracts.
| Data type | Bad representation | Standard format | Rule |
|---|---|---|---|
| Money amount | amount: 19.99 (IEEE 754 float) | amount_minor: 1999 + currency: "USD" | ADP-029 |
| Zero-decimal currency | Assumed / 100 everywhere | amount_minor: 5000 + currency: "JPY" | ADP-029 |
| Timestamps | Ambiguous int epoch or local offset | 2026-11-18T10:00:00Z (date-time) | ADP-022 |
| JSON property casing | Mixing order_id and createdAt | All snake_case or all camelCase | ADP-038 |
Validated monetary and timestamp schema
"amount_minor": { "type": "integer", "minimum": 0, "maximum": 100000000 },
"currency": { "type": "string", "minLength": 3, "maxLength": 3, "example": "USD" },
"created_at": { "type": "string", "format": "date-time", "example": "2026-11-18T10:00:00Z" }Automated float detection
The validator rejects type: number on money properties automatically via ADP-029.