ajv-cli
ajv-cli copied to clipboard
reference resolution failing if the referenced file is alphabetically coming after the base file
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
This is a very annoying bug! I thought I was going crazy with it!