widdershins: RangeError when using widdershins with a new OpenApi v3 spec file
➜ api git:(swagger2) ✗ widdershins openapi.0.3.json
Compiling all doT templates...
Compiling authentication.dot to function
Compiling authentication_none.dot to function
Compiling code_http.dot to function
Compiling code_java.dot to function
Compiling code_javascript.dot to function
Compiling code_nodejs.dot to function
Compiling code_python.dot to function
Compiling code_ruby.dot to function
Compiling code_shell.dot to function
Compiling discovery.dot to function
Compiling footer.dot to function
Compiling heading_body_parameter.dot to function
Compiling heading_code_samples.dot to function
Compiling heading_example_responses.dot to function
Compiling heading_main.dot to function
Compiling parameters.dot to function
Compiling response_headers.dot to function
Compiling response_schema.dot to function
Compiling responses.dot to function
Compiling schema_header.dot to function
Compiling schema_properties.dot to function
Compiling schema_sample.dot to function
Compiling security.dot to function
/usr/local/lib/node_modules/widdershins/openapi3.js:761
content += templates.schema_sample(data) + '\n';
^
RangeError: Invalid string length
at Object.convert (/usr/local/lib/node_modules/widdershins/openapi3.js:761:54)
at Object.convert (/usr/local/lib/node_modules/widdershins/index.js:18:18)
at Object.<anonymous> (/usr/local/lib/node_modules/widdershins/widdershins.js:101:11)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:187:16)
Is there something wrong with my openapi.json file? I’ll attach it here: openapi.0.3.json.zip
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (12 by maintainers)
That worked! Thanks 😃