Open lorre851 opened 1 year ago
snakeyaml introduced this change to patch CVE-2022-25857. Given the use case for swagger-codegen there should be a better default or a configuration option to control this.
it seems like it has been fixed.
something like
/usr/bin/java -DmaxYamlCodePoints=99999999 -jar /opt/swagger-codegen/swagger-codegen-cli-3.jar generate ...
works without errors
it seems like it has been fixed.
something like
/usr/bin/java -DmaxYamlCodePoints=99999999 -jar /opt/swagger-codegen/swagger-codegen-cli-3.jar generate ...
works without errors java -DmaxYamlCodePoints=99999999 -cp cus-openapi-generator-1.0.0.jar:openapi-generator-cli.jar \ org.openapitools.codegen.OpenAPIGenerator generate Exception safe-checking yaml content (maxDepth 2000, maxYamlAliasesForCollections 2147483647) it also error
Description
When executing the following command:
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ../swagger.json -l html2 -o target
The following exception occurs, no mather which language (-l) is exported to:
The swagger.json for our monolith of an application is 145 288 lines long.
Swagger-codegen version
3.0.36
Swagger declaration file content or url
I am not a liberty to share this .json file due to an NDA. The file has 145 288 lines and is about 4MB in size.
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ../swagger.json -l html2 -o target
openjdk 17.0.5 2022-10-18 Ubuntu 22.04.1 LTS x86_64
Steps to reproduce
Related issues/PRs
N/A
Suggest a fix/enhancement
Increase upper limit or make configurable.