Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahemed-haneen opened this issue Sep 16, 2022 · 1 comment

Comments

@ahemed-haneen
Copy link

ahemed-haneen commented Sep 16, 2022

const validate = ajv.getSchema(id || file)

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

@gurnro
Copy link

gurnro commented Jan 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants