ajv-validator / ajv-validator/ajv-cli

Can't reference the other JSON schema

Open
#201 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
316
Forks
77
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.