JsonSchema
wjson.schema.JsonSchema
object JsonSchema
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonSchema.type
Members list
Type members
Classlikes
mark the field is an outside-document pointer
mark the field is an outside-document pointer
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
enum JsonFormat
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
mark the field is an inside-document pointer
mark the field is an inside-document pointer
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow 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 StaticAnnotationclass Annotationclass Objecttrait Matchableclass 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 StaticAnnotationclass Annotationclass Objecttrait Matchableclass 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 StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class exclusiveMaximum(val value: Int | Double) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class exclusiveMinimum(val value: Int | Double) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class format(val value: String | JsonFormat) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class maxContains(val value: Int | Double) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class maxItems(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class maxLength(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class maxProperties(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class maximum(val value: Int | Double) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class minContains(val value: Int | Double) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class minItems(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class minLength(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class minProperties(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class minimum(val value: Int | Double) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class multipleOf(val value: Int) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass 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 StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class pattern(val value: String) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass 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 StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
class uniqueItems(val value: Boolean) extends StaticAnnotation
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Value members
Concrete methods
return a Json Schema of type T
return a Json Schema of type T
Attributes
Givens
Givens
In this article