goadesign / goadesign/goa

Feature Request: support Open API's `discriminator` for discriminated union types

Open
#3,702 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
583
Avg merge
2d 10h
Merged PRs (30d)
15

Description

Open API supports discriminated union types (like oneOf, but the types narrow depending on the discriminator, which is usually a set of strings or an enum)

This is really helpful for generating type safe polymorphic APIs.

more info: https://apidog.com/blog/openapi-discriminator-guide/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.