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
{{ message }}
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Exception in thread "main" java.lang.NullPointerException
at org.openapijsonschematools.codegen.generatorrunner.DefaultGeneratorRunner.generateRequestBodies(DefaultGeneratorRunner.java:775)
at org.openapijsonschematools.codegen.generatorrunner.DefaultGeneratorRunner.generate(DefaultGeneratorRunner.java:1456)
at org.openapijsonschematools.codegen.clicommands.Generate.execute(Generate.java:441)
at org.openapijsonschematools.codegen.clicommands.AbstractCommand.run(AbstractCommand.java:34)
at org.openapijsonschematools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:76)
##### openapi-json-schema-generator version
3.2.0
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:
This is caused by final Map<String, RequestBody> specRequestBodies = this.openAPI.getComponents().getRequestBodies(); throwing a npe because there are no components in your openapi document. I will post a PR to fix that issue.
Bug Report Checklist
Description
Opening this issue per: #237 (comment)
Reported by @robin-nitrokey
Thanks! I tried to use 3.2.0 but it does not work for me:
Am I missing something?
Example 1
Example 2
NPE:
3.2.0
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: