版本 ^1.68.0 中 VS Code 扩展警告中的元架构功能

pro*_*hit 13 json visual-studio-code openapi

所以基本上我有一个 VS Code 扩展,它提供基于内置 JSON 验证器的JSON 文件验证。我正在验证的模式(OpenAPI 3.1.x)使用​​元模式功能,即$dynamicRef,我也需要使用它,因为我引用了 OpenAPI 模式。

当定义如下所示的自定义架构时,我收到一条警告,指出验证器尚不支持元架构功能。不用说,验证确实不起作用。当使用正常时$ref,大多数架构都可以工作,但使用的属性却不起作用$dynamicRef$dynamicRef所以我也被迫引用架构。

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "OpenApiPathObject",
  "type": "object",
  "additionalProperties": {
    "$dynamicRef": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json#/$defs/path-item-or-reference"
  }
}
Run Code Online (Sandbox Code Playgroud)
The schema uses meta-schema features ($dynamicRef) that are not yet supported by the validator.
Run Code Online (Sandbox Code Playgroud)

我使用的是 VS Code 1.69.0,并将扩展所需的引擎更改为 ^1.68.0,其中应包括对架构版本的支持,如2022 年 5 月发行说明Draft 2020-12中所述。我有什么选择以及如何解决此警告?

这是扩展的摘录package.json

The schema uses meta-schema features ($dynamicRef) that are not yet supported by the validator.
Run Code Online (Sandbox Code Playgroud)