oliyh / locksmith

Want to use GraphQL with Clojure/script but don't want keBab or snake_keys everywhere? Use locksmith to change all the keys!
61 stars 2 forks source link

Support UPPERCASE enums #7

Closed devurandom closed 5 years ago

devurandom commented 5 years ago

It seems not uncommon in the GraphQL community to use UPPERCASE for enumeration types (see e.g. https://graphql.github.io/learn/schema/#enumeration-types). Will this be supported in locksmith as another option and alternative to snake_keys?

oliyh commented 5 years ago

Hi,

I agree that this should work.

oliyh commented 5 years ago

It does already support this, with the caveat that the clojure form will be all lowercase (as (->kebab-case "FOO") is "foo").

If this is the convention that camel-snake-kebab takes then I think I would prefer to stick with this.