I have a new Spring Boot project that I'm setting up and have modeled it after another similar project. For the swagger-ui.html
page for the new project we get a generic "No operations defined in spec!" message and no Swagger documentation.
I've tracked the issue down to the generated v2/api-docs
JSON file.
For my working project, we have the expected swagger JSON and the HTML page is generated correctly
{
swagger: "2.0",
info: {},
basePath: "/",
tags: [],
paths: {},
definitions: {}
}
For the new, broken project, there is a value
key and all the usual swagger JSON is a stringified value for that key.
{
value: "{"swagger":"2.0","info":{"...}"
}
The projects all have effectively the same version of Gradle, Java, Swagger, and any other versions that I've looked at. SwaggerConfigs look to be identical as well.
Is there some undocumented setting or API interaction that would cause this swagger JSO to generate incorrectly?