Skip to content

how do I alter key format when deserializing #121

@bsylvain

Description

@bsylvain

I want to replace dash by underscore in the keys when I deserialize. I tried to alter the Deserializable resource in an initializer :
JSONAPI::Deserializable::Resource.key_formatter = proc {|k| k.to_s.underscore }

and it does not seems to be working. I end up with always the same warning:
Unpermitted parameters: :dasherized-param

It seems there is a way to alter key at deserialization, how can I do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions