-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support for Any schema #1022
Comments
@sclorng - you should be able to set the |
This should be supported, reference https://swagger.io/docs/specification/data-models/data-types/#any |
@sclorng , you should be able to accomplish this by setting the following property.
Then, given this POJO: @Schema(name = "TestBean")
class Bean {
Object any;
} It will result in something like: {
"openapi" : "3.0.3",
"components" : {
"schemas" : {
"TestBean" : {
"type" : "object",
"properties" : {
"any" : {
"$ref" : "#/components/schemas/AnyType"
}
}
},
"AnyType" : {}
}
}
} |
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes smallrye#1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Fixes #1022 Signed-off-by: Michael Edgar <michael@xlate.io>
Currently if we expose an object, the schema is
gives
Is it possible to not have the type attribute or just
{}
when no other attribute are present to express an Any schema ?io.smallrye:smallrye-open-api-core:jar:2.1.17
The text was updated successfully, but these errors were encountered: