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
{{ message }}
Repository navigation
Descriptions from @ArraySchema has disappered after upgrading to 2.8.6 #2953
..."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.
Activity
bnasslahsen commentedon Mar 27, 2025
@seskildsen,
This is a regression in swagger-core with OAS 3.1: swagger-api/swagger-core#4836, swagger-api/swagger-core#4802
BTW, moving back to OAS 3.0: description will be present:
springdoc.api-docs.version=openapi_3_0