Open sev-g opened 5 years ago
@SevastianGioanca I'm getting the same failure.
{ RangeError: Maximum call stack size exceeded
at Array.forEach (native)
at crawl (~/.nvm/versions/node/v8.1.4/lib/node_modules/swagger-combine/node_modules/json-schema-ref-parser/lib/resolve-external.js:61:24)
at ~/.nvm/versions/node/v8.1.4/lib/node_modules/swagger-combine/node_modules/json-schema-ref-parser/lib/resolve-external.js:69:38
at Array.forEach (native)
at crawl (~/.nvm/versions/node/v8.1.4/lib/node_modules/swagger-combine/node_modules/json-schema-ref-parser/lib/resolve-external.js:61:24)
at ~/.nvm/versions/node/v8.1.4/lib/node_modules/swagger-combine/node_modules/json-schema-ref-parser/lib/resolve-external.js:69:38
at Array.forEach (native)
at crawl (~/.nvm/versions/node/v8.1.4/lib/node_modules/swagger-combine/node_modules/json-schema-ref-parser/lib/resolve-external.js:61:24)
at ~/.nvm/versions/node/v8.1.4/lib/node_modules/swagger-combine/node_modules/json-schema-ref-parser/lib/resolve-external.js:69:38
at Array.forEach (native)
api: 'https://some.domain/swagger.yaml' }
In my scenario I wasn't purposefully making an infinite nesting behavior... so I've now split the swagger data types to prevent an indefinite nesting and instead just a 2 layer nesting
got the same, with four huge swagger definition files
The exception should be avoided now with #110 . Please see the description in the PR for how to set up to ignore circular references.
version 0.18.1
If you have a model with a recursive property like:then the code generation will crash with: