apigovau / national-api-design-standards

Australian National API Design Standards
35 stars 15 forks source link

Naming conventions - snake_case and camelCase inconsistencies #23

Open coderpatros opened 4 years ago

coderpatros commented 4 years ago

Under the "Message Format" section... For request and response body and query parameter names the message format is RECOMMENDED to use snake-case and If snake-case is not available, it is then RECOMMENDED to use camel case and with the example...

// thisIsCamelCase

{
  "employeeId" : "AB1837"
}

But then further down under the "Field Names" section... Key names MUST be lower-case words, separated by an underscore character, ( _ )