OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

csaf message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: First question that comes up when creating a JSON schema - what's the naming convention for fields?


Options seem to be:
"snake_case"
"camelCase"
"CamelCase"

Hyphens definitely a bad idea.

_javascript_ convention suggests "camelCase" is the right choice. JSON schema itself follows "camelCase".

Does anyone know if OASIS has established a best practice here, or if other TCs have set an OASIS precedent that we should follow? (OData appears to use "camelCase").

Absent feedback from anyone, I'm going to assume "camelCase".

Eric.

P.S. Style guides from around the web: Google, Apiary, JSON-API . I found lots of other examples of people using camelCase, but no explicit style guides that mention JSON patterns.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]