Adding the generator option `useOneOfDiscriminator...
# general
c
Adding the generator option
useOneOfDiscriminatorLookup=true
fixes the issue.