SCoproduct
sttp.tapir.SchemaType.SCoproduct
case class SCoproduct[T](subtypes: List[Schema[_]], discriminator: Option[SDiscriminator])(subtypeSchema: T => Option[SchemaWithValue[_]]) extends SchemaType[T]
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SchemaType[T]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
def addDiscriminatorField[D](discriminatorName: FieldName, discriminatorSchema: Schema[D], discriminatorMapping: Map[String, SRef[_]]): SCoproduct[T]
Value parameters
- discriminatorSchema
-
Schema used when adding the discriminator as a field to a child product schema.
Attributes
Adapt this schema to type TT
. Only the meta-data is retained. Run-time functionality, which allows traversing collection elements, product fields, or coproduct subtypes is lost.
Adapt this schema to type TT
. Only the meta-data is retained. Run-time functionality, which allows traversing collection elements, product fields, or coproduct subtypes is lost.
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Concrete fields
In this article