sublimelsp / LSP-json

Schema validation/completions for your JSON and Sublime files
MIT License
75 stars 10 forks source link

Warnings when inside a PC messages.json #109

Closed predragnikolic closed 2 years ago

predragnikolic commented 2 years ago

When opening a messages.json file, LSP-json shows these warnings:

messages.json

{
    "1.9.0": "messages/1.9.0.txt",
    "install": "README.md"
}

/Users/codetribe/Library/Application Support/Sublime Text/Packages/LSP-volar/messages.json:
    3:16  warning Incorrect type. Expected "object". ​unknown-source
    2:5   warning Property 1.9.0 is not allowed. ​unknown-source

Expected behavior: No errors should be reported.

predragnikolic commented 2 years ago

The cause is this line:

https://github.com/sublimelsp/LSP-json/blob/67596c5d191c604ad1e4504bc363aebe5eb12bcb/lsp-json-schemas.json#L161-L164