Closed asbjornu closed 3 years ago
+1 for camelCase; however the request IDs may themselves be derived from an external source and follow their own conventions. So a note in the document about use of camelCase as a preference would be ideal. I/You/We can create a PR to add this.
Thanks for the sharp-eyed observation. I agree that specification itself should be consistent in the names it defines, and keys like consentRequests
are indeed camelCased. The request identifiers, as Harshvardhan mentions, are up for the website to choose. I don’t think it’s up to us to tell websites which faction to join, but I suppose we can try give ‘a good example’. Happy either way, so since there is a PR lying here already I’ll just apply this suggestion.
The current draft uses both
camelCase
andsnake_case
as per the following example:Please consider choosing one naming scheme and use that consistently. Since JSON derives from JavaScript, which in turn uses
camelCase
, I'd recommend to go with that, but no matter which casing you choose, please only use one. Converted tocamelCase
the above example would look like this: