UnionType
besom.codegen.metaschema.UnionType
case class UnionType(oneOf: List[TypeReference], `type`: Option[AnonymousType], discriminator: Option[Discriminator]) extends AnonymousType
A reference to a union type. The "oneOf" property must be present. The union may additional specify an underlying primitive type via the "type" property and a discriminator via the "discriminator" property. No other properties may be present.
Value parameters
- `type`
-
The underlying primitive type of the union, if any
- discriminator
-
Informs the consumer of an alternative schema based on the value associated with it
- oneOf
-
If present, indicates that values of the type may be one of any of the listed types
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AnonymousTypetrait TypeReferenceclass Objecttrait Matchableclass Any
Members list
In this article