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

Validation details are printed to console #2650

Open
1 task
benjamin-mogensen opened this issue Jul 4, 2024 · 0 comments
Open
1 task

Validation details are printed to console #2650

benjamin-mogensen opened this issue Jul 4, 2024 · 0 comments
Labels

Comments

@benjamin-mogensen
Copy link

benjamin-mogensen commented Jul 4, 2024

Chore summary
When I use run method a lot of details about the validation are printed to console. I don't think this was the case in earlier versions.

E.g.:

const errorList = await spectral.run(oasDocument)

Tasks

  • Remove the console printing

Additional context
Versions used

"@stoplight/spectral-core": "^1.18.3",
"@stoplight/spectral-parsers": "^1.0.3",
"@stoplight/spectral-ruleset-bundler": "^1.5.2",
"@stoplight/spectral-rulesets": "^1.19.1",
"@stoplight/spectral-runtime": "^1.1.2",

I found the line 155 in runner.js in@stoplight/json-ref-resolver:

console.log(Utils.uriToJSONPointer(ref), parentPath, ref, uriResolver)

But it seems that repo is now archived.

I have put in my package.json:

"@stoplight/json-ref-resolver": "^3.1.6"

That fixes it, but I am not sure if that is right approach as I assume that is not the version that is actually used as dependency for the other modules above.

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

1 participant