SchemaMacros

sttp.tapir.macros.SchemaMacros
trait SchemaMacros[T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Schema[T]
Self type

Members list

Concise view

Value members

Concrete methods

inline def modify[U](inline path: T => U)(inline modification: Schema[U] => Schema[U]): Schema[T]

Modifies nested schemas for case classes and case class families (sealed traits / enums), accessible with path, using the given modification function. To traverse collections, use .each.

Modifies nested schemas for case classes and case class families (sealed traits / enums), accessible with path, using the given modification function. To traverse collections, use .each.

Should only be used if the schema hasn't been created by .mapping another one. In such a case, the shape of the schema doesn't correspond to the type T, but to some lower-level representation of the type.

If the shape of the schema doesn't correspond to the path, the schema remains unchanged.

Attributes