Closed planetf1 closed 4 years ago
Hi @planetf1,
This issue is not related to springdoc-openapi but to swagger-core project.
It happens on classes with cyclic reference using @JsonIdentityInfo
annotation.
You have a workaround described on the link below:
Thanks for the super helpful response. Have it working now :-)
I have created a fix for this issue in the following PR: https://github.com/swagger-api/swagger-core/pull/3908
After launching my springdoc-enabled application, I get an exception when attempting to load the swagger ui api definition:
The full log is at https://gist.github.com/1f461620f990b1f1386314ae4298d4ee
I tried to follow the simple approach of mostly using defaults (I get the same error without application.properties), but am unsure why I get the NPE when trying to access the api docs.
I of course hit the same issue when the maven plugin runs integration tests.
Spring boot - 2.2.5.RELEASE sprindoc-openapi - springdoc-openapi-ui @ 1.2.33
I don't currently have simplified sample code
the project was previously using springfox, but just as you summarised in the project intro, that project is not seeing suitable support any more so were were interesting in trying springdocs instead
The primary changes made to the module to support springdocs was to add
We also enforce the dependency version in our top level pom (using your latest version).
All springfox changes, including the dependencies, doclets, @EnableSwagger2 annotations were removed.
Our project: https://github.com/odpi/egeria A PR with my springfox removal/adding springdoc -> https://github.com/odpi/egeria/pull/2729
**