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.

贡献者指南