object Schema extends LowPrioritySchema with SchemaCompanionMacros with Serializable
- Alphabetic
- By Inheritance
- Schema
- Serializable
- SchemaCompanionMacros
- SchemaMagnoliaDerivation
- LowPrioritySchema
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class SName(fullName: String, typeParameterShortNames: List[String] = Nil) extends Product with Serializable
- type Typeclass[T] = Schema[T]
- Definition Classes
- SchemaMagnoliaDerivation
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ModifyCollectionElements: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def binary[T]: Schema[T]
Creates a schema for type
T
, where the low-level representation is binary. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def combine[T](ctx: ReadOnlyCaseClass[Schema, T])(implicit genericDerivationConfig: Configuration): Schema[T]
- Definition Classes
- SchemaMagnoliaDerivation
- macro def derived[T]: Schema[T]
- Definition Classes
- SchemaCompanionMacros
- macro def derivedEnumeration[T]: CreateDerivedEnumerationSchema[T]
Creates a schema for an enumeration, where the validator is derived using sttp.tapir.Validator.derivedEnumeration.
Creates a schema for an enumeration, where the validator is derived using sttp.tapir.Validator.derivedEnumeration. This requires that all subtypes of the sealed hierarchy
T
must beobject
s.Because of technical limitations of macros, the customisation arguments can't be given here directly, instead being delegated to CreateDerivedEnumerationSchema.
- Definition Classes
- SchemaCompanionMacros
- implicit def derivedSchema[T](implicit derived: Derived[Schema[T]]): Schema[T]
- Definition Classes
- LowPrioritySchema
- def dispatch[T](ctx: SealedTrait[Schema, T])(implicit genericDerivationConfig: Configuration): Schema[T]
- Definition Classes
- SchemaMagnoliaDerivation
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- macro def oneOfUsingField[E, V](extractor: (E) => V, asString: (V) => String)(mapping: (V, Schema[_])*)(implicit conf: Configuration): Schema[E]
- Definition Classes
- SchemaCompanionMacros
- implicit def schemaForArray[T](implicit arg0: Schema[T]): Schema[Array[T]]
- implicit val schemaForBigDecimal: Schema[BigDecimal]
- implicit val schemaForBigInt: Schema[BigInt]
- implicit val schemaForBoolean: Schema[Boolean]
- implicit val schemaForByte: Schema[Byte]
- implicit val schemaForByteArray: Schema[Array[Byte]]
- implicit val schemaForByteBuffer: Schema[ByteBuffer]
- implicit val schemaForDate: Schema[Date]
- implicit val schemaForDouble: Schema[Double]
- implicit def schemaForEither[A, B](implicit sa: Schema[A], sb: Schema[B]): Schema[Either[A, B]]
- implicit val schemaForFile: Schema[tapir.TapirFile]
- implicit val schemaForFileRange: Schema[FileRange]
- implicit val schemaForFloat: Schema[Float]
- implicit val schemaForInputStream: Schema[InputStream]
- implicit val schemaForInstant: Schema[Instant]
- implicit val schemaForInt: Schema[Int]
- implicit def schemaForIterable[T, C[X] <: Iterable[X]](implicit arg0: Schema[T]): Schema[C[T]]
- implicit val schemaForJBigDecimal: Schema[BigDecimal]
- implicit val schemaForJBigInteger: Schema[BigInteger]
- implicit val schemaForJavaDuration: Schema[Duration]
- implicit val schemaForLocalDate: Schema[LocalDate]
- implicit val schemaForLocalDateTime: Schema[LocalDateTime]
- implicit val schemaForLocalTime: Schema[LocalTime]
- implicit val schemaForLong: Schema[Long]
- macro def schemaForMap[K, V](keyToString: (K) => String)(implicit arg0: Schema[K], arg1: Schema[V]): Schema[Map[K, V]]
Create a schema for a map with arbitrary keys.
Create a schema for a map with arbitrary keys. The schema for the keys (
Schema[K]
) should be a string (that is, the schema type should be sttp.tapir.SchemaType.SString), however this cannot be verified at compile-time and is not verified at run-time.The given
keyToString
conversion function is used during validation.If you'd like this schema to be available as an implicit for a given type of keys, create an custom implicit, e.g.:
case class MyKey(value: String) extends AnyVal implicit val schemaForMyMap = Schema.schemaForMap[MyKey, MyValue](_.value)
- Definition Classes
- SchemaCompanionMacros
- implicit macro def schemaForMap[V](implicit arg0: Schema[V]): Schema[Map[String, V]]
- Definition Classes
- SchemaCompanionMacros
- implicit val schemaForOffsetDateTime: Schema[OffsetDateTime]
- implicit val schemaForOffsetTime: Schema[OffsetTime]
- implicit def schemaForOption[T](implicit arg0: Schema[T]): Schema[Option[T]]
- implicit def schemaForPart[T](implicit arg0: Schema[T]): Schema[Part[T]]
- implicit val schemaForScalaDuration: Schema[Duration]
- implicit val schemaForShort: Schema[Short]
- implicit val schemaForString: Schema[String]
- implicit val schemaForUUID: Schema[UUID]
- implicit val schemaForUnit: Schema[Unit]
- implicit val schemaForZoneOffset: Schema[ZoneOffset]
- implicit val schemaForZonedDateTime: Schema[ZonedDateTime]
- def string[T]: Schema[T]
Creates a schema for type
T
, where the low-level representation is aString
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object SName extends Serializable
- object annotations
Annotations which are used during automatic schema derivation, or semi-automatic schema derivation using Schema.derived.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated