ajv-cli icon indicating copy to clipboard operation
ajv-cli copied to clipboard

Can't reference the other JSON schema

Open EmilyGraceSeville7cf opened this issue 3 years ago • 0 comments

I have two .json schemas:

  • base.json (which is referenced in sample.json)
  • sample.json

The problem is I obtain an error 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?

EmilyGraceSeville7cf avatar Jan 23 '22 10:01 EmilyGraceSeville7cf