Open ewoks opened 3 years ago
@langecode maybe I misunderstood something? Your opinion would be very appreciated
Hi @ewoks
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.
Could you attach or link to both of the documents? Or would that reveal anything confidential...
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