Closed skwashp closed 1 year ago
Yeah, the current limit fails parsing one of the Slack Swagger files
I'm facing the same issue
Problem can be patched by setting limits in following class https://github.com/swagger-api/swagger-parser/blob/06c86496875196667ed07abd1e8b42c53f06d4c3/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/DeserializationUtils.java#L257-L263
Problem with adding this is that swagger parser is used in so many underlying projects that would need to expose this as some form of options or flags.
fixed by #1872 1872
As requested by @wing328 on OpenAPITools/openapi-generator/#14096, I am creating this ticket as it appears to be the right place to get it fixed.
Description
The generator fails wen using large spec files. Error: com.fasterxml.jackson.dataformat.yaml.JacksonYAMLParseException: The incoming YAML document exceeds the limit: 3145728 code points.
Trace
openapi-generator version
6.2.1
OpenAPI declaration file content or url
https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Implement a larger default or a configuration option so larger spec files can be used. @wing328 suggested an environment variable.