Skip to content

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

@alexander-e1off

Description

@alexander-e1off

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions