OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Because there is no such method validateJsonElement for class UUID, compilation fails. It should rather be sth like UUID.fromString(jsonElement.getAsString());
Steps to reproduce
Use the openapi-generator-maven-plugin to generate client code for okhttp-gson
Bug Report Checklist
Description
Using
anyOf
in combination withenum
andformat: uuid
yields invalid code.openapi-generator version
7.0.1
OpenAPI declaration file content or url
Generation Details
The generated PatchUuid.java contains:
Because there is no such method
validateJsonElement
for classUUID
, compilation fails. It should rather be sth likeUUID.fromString(jsonElement.getAsString());
Steps to reproduce
Use the openapi-generator-maven-plugin to generate client code for okhttp-gson