All the client generators that I tried so far were not able to reconstruct this to a proper union type. It's turned into an object with two optional properties. Like here in TypeScript
type FooBar = {
foo?: string,
bar?: number
}
Do I miss something here or would that be an enhancement?
I'm not 100% about this, Swagger is relatively new for me.
I tried to generate a swagger spec which contains this sum type:
It generates something like this:
All the client generators that I tried so far were not able to reconstruct this to a proper union type. It's turned into an object with two optional properties. Like here in TypeScript
Do I miss something here or would that be an enhancement?