EvaluationResult

zio.blocks.schema.json.EvaluationResult
See theEvaluationResult companion object
final case class EvaluationResult(errors: List[Single], evaluatedProperties: Set[String], evaluatedItems: Set[Int])

Result of schema validation that tracks evaluated properties and items.

Per JSON Schema 2020-12, unevaluatedProperties and unevaluatedItems need to know which properties/items were evaluated by any applicator keyword in the schema tree.

Value parameters

errors

Accumulated validation errors

evaluatedItems

Set of array indices that were evaluated by applicator keywords

evaluatedProperties

Set of property names that were evaluated by applicator keywords

Attributes

Companion
object
Source
JsonSchema.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
JsonSchema.scala
def addError(trace: List[Node], message: String): EvaluationResult

Attributes

Source
JsonSchema.scala
def addErrors(newErrors: List[Single]): EvaluationResult

Attributes

Source
JsonSchema.scala
def toSchemaError: Option[SchemaError]

Attributes

Source
JsonSchema.scala

Attributes

Source
JsonSchema.scala
def withEvaluatedItems(indices: Set[Int]): EvaluationResult

Attributes

Source
JsonSchema.scala
def withEvaluatedProperties(props: Set[String]): EvaluationResult

Attributes

Source
JsonSchema.scala

Attributes

Source
JsonSchema.scala

Inherited methods

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