Validator

caliban.validation.Validator
object Validator

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Validator.type

Members list

Type members

Types

type QueryValidation = EReader[Context, ValidationError, Unit]

A QueryValidation is a pure program that can access a Context, fail with a ValidationError or succeed with Unit.

A QueryValidation is a pure program that can access a Context, fail with a ValidationError or succeed with Unit.

Attributes

Value members

Concrete methods

def failValidation(msg: String, explanatoryText: String): EReader[Any, ValidationError, Nothing]
def prepare[R](document: Document, rootType: RootType, rootSchema: RootSchema[R], operationName: Option[String], variables: Map[String, InputValue], skipValidation: Boolean, validations: List[QueryValidation]): 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.

Attributes

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.

Attributes

def validateObject(obj: `__Type`): EReader[Any, ValidationError, Unit]

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.

Attributes