Skip to content

Validation details are printed to console #2650

@benjamin-mogensen

Description

@benjamin-mogensen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions