-
Notifications
You must be signed in to change notification settings - Fork 6
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
[BUG]: Failed to compile schema: async keyword in sync schema
#57
Comments
I have also noted that using In other words, if the custom keyword is not in another schema, which makes it required to be compiled, the Could it be because when compiling the schemas, the result does not contain the required In my particular case I noticed that many of the examples did not work, as explained above, but the
|
@M-casado If you remember we did a modification to populate all the supplied schema and definitions with $async keyword few months back, as AJV requires it to compile asynchronously. But adding this to locally supplied schema was missed and hence the error. |
It works! 💃 |
@theisuru I'm afraid I encountered the exact same issue again, with the same set of files, same response, etc. I was validating some changes today when the exact same files that failed due to I'm using the latest This is a bit of a blocker again: I cannot validate files with changes locally, unless they are fetched from the Git repo, I assume. So I cannot continue on their development. |
@M-casado I could not replicate the error. When I test locally, referenced schema seems to be working fine with |
I'll check further locally but it all started with these GitHub actions (example) that fail when cloning Biovalidator's I'll try again with the last version of |
Bug summary
When the server is deployed with referenced schemas (
-ref
argument) and custom keywordgraphRestriction
is used, the validation crashes when compiling the schemas.Technical details
main
v16.13.0
8.6.0
To reproduce
Observed behaviour
Validation stops for those JSON documents/schemas that are using a custom keyword (
graphRestriction
in this case).Expected behaviour
Schemas should be compiled correctly and validation executed.
Additional context
All of the schemas within the
schemas/
directory have"$async": true
at root level, which renders the error message confusing.More importantly, if not given at deployment, but fetched (i.e. the reference resolves against the raw text and it's retrieved automatically by the tool), the validation works:
The text was updated successfully, but these errors were encountered: