then I change /protocol/version-2/message to /protocol/version-2/message-changed to create new file and run following command:
target\node\node.exe target\node_modules\swagger-diff\bin\swagger-diff.js swagger-previous.json target/classes/docs/restapi/swagger-new.json
When versions are the same for both files (1.0.10) the result is as expected:
I use following swagger spec:
then I change
/protocol/version-2/message
to/protocol/version-2/message-changed
to create new file and run following command:target\node\node.exe target\node_modules\swagger-diff\bin\swagger-diff.js swagger-previous.json target/classes/docs/restapi/swagger-new.json
When versions are the same for both files (1.0.10) the result is as expected:
When versions are 1.0.10 (previous) and 1.0.11 (new) the result is:
For 1.0.10 and 1.0.11-SNAPSHOT the result is: