← Prev in month
← Prev in thread
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.
← Prev in month
← Prev in thread