redhat-developer/vscode-yaml

validate doesn't flag unknown fields

Open

#333 geöffnet am 28. Juli 2020

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (259 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (820 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

I've created a schema, and while the plugin will suggest to me fields, and flag when I add the wrong types for know fields,

it does NOT flag if I add random new fields / wrongly named fields to the doc.

Is there a strict setting or something similar?

currently it's very easy to name a field like numbr instead of number and get no warning

also the actual suggestion ctrl-space seems to not suggest a lot of stuff.

is there a way to run a "validate" command to flag all the problems? I do see some issues come up in the Problems panel while editing, but only while I'm in the middle of typing and the data is in incomplete / editing mode. As soon as it's finished all my bugs/mitsakes get ignored.

Contributor Guide