JSON
Notation follows the APIs index.
- Dates
MUSTbe formatted in ISO 8601 format, such as2026-01-01T00:00:00Z, andMUSTinclude a time zone indicator andSHOULDstandardize on UTC. - Field values that are constrained to a fixed set of values
SHOULDenumerate the valid values in all caps, such asOWNER,ADMIN, andUSER, restricted to only ASCII characters, in both the OpenAPI spec and in example JSON to help distinguish these fields from free-text string fields. At runtime, however, APIsMUSTignore case when validating these values. - APIs
SHOULDstrip leading and trailing whitespace from all strings before processing them. - APIs
MUSTtreat an empty string the same as if the field is not present. - APIs
MUSTtreat a field that is not present the same asnull, except in partial updates. - APIs
SHOULD NOTincludenullfields in responses.
note
- An empty string is treated as not present because a system where
""andnullmean two different things requires every caller, every service, and every database column to agree on the distinction. This can be a challenge to preserve as data gets serialized to and from various representations across various languages and, in our experience, this is one class of bug that can be entirely eliminated by just treating them the same.