We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using swagger core with java structures that have multiple polymorphism use cases.
Swagger core always require to specify oneOf when discriminator mapping is present
@Schema( discriminatorProperty = "type", discriminatorMapping = { { @DiscriminatorMapping( value = "Test", schema = MyClass1.class) }, } oneOf = { MyClass1.class })
Swagger core discovers and provides oneOf values for schemas (especially when discriminator mapping is present)
@Schema( discriminatorProperty = "type", discriminatorMapping = { { @DiscriminatorMapping( value = "Test", schema = MyClass1.class) }, })
The text was updated successfully, but these errors were encountered:
OpenAPI Spec explaining discriminator and oneOf requirement: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#discriminator-object
Sorry, something went wrong.
See also #3411
No branches or pull requests
Using swagger core with java structures that have multiple polymorphism use cases.
Current state
Swagger core always require to specify oneOf when discriminator mapping is present
Expected behaviour
Swagger core discovers and provides oneOf values for schemas (especially when discriminator mapping is present)
The text was updated successfully, but these errors were encountered: