SOpenProduct

sttp.tapir.SchemaType$.SOpenProduct
case class SOpenProduct[T, V](fields: List[SProductField[T]], valueSchema: Schema[V])(mapFieldValues: T => Map[String, V]) extends SchemaType[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaType[T]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def as[TT]: SchemaType[TT]

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
override def contramap[TT](g: TT => T): SchemaType[TT]

Attributes

Definition Classes
def required: List[FieldName]
override def show: String

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val mapFieldValues: T => Map[String, V]