MappingValidator

Companion:
object
class Object
trait Matchable
class Any

Type members

Classlikes

case class CannotValidateFieldMapping(owner: ObjectType, field: Field, fieldMapping: FieldMapping) extends Failure

Can't validate this kind of FieldMapping.

Can't validate this kind of FieldMapping.

case class CannotValidateTypeMapping(typeMapping: TypeMapping) extends Failure

Can't validate this kind of FieldMapping.

Can't validate this kind of FieldMapping.

case class InapplicableGraphQLType(typeMapping: TypeMapping, expected: String) extends Failure

GraphQL type isn't applicable for mapping type.

GraphQL type isn't applicable for mapping type.

case class MissingFieldMapping(owner: ObjectMapping, field: Field) extends Failure

Object type owner declares field but no such mapping exists.

Object type owner declares field but no such mapping exists.

case class MissingTypeMapping(tpe: Type) extends Failure

Missing type mapping.

Missing type mapping.

case class ReferencedFieldDoesNotExist(objectMapping: ObjectMapping, fieldMapping: FieldMapping) extends Failure

Referenced field does not exist.

Referenced field does not exist.

case class ReferencedTypeDoesNotExist(typeMapping: TypeMapping) extends Failure

Referenced type does not exist.

Referenced type does not exist.

Types

type F[_]
type M <: Mapping[F]

Value members

Concrete methods

def unsafeValidate(severity: Severity): Unit

Run this validator, raising a ValidationException if there are any failures of severity equal to or greater than the specified Severity.

Run this validator, raising a ValidationException if there are any failures of severity equal to or greater than the specified Severity.

def validate[G[_]](severity: Severity)(implicit ev: ApplicativeError[G, Throwable]): G[Unit]

Run this validator, raising a ValidationException in G if there are any failures of severity equal to or greater than the specified Severity.

Run this validator, raising a ValidationException in G if there are any failures of severity equal to or greater than the specified Severity.

Run this validator, yielding a chain of Failures of severity equal to or greater than the specified Severity.

Run this validator, yielding a chain of Failures of severity equal to or greater than the specified Severity.

Abstract fields

val mapping: M