-
-
Notifications
You must be signed in to change notification settings - Fork 546
Wrong type in response schema of endpoint when updated from 2.7.0 to 2.8.3 #2868
-
After updating org.springdoc:springdoc-openapi-starter-webmvc-ui from 2.7.0 to 2.8.3 we started receiving different response scheme in comparison to what we had at 2.7.0. Previously it was concrete class type displayed in response schema, now all class types replaced by object.See attached screenshot for details:
Screenshot 2025年01月20日 at 11 57 05
Can somebody assist with this? Can I reach desired behavior using some additional configuration parameters?
When opening http://localhost:8080/v3/api-docs - I can see that json document contains correct object types, so, probably there is some bug in rendering logic of UI ?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
This is the expected behavior as far as I am aware, see this response #2867 (comment)
Beta Was this translation helpful? Give feedback.
All reactions
-
I think that this comes from the switch to OpenAPI 3.1 that was done in 2.8.0:
#2790
There are a few bugs in swagger-core regarding 3.1 support, so you way want to switch back to 3.0 until they are resolved.
Beta Was this translation helpful? Give feedback.