We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Discovered while working on vscode-spectral.
vscode-spectral
To Reproduce
test('x', async () => { const s = new Spectral({ resolver: httpAndFileResolver }); for (const [format, lookup] of KNOWN_FORMATS) { // Each document type that Spectral can lint gets registered with detectors. s.registerFormat(format, document => lookup(document)); } s.setRuleset(await readRuleset('spectral:oas')); const file = '/tmp/file.yaml'; const doc = new Document('', Parsers.Yaml, file); const results = await s.run(doc, { ignoreUnknownFormat: true, resolve: { documentUri: file } }) expect(results).toEqual([]); }); });
Fail with
- Array [] + Array [ + Object { + "code": "invalid-ref", + "message": "'undefined' does not exist @ '/tmp/file.yaml'", + "path": Array [ + "$ref", + ], + "range": Object { + "end": Object { + "character": 0, + "line": 0, + }, + "start": Object { + "character": 0, + "line": 0, + }, + }, + "severity": 0, + "source": "/tmp/file.yaml", + }, + ]
Expected behavior Don't fail? 😉
The text was updated successfully, but these errors were encountered:
P0lip
Successfully merging a pull request may close this issue.
Describe the bug
Discovered while working on
vscode-spectral
.To Reproduce
Fail with
Expected behavior
Don't fail? 😉
The text was updated successfully, but these errors were encountered: