validate

sttp.tapir.Schema$.annotations$.validate
class validate[T](val v: Validator[T]) extends StaticAnnotation with Serializable

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.

Attributes

Graph
Supertypes
trait Serializable
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete fields

val v: Validator[T]