ajv-validator / ajv-validator/ajv-cli

Can't reference the other JSON schema

未关闭
#201 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
316
派生
77
PR 合并指标
30 天内没有已合并 PR

描述

I [have](https://github.com/EmilySeville7cfg-Test/ajv-reference-not-found-issue) two `.json` schemas:

- `base.json` (which is referenced in `sample.json`)
- `sample.json`

The problem is I obtain an [error](https://github.com/EmilySeville7cfg-Test/ajv-reference-not-found-issue/runs/4912282024?check_suite_focus=true#step:3:13) when I try check `sample.yml` correctness:

```
schema sample.json is invalid
error: can't resolve reference file:base.json#/$defs/prop from id #
```

What am I missing?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。