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
Change OpenApiGeneratorCodeGenBase#shouldRun
to throw an exception rather than return false
#192
Comments
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
OpenApiGeneratorCodeGenBase#shouldRun
to throw exception rather Change OpenApiGeneratorCodeGenBase#shouldRun
to throw an exception rather than return false
OpenApiGeneratorCodeGenBase#shouldRun
to throw an exception rather than return false
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
… an exception rather than return fals
I have a strange behavior in integrated-tests after implementing this: The other file is commented because I'm not sure how to add a provider yet. (and now I have an error too) |
@brunobaiano it is actually the bug that originated this issue. See this comment. |
It's not returning false, it's throwing the exception. The thing is, all tests will fail now. |
Sorry, @brunobaiano. I might have not expressed myself properly. The PR to fix this issue needs to address two requirements:
|
…rate-code-tests step" This reverts commit db74b9e.
Hi again @hbelmiro, |
…ion rather than return false (#314) * #192 Change OpenApiGeneratorCodeGenBase#shouldRun to throw an exception rather than return fals * #192 add input-base-dir path on properties to generate-code-tests step * Revert "#192 add input-base-dir path on properties to generate-code-tests step" This reverts commit db74b9e. * #192 add condition to test path
…w an exception rather than return false (quarkiverse#314) * quarkiverse#192 Change OpenApiGeneratorCodeGenBase#shouldRun to throw an exception rather than return fals * quarkiverse#192 add input-base-dir path on properties to generate-code-tests step * Revert "quarkiverse#192 add input-base-dir path on properties to generate-code-tests step" This reverts commit db74b9e. * quarkiverse#192 add condition to test path (cherry picked from commit 84060f8)
…ion rather than return false (#314) (#316) * #192 Change OpenApiGeneratorCodeGenBase#shouldRun to throw an exception rather than return fals * #192 add input-base-dir path on properties to generate-code-tests step * Revert "#192 add input-base-dir path on properties to generate-code-tests step" This reverts commit db74b9e. * #192 add condition to test path (cherry picked from commit 84060f8) Co-authored-by: Bruno Alves <brunobaiano@users.noreply.github.com>
Silently returning
false
inio.quarkiverse.openapi.generator.deployment.codegen.OpenApiGeneratorCodeGenBase#shouldRun
may confuse the user of the extension, that may not notice that an invalid path is being used.It will be clearer if we throw an exception instead, so the build will fail.
This should be done after #179 is merged.
The text was updated successfully, but these errors were encountered: