object annotations
Annotations which are used during automatic schema derivation, or semi-automatic schema derivation using Schema.derived.
- Alphabetic
- By Inheritance
- annotations
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class customise extends Annotation with StaticAnnotation with Serializable
- class default[T] extends Annotation with StaticAnnotation with Serializable
- class deprecated extends Annotation with StaticAnnotation with Serializable
- class description extends Annotation with StaticAnnotation with Serializable
- class encodedExample extends Annotation with StaticAnnotation with Serializable
- class encodedName extends Annotation with StaticAnnotation with Serializable
- class format extends Annotation with StaticAnnotation with Serializable
- class hidden extends Annotation with StaticAnnotation with Serializable
- class validate[T] extends Annotation with StaticAnnotation with Serializable
Adds the
v
validator to the schema using Schema.validate.Adds the
v
validator to the schema using Schema.validate. Note that the type of the validator must match exactly the type of the class/field. This is not checked at compile-time, and might cause run-time exceptions. To validate elements of collections or Options, use validateEach. - class validateEach[T] extends Annotation with StaticAnnotation with Serializable
Adds the
v
validators to elements of the schema, when the annotated class or field is a collection or Option.Adds the
v
validators to elements of the schema, when the annotated class or field is a collection or Option. The type of the validator must match exactly the type of the collection's elements. This is not checked at compile-time, and might cause run-time exceptions. E.g. to validate that when anOption[Int]
is defined, the value is smaller than 5, you should use:case class Payload( @validateEach(Validator.max(4, exclusive = true)) aField: Option[Int] )
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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()
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated