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

Generated properties/routes names don't take into account JSONAPI::Resources key/route formatters #9

Open
alexander-e1off opened this issue Oct 20, 2020 · 0 comments

Comments

@alexander-e1off
Copy link

If the following JSONAPI::Resources configuration is used:

JSONAPI.configure do |config|
  config.json_key_format = :camelized_key
...

it is expected to see camelized properties names in generated result, e.g. createdAt instead of created_at.

Probably JSONAPI.configuration.key_formatter / JSONAPI.configuration.route_formatter should be used.

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

1 participant