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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
run generator got exception with yaml
Exception in thread "main" java.lang.RuntimeException: Could not generate api file for 'Default'
at org.openapitools.codegen.DefaultGenerator.generateApis(DefaultGenerator.java:668)
at org.openapitools.codegen.DefaultGenerator.generate(DefaultGenerator.java:895)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:449)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Caused by: java.lang.NullPointerException: Cannot read field "name" because "codegenModel" is null
at org.openapitools.codegen.languages.GoClientCodegen.constructExampleCode(GoClientCodegen.java:660)
at org.openapitools.codegen.languages.GoClientCodegen.constructExampleCode(GoClientCodegen.java:683)
at org.openapitools.codegen.languages.GoClientCodegen.constructExampleCode(GoClientCodegen.java:639)
at org.openapitools.codegen.languages.GoClientCodegen.constructExampleCode(GoClientCodegen.java:595)
at org.openapitools.codegen.languages.GoClientCodegen.constructExampleCode(GoClientCodegen.java:693)
at org.openapitools.codegen.languages.GoClientCodegen.constructExampleCode(GoClientCodegen.java:565)
at org.openapitools.codegen.languages.GoClientCodegen.postProcessOperationsWithModels(GoClientCodegen.java:487)
at org.openapitools.codegen.DefaultGenerator.processOperations(DefaultGenerator.java:1215)
at org.openapitools.codegen.DefaultGenerator.generateApis(DefaultGenerator.java:572)
... 4 more
Process finished with exit code 1
Bug Report Checklist
Description
run generator got exception with yaml
openapi-generator version
v5.4.0
master[02f1626]
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: