JSON
Any JSON-based message MUST conform to the following rules:
All JSON field names MUST follow the Naming Conventions (
camelCase
, American English, etc.)Field names MUST be ASCII alpha num characters, underscore (
_
) or dollar sign ($
)Boolean fields MUST NOT be of
null
valueFields with
null
value SHOULD be omittedEmpty arrays and objects SHOULD NOT be
null
(use[]
or{}
instead)Array field names SHOULD be plural (e.g.
"orders": []
)
Validation
All API designers MUST validate the definition of the payloads in requests/responses with the JSON Schema for the defined structure prior to the publication of the API Contract in SwaggerHub.
The publication of the JSON schema corresponding to the expected payloads in the bodies of requests and responses SHOULD be kept up to date according to the evolution of the API.
Last updated