You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provided with an imperfect ruleset specification (.spectral.yaml), the vscode extension diagnostic output is unusable for actually diagnosing the problem.
To Reproduce
Drop a bad ruleset specification into a workspace which has any OpenAPI specs, e.g.
extends: spectral:oasoverrides:
wombats:
Open the OpenAPI specs document to force revalidation.
Expected behavior
Reasonably helpful error output.
Actual behaviour
"Spectral: An error occurred while validating . Please see the 'Spectral' output channel for details."
Fair enough, but that output channel then has
[Error - 8:38:27 AM] An error occurred while validating document <document>:
Unable to read ruleset at ../.spectral.yaml.
AggregateError
AggregateError is not helpful at all, as this ... aggregates the real errors. And the real errors are not shown anywhere.
npx spectral lint <document> --verbose will show a lot more detail - but then I am using the vscode extension for a reason ;)
Please, when there is an exception or an AggregateError emit the complete error context.
The text was updated successfully, but these errors were encountered:
Describe the bug
Provided with an imperfect ruleset specification (
.spectral.yaml
), the vscode extension diagnostic output is unusable for actually diagnosing the problem.To Reproduce
Drop a bad ruleset specification into a workspace which has any OpenAPI specs, e.g.
Open the OpenAPI specs document to force revalidation.
Expected behavior
Reasonably helpful error output.
Actual behaviour
"Spectral: An error occurred while validating . Please see the 'Spectral' output channel for details."
Fair enough, but that output channel then has
AggregateError
is not helpful at all, as this ... aggregates the real errors. And the real errors are not shown anywhere.npx spectral lint <document> --verbose
will show a lot more detail - but then I am using the vscode extension for a reason ;)Please, when there is an exception or an
AggregateError
emit the complete error context.The text was updated successfully, but these errors were encountered: