ajv-validator / ajv-validator/ajv-cli

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

Open
#221 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
316
Forks
77
PR merge metrics
No merged PRs in 30d

Description

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

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.