Json 架构验证 if/then 已忽略

Json schema validation if/then ignored

我在此处使用架构:https://jsonschema.dev/s/5iht5 在我的 mac 中。但是验证器似乎不明白 if.

warning: the following keywords are unknown and will be ignored: [if, then]
  level: "warning"
  schema: {"loadingURI":"#","pointer":"/definitions/legal/allOf/0"}
  domain: "syntax"
  ignored: ["if","then"]

这在 MAC / AL2 OS 中不起作用。

验证器的预期结果是我希望必填字段仅在第一个属性的值为真时适用。

看起来我使用的是旧版 validator,它只支持到 draft-04

我正在使用 everit-org json-schema 现在不再看到警告。