Skip to content

Support automatic pluralization of resource types #301

Open
@amysutedja

Description

@amysutedja

AMS produces pluralized resource types by default for all serialized types, whereas fast_jsonapi does not. This makes migration from AMS to fast_jsonapi cumbersome, especially if you have a lot of types.

My original plan was to just write some code to perform the pluralization transform automatically, but it turns out that FastJsonapi::ObjectSerializer calls set_type rather aggressively, which results in my automatic pluralization changes being either ignored or clobbered.

What do you all think about just supporting pluralization of the type directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions