-
Notifications
You must be signed in to change notification settings - Fork 404
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 Size Exceeded #135
Comments
Thanks for the report @TyOverby! Can you try to whittle this down to a minimal reproducible case? My hunch is it's a bug with the $ref resolver. |
Unfortunately, the size is the repro. I tried trimming it down, but because of how interconnected everything is, it's basically all or nothing. I turned DEBUG logging on, and it makes it all the way through downloading / resolving and (I think) parsing. My guess would be emit. |
Confirmed that there is a cycle in some union/intersection type that the generator isn't handling: node --harmony_tailcalls --stack_size=10000 ./node_modules/.bin/ava
// stack overflow I'll try to continue this investigation this week. @TyOverby Any trimming down of the bad test case you can manage would be immensely helpful. |
Hi there, I saw the "help wanted" tag so I took a look at this. The bulk of the file in question consists of the long list of schemas in the
both cause my compilation to fail if included. In other words, if I remove these two entries from the file in question, it compiles fine. Conversely, a file containing only one of these two entries fails to compile. For example, this trimmed down example, containing only the |
@mikepatrick Thanks for digging into this! As a next step, it would be really helpful to try and figure out what exactly the cycle is that JSTT is choking on. Once we can figure out what the cycle is, we can create a minimal reproducible test case and handle the cycle wherever it's not getting handled currently. |
I'm getting this error as well trying to use the Jira schema: Error is:
|
I'm hitting this issue with https://fuchsia.googlesource.com/fuchsia/+/master/zircon/system/host/fidl/schema.json (at this ref) I've reduced it to a small test case. This works:
but this does not:
The additional property (it was originally a description but it doesn't seem to matter what it is) confuses things. I've narrowed it down to I'm not really sure how to actually fix the problem but that's what I found. |
I'm having a problem with a circular references. types.schema.json
executing
which is expected but then if i try to use it from an external file, i'm getting errors test.schema.json
I'm getting
if i pull in the definitions manually, I don't get any error
produces
which is correct |
If anyone can fix this issue, submit a pull request and get it merged, I will pay them $200. To claim this, email me at [email protected] |
@ianloic After some fiddling with this issue. I believe that your broken case should in fact be broken. I am not an expert on JSON Schema but the way you have defined properties makes no sense. There is no merge capability in JSON Schema and that is what you are essentially asking it to do. As you can see this random validator I found does not understand it. but if you declare the schema in a different way:
|
While attempting to compile the following file, I get the a crash with the text "Maximum Call Size Exceeded". For whatever reason I don't get a call stack.
https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json
The text was updated successfully, but these errors were encountered: