Validator

object Validator
class Object
trait Matchable
class Any

Value members

Concrete methods

def failValidation[T](msg: String, explanatoryText: String): IO[ValidationError, T]
def prepare[R](document: Document, rootType: RootType, rootSchema: RootSchema[R], operationName: Option[String], variables: Map[String, InputValue], skipValidation: Boolean): IO[ValidationError, ExecutionRequest]

Prepare the request for execution. Fails with a caliban.CalibanError.ValidationError otherwise.

Prepare the request for execution. Fails with a caliban.CalibanError.ValidationError otherwise.

def validate(document: Document, rootType: RootType): IO[ValidationError, Unit]

Verifies that the given document is valid for this type. Fails with a caliban.CalibanError.ValidationError otherwise.

Verifies that the given document is valid for this type. Fails with a caliban.CalibanError.ValidationError otherwise.

Verifies that the given schema is valid. Fails with a caliban.CalibanError.ValidationError otherwise.

Verifies that the given schema is valid. Fails with a caliban.CalibanError.ValidationError otherwise.