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).
MIT License
223 stars 63 forks source link

Unexpected "Invalid string length" error #148

Open whitlockjc opened 5 years ago

whitlockjc commented 5 years ago

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

whitlockjc commented 5 years ago

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.