Skip to content
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

RangeError: Maximum call stack size exceeded #168

Open
peter-miroshnikov opened this issue Aug 19, 2021 · 3 comments
Open

RangeError: Maximum call stack size exceeded #168

peter-miroshnikov opened this issue Aug 19, 2021 · 3 comments

Comments

@peter-miroshnikov
Copy link

 swagger-markdown -i ./openapi.yaml
RangeError: Maximum call stack size exceeded
    at Url.parse (node:url:170:37)
    at urlParse (node:url:158:13)
    at Object.urlResolve [as resolve] (node:url:674:10)
    at $Refs._resolve (/usr/local/lib/node_modules/swagger-markdown/node_modules/@apidevtools/json-schema-ref-parser/lib/refs.js:147:21)
    at $Refs.get (/usr/local/lib/node_modules/swagger-markdown/node_modules/@apidevtools/json-schema-ref-parser/lib/refs.js:98:15)
    at partiallyDereference (/usr/local/lib/node_modules/swagger-markdown/bin/convert.js:44:43)
    at partiallyDereference (/usr/local/lib/node_modules/swagger-markdown/bin/convert.js:46:20)
    at partiallyDereference (/usr/local/lib/node_modules/swagger-markdown/bin/convert.js:46:20)
    at partiallyDereference (/usr/local/lib/node_modules/swagger-markdown/bin/convert.js:46:20)
    at partiallyDereference (/usr/local/lib/node_modules/swagger-markdown/bin/convert.js:44:16)

on around 800 lines of yaml.

@syroegkin
Copy link
Owner

May I get access to this file (800+ lines) if possible?

@OlegoO
Copy link

OlegoO commented May 31, 2022

Same problem with this file:

swagger-markdown -i VirtoCommerce.DynamicAssociationsModule.yaml
RangeError: Maximum call stack size exceeded
at Pointer.resolve (C:\Users\OlegZhuk\AppData\Roaming\npm\node_modules\swagger-markdown\node_modules@apidevtools\json-schema-ref-parser\lib\pointer.js:76:24)

VirtoCommerce.DynamicAssociationsModule.yaml.txt

@syroegkin
Copy link
Owner

Thank you for an example! very helpful.
This issue will be fixed with a next major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants