You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there could be a couple of things here. First of all your runtime generation and the build time generation may not run the same version of the Swagger library. I would think this may cause the difference.
Second I am not sure which of the two OpenAPI specifications you actually consider the most correct one? It seems the one have a "default" response where the other has "200". I am not quite sure what is the most correct - of course if you actually did document your responses using the Swagger OpenAPI annotations in the code that should be reflected in the generated documentation. However, if you have not actually documented anything I think it may be a bit more tricky.
Describe the bug
generated json|yaml file has different content than one available on host:8080/openapi
To Reproduce
$ mvn io.openapitools.swagger:swagger-maven-plugin:2.1.4:generate
curl <host>:8080/openapi > runtime_openapi.yaml
diff <generated>-openapi.yaml runtime_openapi.yaml
Expected behavior
Both generated and runtime available openapi spec have the same content
The text was updated successfully, but these errors were encountered: