Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exitcode for CLI when API has breaking changes #27

Closed
andmos opened this issue Apr 14, 2020 · 4 comments
Closed

Exitcode for CLI when API has breaking changes #27

andmos opened this issue Apr 14, 2020 · 4 comments
Labels

Comments

@andmos
Copy link

andmos commented Apr 14, 2020

Hi, thanks for a great project.

We want to run the swagger-brake CLI as a part of our deployment pipeline, like hit the breaks if the live API has breaking changes from what we were targeting when building. I'm looking for a way to make the CLI itself break the chain if a breaking changes is present, but as far as I have seen the exitcode of the CLI is 0 regardless of how the check goes. Is it some other way I should check? In my case, the best solution would be something like exitcode 1 for a There were breaking API changes message from the API. This would be great and save us from needing wrapper-code.

@galovics
Copy link
Member

@andmos absolutely valid point. Let me take this up in the upcoming days and release a new version.

@andmos
Copy link
Author

andmos commented Apr 14, 2020

Thanks for the quick reply. I'll watch this space 😄

@galovics
Copy link
Member

@andmos just released it in 1.1.0: https://github.com/redskap/swagger-brake/releases/tag/1.1.0

@andmos
Copy link
Author

andmos commented Apr 15, 2020

Thanks for the quick resolution! We'll take it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants