-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Feature Request: Ability to exit on validation warnings #1603
Comments
Hmm, for some reason // node_modules/@orval/core/dist/index.js line 47758
var ibmOpenapiRuleset = require("@ibm-cloud/openapi-ruleset");
var { Spectral } = require_dist10();
var ibmOpenapiValidator = async (specs) => {
const spectral = new Spectral();
spectral.setRuleset(ibmOpenapiRuleset);
const { errors, warnings } = await spectral.run(specs);
if (warnings && warnings.length) {
ibmOpenapiValidatorWarnings(warnings);
}
if (errors && errors.length) {
ibmOpenapiValidatorErrors(errors);
}
}; even though it's clearly in the code: orval/packages/core/src/utils/validator.ts Lines 40 to 43 in 46641aa
There also doesn't appear to be any build steps that remove |
I think it was reported here too about the Exit Code: #1497 Something funky is going on. |
I think it’s likely because the commit that added |
ok @ezequiel can you try 7.1.0 now that is is out? |
Description
Right now we only exit when there are validation errors. We also want the ability to exit on warnings, since we don't want to introduce warnings into the codebase.
Warnings also generally point out good things we should fix anyway, e.g.
The text was updated successfully, but these errors were encountered: