Suppose you are given two OpenApi Specification (OAS) V3 files :
- original-spec.yaml : The original spec
- modified-spec.yaml : The modified ( with enhancement / breaking changes / etc )
( an example of both files is available on https://gist.github.com/jy95/d7b53648eb756547eb67fd0db962f68d )
I would like to find a CLI tool that will generates an human readable report
( that I could ,for example, upload it in a PR comment with PR Comment from File
)
My requirements are the following ones :
- no technical restriction
( you are free to use any programming language library as long as it works , including using a OAS to Swagger v2 converter if needed ) - human readable / comprehensible
( it should be clear so that people that don't know OAS aren't lost ) - maintained ( not mandatory but it is better )
Currently I found these projects on the web :
- openapi-diff
- quen2404/openapi-diff
- Azure/openapi-diff
- ...
( others undoubtedly exist: I leave it to you to find some / or to help me pick one that's good enough... )
Here is the start of a Github workflow to help you kickstart :
name: API Breaking Changes
# Everyone is happy with breaking changes ^^
on:
pull_request:
jobs:
build-report:
needs: build-oas-artefacts
runs-on: ubuntu-latest
steps:
- name: Download OAS file from SOURCE branch
uses: actions/download-artifact@v1
with:
name: original-spec.yaml
- name: Download OAS file from TARGET branch
uses: actions/download-artifact@v1
with:
name: modified-spec.yaml
Thanks for the help