example

sttp.tapir.EndpointIO$.annotations$.example
class example(val example: Any) extends EndpointInputAnnotation with EndpointOutputAnnotation

Specifies the example value of the endpoint input/output. Note that this is distinct from Schema.annotations.encodedExample, which sets the example on the schema associated with the input/output.

Attributes

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

Members list

Concise view

Value members

Concrete fields

val example: Any