You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
..."components": {
"schemas": {
"ClassName": {
"type": "object",
"properties": {
"fieldName1": {
"type": "string",
"description": "A text here1."
},
"fieldName2": {
"type": "array",
"description": "A text here2.",
"items": {
"type": "string"
}
}
}
}
...
Expected behavior
I expect that the description from @ArraySchema appears in components schema.
What have I tried:
I have tried to change the @ArraySchema(arraySchema = @Schema(description = "A text here2.")) to @Schema(description = "A text here2.") but then the descriptions from @ArraySchema appears twice.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
After upgrading from spring doc (springdoc-openapi-starter-webmvc-ui) from
2.7.0
to2.8.6
descriptions from @ArraySchema has disappeared.To Reproduce
Steps to reproduce the behavior:
What version of spring-boot you are using?
3.4.4
What modules and versions of springdoc-openapi are you using?
DTO Class:
Actual result (api-docs):
Expected result:
Expected behavior
I expect that the description from @ArraySchema appears in components schema.
What have I tried:
I have tried to change the
@ArraySchema(arraySchema = @Schema(description = "A text here2."))
to@Schema(description = "A text here2.")
but then the descriptions from @ArraySchema appears twice.The text was updated successfully, but these errors were encountered: