-
-
Notifications
You must be signed in to change notification settings - Fork 880
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
Maximum call stack size exceeded #1109
Comments
The schema is self-referencing from the top level - it is equivalent to the function |
Assuming that |
Hi @epoberezkin thanks about the clearance of exceeded stack problem, I solved the error by adding "#/" to the end where the "$ref" points. |
I don’t think I understand but it’s good you resolved it :) It’s difficult to understand the problem without code sample - I think you may be using api incorrectly |
What version of Ajv are you using? Does the issue happen if you use the latest version?
I am using the latest version of ajv.
The project structure is src/schemas/schemaA.json and src/scripts/app.js
Ajv options object
I have read those links:
#802
#801
#877
JSON Schema
I have a json file schemaA.json
Sample data
For testing it is just a empty object or sometimes a simple example
Your code
Validation result, data AFTER validation, error messages
What results did you expect?
I expect true or false when i try to validate it. I tried with compileAsync too but still the same problem.
Ps. I cant change the label to green
Are you going to resolve the issue?
The text was updated successfully, but these errors were encountered: