Skip to content

QueryParser underscoring of fields and includes doesn't follow field_transformation #432

@grzuy

Description

@grzuy

Hi 👋
Thanks for this library!

It seems that QueryParser uses an underscore function when parsing both query parameters fields and include that just underscores by regex replacing without following or honoring the field_transformation: ... config value.

So this means that if e.g. field_transformation: :camelized is set, an inserted_at would be serialized to insertedAt on a response. However, inserted-at would be allowed and transformed to inserted_at when provided in the request fields query parameter, right? Is that intended?

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