JsonSchema

wjson.schema.JsonSchema
object JsonSchema

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JsonSchema.type

Members list

Type members

Classlikes

case class GlobalPointer[T](value: String)

mark the field is an outside-document pointer

mark the field is an outside-document pointer

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum JsonFormat

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Pointer[T](value: String)

mark the field is an inside-document pointer

mark the field is an inside-document pointer

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class description(val value: String) extends StaticAnnotation

annot a type, a field's description

annot a type, a field's description

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class dynamic extends StaticAnnotation

mark a field as dynamic, and it's JSON will having a _$type field

mark a field as dynamic, and it's JSON will having a _$type field

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class enums(val values: List[String] | List[Int] | List[Double]) extends StaticAnnotation

annot a type's value constraint

annot a type's value constraint

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class exclusiveMaximum(val value: Int | Double) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class exclusiveMinimum(val value: Int | Double) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class format(val value: String | JsonFormat) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class maxContains(val value: Int | Double) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class maxItems(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class maxLength(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class maxProperties(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class maximum(val value: Int | Double) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class minContains(val value: Int | Double) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class minItems(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class minLength(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class minProperties(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class minimum(val value: Int | Double) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class multipleOf(val value: Int) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class open extends StaticAnnotation

mark a field as open field, and the type's additionalProperties as true

mark a field as open field, and the type's additionalProperties as true

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class pattern(val value: String) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class toplevel extends StaticAnnotation

a top level type can have a $schema field

a top level type can have a $schema field

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
class uniqueItems(val value: Boolean) extends StaticAnnotation

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Value members

Concrete methods

def of[T : Type]: String

return a Json Schema of type T

return a Json Schema of type T

Attributes

Givens

Givens

given given_Conversion_String_Pointer[T]: given_Conversion_String_Pointer[T]
given given_JsValueMapper_Pointer[T]: given_JsValueMapper_Pointer[T]