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

autorest.python can't generate right model for nested polymorphic swagger #2804

Open
msyyc opened this issue Aug 30, 2024 · 0 comments
Open
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved.

Comments

@msyyc
Copy link
Member

msyyc commented Aug 30, 2024

The expected discriminator key for model Shark is sharktype while the generated is kind which is discriminator key of its parent model Fish.

image

@msyyc msyyc self-assigned this Aug 30, 2024
@msyyc msyyc added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved.
Projects
None yet
Development

No branches or pull requests

1 participant