Skip to content

Bug: Incorrect Matching Against Schema Store #354

Closed
redhat-developer/yaml-language-server
#417
@nbcarey

Description

I created a Mocha config file — .mocharc.yaml. It appears that this VSCode extension is — incorrectly — deciding that this file matches arc.yaml (.mocharc.yaml), as seen in the response from the schema store API at https://www.schemastore.org/api/json/catalog.json:

{
  name: "arc.json",
  description: "A JSON schema for OpenJS Architect",
  fileMatch: [
    "arc.json",
    "arc.yml",
    "arc.yaml"
  ],
  url: "https://raw.githubusercontent.com/architect/parser/master/schema.json"
}

That URL returns 404 Not Found, with the result that Visual Studio shows an error:

image

And if it did exist . . . I'd get other errors as the Mocha configuration schema is virtually guaranteed to be rather different than the OpenJS Architect schema.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions