Closed MartinX3 closed 5 months ago
This has been fixed in v0.0.62
However, it won't operate as expected, because you cannot compare a v2 spec and a v3 spec. openapi-changes
will report an error regarding mis-matched versions.
Thank you! That's perfect.
Ah @daveshanley would it be possible to write openapi version
instead of version
in the error message?
And also output it as a json like the "no-changes-found" message {"message": "No changes found between specifications"}
?
It would the output machine-readable.
Using arch linux I downloaded https://github.com/pb33f/openapi-changes/releases/download/v0.0.61/openapi-changes_0.0.61_linux_x86_64.tar.gz
Then I executed
./openapi-changes report api-with-examples_2.0.yaml api-with-examples_3.0.yaml
(The files are https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2.0/yaml/api-with-examples.yaml and https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/api-with-examples.yaml)Which resulted in
Using the console output it just results in an endless "generating model for commit bla".
This is a
v2
vsv3
report. If I try av3
vs a completely differentv3.1
report it works.