Skip to content

[Request] Support for multiple serializers for one model #329

@JordanFinch72

Description

@JordanFinch72

Is your feature request related to a problem? Please describe.

Hi, again! Our controllers have begun using separate serialisers for each endpoint. For example, ObjectsController#index, #show, #some_other_action would have ObjectIndexSerializer, ObjectSerializer/ObjectShowSerializer, ObjectSomeOtherActionSerializer.

Describe the solution you'd like

It would be cool to be able to have the model annotations on each of these serialisers in addition to the default ObjectSerializer. Also happy if this requires manual configuration, e.g. some YAML file with a mapping.

Describe alternatives you've considered

Nothing springs to mind!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions