False

zio.blocks.schema.json.JsonSchema.False
case object False extends JsonSchema

Schema that rejects all instances. Equivalent to {"not": {}}.

Attributes

Source
JsonSchema.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
False.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

override def check(json: Json): Option[SchemaError]

Validate a JSON value against this schema.

Validate a JSON value against this schema.

Attributes

Returns

None if valid, Some(error) with accumulated failures if invalid.

Definition Classes
Source
JsonSchema.scala
override def toJson: Json

Serialize this schema to its canonical JSON representation.

Serialize this schema to its canonical JSON representation.

Attributes

Definition Classes
Source
JsonSchema.scala

Inherited methods

def &&(that: JsonSchema): JsonSchema

Combine with another schema using allOf.

Combine with another schema using allOf.

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala
def check(json: Json, options: ValidationOptions): Option[SchemaError]

Validate a JSON value against this schema with custom options.

Validate a JSON value against this schema with custom options.

Value parameters

json

The JSON value to validate

options

Validation options controlling behavior like format validation

Attributes

Returns

None if valid, Some(error) with accumulated failures if invalid.

Inherited from:
JsonSchema
Source
JsonSchema.scala
def conforms(json: Json, options: ValidationOptions): Boolean

Returns true if the JSON value conforms to this schema with custom options.

Returns true if the JSON value conforms to this schema with custom options.

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala
def conforms(json: Json): Boolean

Returns true if the JSON value conforms to this schema.

Returns true if the JSON value conforms to this schema.

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala
def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
JsonSchema -> Any
Inherited from:
JsonSchema
Source
JsonSchema.scala

Negate this schema.

Negate this schema.

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala
def withDiscriminatorField(name: String, value: String): JsonSchema

Add a required property for the provided discriminator field.

Add a required property for the provided discriminator field.

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala

Make this schema nullable (accepts null in addition to current types).

Make this schema nullable (accepts null in addition to current types).

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala
def ||(that: JsonSchema): JsonSchema

Combine with another schema using anyOf.

Combine with another schema using anyOf.

Attributes

Inherited from:
JsonSchema
Source
JsonSchema.scala