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

Getting "Invalid ruleset provided" using ruleset from url #2456

Open
BrunoVazCosta opened this issue Apr 18, 2023 Discussed in #2418 · 0 comments
Open

Getting "Invalid ruleset provided" using ruleset from url #2456

BrunoVazCosta opened this issue Apr 18, 2023 Discussed in #2418 · 0 comments
Labels
question Further information is requested triaged

Comments

@BrunoVazCosta
Copy link

Discussed in #2418

Originally posted by BrunoVazCosta March 10, 2023
Hi everyone, I hope you all are well.

I'm getting an error with my ruleset hosted remotely.

docker run --rm -v ${pwd}/tmp:/usr/src/spectral -e PROXY=http://proxy.company.com.br:8080 docker-registry.company.com.br/devops/spectral:6.6.0 lint -r https://gitlab.cloud.company.com.br/me/api-design-rules/raw/master/oas.yaml openapi-ser-v1.0.0.yaml -v

The error
Error running Spectral! Error #1: Invalid ruleset provided at assertRuleset ../../../snapshot/project/packages/ruleset-migrator/src/validation/index.ts:15 throw new Error('Invalid ruleset provided'); at read ../../../snapshot/project/packages/ruleset-migrator/src/index.ts:25 assertRuleset(ruleset); at processTicksAndRejections node:internal/process/task_queues:96 at async migrateRuleset ../../../snapshot/project/packages/ruleset-migrator/src/index.ts:38 const ruleset = await read(filepath, fs, fetch); at async getRuleset ../../../snapshot/project/packages/cli/src/services/linter/utils/getRuleset.ts:49 const migratedRuleset = await migrateRuleset(rulesetFile, {

For my ruleset I've tried (with --- at the 1st line and without it)
extends: [[spectral:oas]]
extends: [spectral:oas]
extends: "spectral:oas"

Please, could you give me a help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triaged
Projects
None yet
Development

No branches or pull requests

2 participants