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

Discriminator does not switch Schema #1057

Closed
YousefHaggy opened this issue Nov 14, 2024 · 1 comment
Closed

Discriminator does not switch Schema #1057

YousefHaggy opened this issue Nov 14, 2024 · 1 comment

Comments

@YousefHaggy
Copy link

YousefHaggy commented Nov 14, 2024

There's a similar issue in Swagger
swagger-api/swagger-ui#2438

When using allOf with discriminator for inheritance, RapiDoc just displays the base parent Schema with no notion of the children schema.

ReDoc supports this case, they have a drop down to select the discriminator value and render the matching child Schema

Example: https://github.com/Rebilly/ReDoc/blob/main/docs%2Fimages%2Fdiscriminator-demo.gif

@mrin9
Copy link
Collaborator

mrin9 commented Nov 14, 2024

Duplicate of #170

@mrin9 mrin9 marked this as a duplicate of #170 Nov 14, 2024
@mrin9 mrin9 closed this as completed Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants