OpenAPI spec generated for union type with discriminator, generate default value instead of enum to allow using openapi-generator-maven-plugin #9866
-
|
I have a union type like this: This generates the following model which does not work for openapi-generator-maven-plugin. Specifically the enum in the subtypes should be a default value instead. Is there a way to force the type property to be generated with a default string instead to produce This does produce working code when using openapi-generator-maven-plugin. Thanks for the help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
In another attempt, I tried using something like This does not work as it produces errors |
Beta Was this translation helpful? Give feedback.
-
|
Found a workaround |
Beta Was this translation helpful? Give feedback.
Found a workaround