mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Deletes core-principles/functional.md
Auto commit by GitBook Editor
This commit is contained in:
9
general-guidelines/json.md
Normal file
9
general-guidelines/json.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# JSON Format Conventions
|
||||
Any JSON-based message **MUST** conform to the following rules:
|
||||
|
||||
1. All JSON field names **MUST** follow the [Naming Conventions](https://adidas-group.gitbooks.io/api-guidelines/content/evolution/naming-conventions.html) (`camelCase`, American English, etc.)
|
||||
1. Field names **MUST** be ASCII alpha num characters, underscore (`_`) or dollar sign (`$`)
|
||||
1. Boolean fields **MUST NOT** be of `null` value
|
||||
1. Fields with `null` value **SHOULD** be omitted
|
||||
1. Empty arrays and objects **SHOULD NOT ** be `null` (use `[]` or `{}` instead)
|
||||
1. Array field names **SHOULD** be plural (e.g. `"orders": []`)
|
||||
Reference in New Issue
Block a user