Closed davegarred closed 11 months ago
thanks for reporting the issue.
I've filed https://github.com/OpenAPITools/openapi-generator/issues/17172 to address the NPE in example generator.
Will file another PR later to better support any type in 3.1 spec.
merged the fix to the master. please pull the latest master to give it a try.
Bug Report Checklist
Description
Generator breaks on empty properties fields in components.
openapi-generator version
7.2.0-SNAPSHOT commit: 0d2a01611c8350b596a2b883964da2589e7baa93
OpenAPI declaration file content or url
The Discord API contains multiple empty properties which break in this tool but are valid. I've pushed up a simpler version taken taken from that.
Generation Details
Attempt to generate a client from a spec that includes a schema with property that is empty. E.g.,
A
NullPointerException
is produced.Steps to reproduce
Generate using the cli tool (any language).
Related issues/PRs
None found yet.
Suggest a fix
Edit: https://github.com/OpenAPITools/openapi-generator/pull/17173/files