whitlockjc / json-refs

Various utilities for JSON Pointers (http://tools.ietf.org/html/rfc6901) and JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected "Invalid string length" error

whitlockjc opened this issue · comments

When resolving https://raw.githubusercontent.com/Bungie-net/api/master/openapi-2.json, Invalid string length error is thrown.

The more I look into this, this happens when JSON.stringify is given a JavaScript object that is huge and exceeds the maximum string length for the JavaScript runtime. I'm not sure this is fixable but I'll keep it open until this can be proven.