Skip to content

Runtime support of union types is limited to TypeScript clients #1411

@darrelmiller

Description

@darrelmiller

Due to lack of support for union types in other languages, we do not have an easy way to map in runtime response to the appropriate property on the wrapper created for union types. Support for this would require taking a dependency on a JSON Schema validation library to determine which of the schemas map to the response.

Users can always decorate their API with a discriminator for non-scalar types.

Further investigation is required.

Metadata

Metadata

Assignees

Labels

fixedgeneratorIssues or improvements relater to generation capabilities.

Type

No type

Projects

Status

Done ✔️

Relationships

None yet

Development

No branches or pull requests

Issue actions