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

reference resolution failing if the referenced file is alphabetically coming after the base file

Open ahemed-haneen opened this issue 3 years ago • 1 comments

https://github.com/ajv-validator/ajv-cli/blob/58d6f074720d5dc0773c3786320b7d35718060cd/src/commands/compile.ts#L54

as we can see in the above code, adding schema and compiling it is done together

if schema/A file has schema/B as a reference and we pass /schema/* as the glob value to ajv cli compile command, it will throw invalid schema error

ahemed-haneen avatar Sep 16 '22 08:09 ahemed-haneen

This is a very annoying bug! I thought I was going crazy with it!

gurnro avatar Jan 29 '23 22:01 gurnro