Skip to content

Commit

Permalink
Overrride max file size limit for YAMLParser by setting maxYamlCodePo…
Browse files Browse the repository at this point in the history
…ints (#66)
  • Loading branch information
areyia authored Aug 7, 2024
1 parent 4eb51a0 commit 298383d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/gs/crdtools/SourceGenFromSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static Map<Path, String> generateSource(SpecExtractorHelper.Spec spec, String mo
// setting this system property has the interesting effect of preventing the
// generation of a whole set of unrelated files that we don't care about.
System.setProperty("generateModels", "true");
System.setProperty("maxYamlCodePoints", "1073741824"); // 1 gb (1024 * 1024 * 1024)

HashMap <Path, String> result = HashMap.empty();
var tmpOutputDir = Files.createTempDirectory("openAPIGen");
Expand Down

0 comments on commit 298383d

Please sign in to comment.