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

Is there verify-like behaviour to fail a CI build if there's a mismatch? #4730

Open
celtric opened this issue Sep 5, 2024 · 1 comment
Open

Comments

@celtric
Copy link

celtric commented Sep 5, 2024

Module: swagger-maven-plugin

I'm looking for something like Sortpom's verify (https://github.com/Ekryd/sortpom/wiki/VerifyFail) but I see that swagger-maven-plugin-jakarta only has a resolve goal. Our goal is for changes in the OpenAPI spec to be reflected in the PR, so the diff can be observed.

Is such functionality available, or in the works?

Thanks

@celtric
Copy link
Author

celtric commented Sep 6, 2024

As a workaround we're temporarily using the following in CI:

git status --porcelain | grep -q 'openapi.yaml' && echo "OpenAPI spec is not up-to-date" && git diff && exit 1 || echo "OpenAPI spec is up-to-date"

The feedback happens later, but it allows to keep moving for now.

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

No branches or pull requests

1 participant