cloudcreativity / laravel-json-api

JSON API (jsonapi.org) package for Laravel applications.
http://laravel-json-api.readthedocs.io/en/latest/
Apache License 2.0
780 stars 109 forks source link

Follow JSON:API camelCase recommendation for member names #470

Closed tsterker closed 4 years ago

tsterker commented 4 years ago
lindyhopchris commented 4 years ago

This package uses dash-case throughout as its default. This was because the recommendation was to use dash-case when this package was originally put together.

Changing the default used throughout this package would need to be done on a major version. I.e. for v2 we can change to a default of camel-case, but at the mo on v1 we need to stick to dash-case.

I'll create an issue for that so I don't forget, but in the meantime I won't merge this PR. Thanks for raising the topic though!

lindyhopchris commented 4 years ago

Actually there is already an issue - see #393