syroegkin / swagger-markdown

swagger to markdown transpiler
MIT License
239 stars 87 forks source link

RangeError: Maximum call stack size exceeded #168

Open peter-miroshnikov opened 3 years ago

peter-miroshnikov commented 3 years ago
 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 commented 3 years ago

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

OlegoO commented 2 years ago

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 commented 2 years ago

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