-
-
Notifications
You must be signed in to change notification settings - Fork 522
Nested oneOf and allOf when using oneOf with @JsonSubTypes #2655
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
Comments
Also mentioned in #2575 and #2577, which have since been closed This is still broken in 2.6.0
|
I have the same probleme in 2.6.0 |
Do you have any updates on this? Thanks! |
Not reproducible. This ticket will be closed, but can be reopened if your provide the reproducible sample. |
Describe the bug
When I use @JsonSubTypes with @Schema(oneOf = {..}), the model schema shows infinite nested oneOf and allOf. When I remove @JsonSubTypes from the parent model, everything works well. Am i doing something wrong or is this expected behaviour ?
Expected behavior
The expected behavior is to show only the oneOf field. After selecting one of the child classes, it should stop expanding.
Screenshots

The structure of the model
The output

Versions
The text was updated successfully, but these errors were encountered: