case classSRef(toTpe: () ⇒ scala.reflect.api.JavaUniverse.Type, target: () ⇒ Schema) extends Schema with Product with Serializable
A reference is equivalent to the schema returned by target, but prevents loops in recursive or mutually recursive
schema definitions.
tpe and resolve are lazy vals to prevent cases where toTpe or target return different values on subsequent
calls; this interferes with e.g. code in JsonSchema that wants to compare Schemas for equality.
The attributes are private to prevent them from being called directly, bypassing the lazy vals.
Linear Supertypes
Serializable, Serializable, Product, Equals, Schema, AnyRef, Any
A reference is equivalent to the schema returned by
target
, but prevents loops in recursive or mutually recursive schema definitions.tpe
andresolve
are lazy vals to prevent cases wheretoTpe
ortarget
return different values on subsequent calls; this interferes with e.g. code in JsonSchema that wants to compare Schemas for equality.The attributes are private to prevent them from being called directly, bypassing the lazy vals.