jolly-jelly-9637
11/09/2021, 11:04 AMkratos-java-client
because it seems that the openapi-generator
does not support oneOf
. It generates a client that’s unable to parse the response in the case of UiNodeAttributes
. The issue is that models such as UiNodeInputAttributes do not extend UiNodeAttributes and they cannot be assigned to UiNode.attributes
field of type UiNodeAttributes
.
Supposedly openapi-generator
supports oneOf
with --library jersey2
, but I couldn’t run this on jdk11+. 😞
Any java users who have found a clean solution to this? 🙂
The best I can think of is creating custom variations of these UiNode*Attributes
classes and using --import-mapping
to reference them.high-optician-2097
jolly-jelly-9637
11/09/2021, 11:09 AMhigh-optician-2097
jolly-jelly-9637
11/09/2021, 11:12 AMUiNodeInputAttributes
, but at runtime java cannot assign UiNodeInputAttributes
onto UiNodeAttributes
because they don’t have a common parent type 😄jolly-jelly-9637
11/09/2021, 11:12 AMhigh-optician-2097
jolly-jelly-9637
11/09/2021, 11:17 AM