redhat-developer/vscode-yaml

validate doesn't flag unknown fields

Open

#333 建立於 2020年7月28日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)TypeScript (259 fork)auto 404
enhancementgood first issue

倉庫指標

Star
 (820 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南