-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Producing allOf with $ref and additional properties using @Schema annotations? #3290
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
I have exactly the same question. I'm using Swagger 2.0.9, and use of the allOf property of @Schema as described by the original poster doesn't seem to produce the expected OpenAPI.json output
Thoughts or help appreciated. |
See #3035 |
Hi, I have the same issue. Here my concrete example:
The workaround above describes, to use allOf:
- "$ref": "#/components/schemas/TimedValue"
- description: "Description Value B"
The reason is, that |
this has been addressed implementing new config property and annotation as detailed in wiki |
I'm trying to figure out if it is possible to produce something like
using the
@Schema
annotation.I thought that the following use should produce what I want:
But instead I end up with:
According to this commont on the related issue on the OpenAPI-Spec itself, it is valid in the API and it seems like the suggested way to do if you are writing the API by hand.
Is this a parser/annotation issue or am I using the annotation wrong?
The text was updated successfully, but these errors were encountered: