Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PropertyNameStrategy KEBAB_CASE #963

Closed
danielmischler opened this issue Oct 8, 2015 · 1 comment
Closed

Add PropertyNameStrategy KEBAB_CASE #963

danielmischler opened this issue Oct 8, 2015 · 1 comment

Comments

@danielmischler
Copy link

With json api (jsonapi.org) as a possible standard way to exchange json data between applications it would be great to have its recommended property naming strategy added to jackson:
http://jsonapi.org/recommendations/#naming
http://guides.emberjs.com/v2.1.0/models/customizing-serializers/#toc_json-api-document

It seems to be CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES just with underscores replaced by dashes :-)

@cowtowncoder
Copy link
Member

I think this is what was dubbed somewhere as "kebab-case"? (https://en.wikipedia.org/wiki/Snake_case).
Sounds reasonable.

There was also a brief discussion on dev list about renaming existing choices (or, rather, adding new replacements, deprecating existing ones), so maybe worth mentioning there.

@cowtowncoder cowtowncoder changed the title Add PropertyNameStrategy DASH_CASE Add PropertyNameStrategy KEBAB_CASE Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants