Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Support polymorphic relationships #65

Closed
egmacke opened this issue Sep 1, 2023 · 0 comments · Fixed by #66
Closed

[FR] Support polymorphic relationships #65

egmacke opened this issue Sep 1, 2023 · 0 comments · Fixed by #66
Assignees
Labels
enhancement New feature or request

Comments

@egmacke
Copy link
Collaborator

egmacke commented Sep 1, 2023

Is your feature request related to a problem? *

Sometime a relationship may be polymorpic. For example, the relationship of vehicle could be a Car or a Lorry.

Currently there is no way to provide different relationship serializers based on the value of the relationship.

Describe the solution you'd like*

When defining the relator serializer, it would be good to be able to pass a collection of serializers with a discriminator field.

@egmacke egmacke added the enhancement New feature or request label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants