case class Schema[T](schemaType: SchemaType, isOptional: Boolean = false, description: Option[String] = None, format: Option[String] = None, deprecated: Boolean = false) extends Product with Serializable
Describes the shape of the low-level, "raw" representation of type T
.
- format
The name of the format of the low-level representation of
T
.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Schema
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
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
-
def
asArrayElement[U]: Schema[U]
Returns a collection version of this schema, with the schema type wrapped in SArray.
Returns a collection version of this schema, with the schema type wrapped in SArray. Also, sets
isOptional
to true as the collection might be empty. Also, sets 'format' to None. Formats are only applicable to the array elements, not to the array as a whole. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOptional[U]: Schema[U]
Returns an optional version of this schema, with
isOptional
set to true. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def deprecated(d: Boolean): Schema[T]
- val deprecated: Boolean
- def description(d: String): Schema[T]
- val description: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def format(f: String): Schema[T]
- val format: Option[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isOptional: Boolean
- macro def modify[U](path: (T) ⇒ U)(modification: (Schema[U]) ⇒ Schema[U]): Schema[T]
- def modifyUnsafe[U](fields: String*)(modify: (Schema[U]) ⇒ Schema[U]): Schema[T]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val schemaType: SchemaType
- def show: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()