I recently tried to generate OpenAPI documentation for my Sprint Boot application. I added the following lines to my pom.xml
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.2.30</version>
</dependency>
But when I hit the swagger-ui URL on my localhost I get this page
I checked the JSON at /v3/api-docs
and I get a response that starts:
"{\"openapi\":\"3.0.1\",\"info\":{\"title\":\"OpenAPI definition\",\"version\":\"v0\"},\"servers\":[{\"url\":\"https://localhost:8900/tds\",
I can see that the openapi
field is being specified, but it looks like the entire response is stringified instead of just being JSON. Since there doesn't seem to be any configuration for OpenAPI, I assume it's getting that from something in my Spring Boot configuration, but I have no idea where.