bump-sh / cli

Bump.sh CLI - Deploy your OpenAPI & AsyncAPI documentations from your CI
https://bump.sh
MIT License
44 stars 4 forks source link

diff: make sure to parse versions API response with any format diff #585

Closed paulRbr closed 1 month ago

paulRbr commented 1 month ago

This change adapts the detection of the response of the /versions API to check any of the existing formats for a content rather than only checking the version.diff_summary field.

This will help to be able to return an empty array [] when asking for the --format json (since we fixed the API return values last week in https://github.com/bump-sh/bump/pull/5703)