You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I remove this property, codegen works fine. It seems the problem is around that.
Exception in thread "main" java.lang.RuntimeException: Could not generate model
'DigitalResourceDTO'
at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:17
4)
at io.swagger.codegen.cmd.Generate.run(Generate.java:188)
at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:35)
Caused by: java.lang.NullPointerException
at io.swagger.codegen.languages.CSharpClientCodegen.getSwaggerType(CShar
pClientCodegen.java:230)
at io.swagger.codegen.DefaultCodegen.getTypeDeclaration(DefaultCodegen.j
ava:521)
at io.swagger.codegen.languages.CSharpClientCodegen.getTypeDeclaration(C
SharpClientCodegen.java:223)
at io.swagger.codegen.languages.CSharpClientCodegen.getTypeDeclaration(C
SharpClientCodegen.java:216)
at io.swagger.codegen.DefaultCodegen.fromProperty(DefaultCodegen.java:78
9)
at io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:1433)
at io.swagger.codegen.DefaultCodegen.fromModel(DefaultCodegen.java:624)
at io.swagger.codegen.DefaultGenerator.processModels(DefaultGenerator.ja
va:608)
at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:14
8)
... 2 more
The text was updated successfully, but these errors were encountered:
I've created a DTO that contains a list of objects of the same class:
When I remove this property, codegen works fine. It seems the problem is around that.
The text was updated successfully, but these errors were encountered: