-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Spring Data REST fails when setting version to openapi_3_1 #2516
Comments
This is still not working after the first fix, there's still a CCE on the same line Simplest would be to just cast it to the base Schema class: But even after applying this, I still have some issues with 3.1: my OpenAPI spec is missing some schema.
|
@bnasslahsen this occurs for me too. i don't think this is fixed |
Is there a known workaround? I tried |
seeing the same problem after updating to v2.8.1 (defaulting to openapi 3.1, error disappears with |
@zyro23 That works thank you 👍 |
Describe the bug
When enabling OpenAPI 3.1 on a Spring Data REST project, we're getting this error due a :
To Reproduce
Steps to reproduce the behavior:
=> getting a ClassCastException
Expected behavior
Additional context
Seems the casting to ObjectSchema is not necessary here, removing it would fix the issue:
springdoc-openapi/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SpringDocDataRestUtils.java
Line 284 in 765607d
The text was updated successfully, but these errors were encountered: