ValidationResult

case class ValidationResult(inputResult: Either[Throwable, Result])

Represents the output of validating a piece of streamed data

Value parameters:
inputResult

Either the ShaclEx validation results or an error occurred whilst computing them

Companion:
object
Source:
ValidationResult.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String
Returns:

Custom string representation of this validation result, including its status, companion message and the validation report (if available)

Definition Classes
Any
Source:
ValidationResult.scala

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val message: String

High-level message accompanying the result

High-level message accompanying the result

Note:

For ERRORED results, one would assume that the input result will be a Left, but we use unknownErrorMessage as a fallback error message

Source:
ValidationResult.scala
val result: Option[Result]

Final result of the validation exposed to the API

Final result of the validation exposed to the API

Will be empty for ERRORED validations and filled for VALID or INVALID validations

Source:
ValidationResult.scala

Final status of the validation

Final status of the validation

Source:
ValidationResult.scala