github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/docs/usage/diff.md (about) 1 # Inspecting differences between swagger specs 2 3 The toolkit has a command to display differences between two swagger specifications. 4 5 ### Usage 6 7 To diff specifications: 8 9 ``` 10 Usage: 11 swagger [OPTIONS] diff [diff-OPTIONS] {original spec} {spec} 12 13 diff specs showing which changes will break existing clients 14 15 Application Options: 16 -q, --quiet silence logs 17 --log-output=LOG-FILE redirect logs to file 18 19 Help Options: 20 -h, --help Show this help message 21 22 [diff command options] 23 -b, --break When present, only shows incompatible changes 24 -f, --format=[txt|json] When present, writes output as json (default: txt) 25 -i, --ignore= Exception file of diffs to ignore (copy output from json diff format) (default: none specified) 26 -d, --dest= Output destination file or stdout (default: stdout) 27 ```