-DdebugModels returns StackOverFlowException
Created by: emreakca
Description
Hey, can someone help me with this issue: when i try to -DdebugModels, i get an StackOverFlowErrorException. Generating the client works without problems, so does -DdebugOperations... Had someone the same error or know a fix? Or a suggestion on how I can find the cause?
error
com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.ArrayList[0]->org.openapitools.codegen.CodegenModel["parentModel"]
openapi-generator version
3.1 & 3.2.3
Command line used for generation
java -DdebugModels -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i http://localhost:8080/openapi.json -g java