SimpleContextFreeValidator

net.reactivecore.cjs.validator.SimpleContextFreeValidator
abstract class SimpleContextFreeValidator(name: String) extends ContextFreeValidator

A Simple context free validator which just emits an error message if some JSON is not valid.

Attributes

Graph
Supertypes
trait Validator
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def isValid(json: Json): Boolean

Concrete methods

override def validate(state: ValidationState, json: Json): (ValidationState, ValidationResult)

Attributes

Definition Classes

Inherited methods

def children: Vector[Validator]

Children Validators

Children Validators

Attributes

Inherited from:
Validator
def precedence: Int

Precedence of this operation (for stateful validators), when using Sequence

Precedence of this operation (for stateful validators), when using Sequence

Attributes

Inherited from:
Validator

Touches the validator, possible state modifying (e.g. adding dynamic anchors)

Touches the validator, possible state modifying (e.g. adding dynamic anchors)

Attributes

Inherited from:
Validator
override def validateStateful(state: ValidationState, json: Json)(implicit context: ValidationContext): (ValidationState, ValidationResult)

Validate JSON, returns violations.

Validate JSON, returns violations.

Attributes

Definition Classes
Inherited from:
ContextFreeValidator

Validate, but skip evaluated

Validate, but skip evaluated

Attributes

Inherited from:
Validator
def wideForeach(f: Validator => Unit): Unit

Depth first foreach.

Depth first foreach.

Attributes

Inherited from:
Validator