SqlMappingValidator

Companion:
object
class Object
trait Matchable
class Any

Type members

Classlikes

case class InconsistentTypeMapping(owner: ObjectType, field: Field, sf: SqlField, lm: LeafMapping[_]) extends Failure

SqlField codec and LeafMapping are inconsistent.

SqlField codec and LeafMapping are inconsistent.

Inherited 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.

Inherited from:
MappingValidator
case class CannotValidateTypeMapping(typeMapping: TypeMapping) extends Failure

Can't validate this kind of FieldMapping.

Can't validate this kind of FieldMapping.

Inherited from:
MappingValidator
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.

Inherited from:
MappingValidator
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.

Inherited from:
MappingValidator
case class MissingTypeMapping(tpe: Type) extends Failure

Missing type mapping.

Missing type mapping.

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

Referenced field does not exist.

Referenced field does not exist.

Inherited from:
MappingValidator
case class ReferencedTypeDoesNotExist(typeMapping: TypeMapping) extends Failure

Referenced type does not exist.

Referenced type does not exist.

Inherited from:
MappingValidator

Types

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

Value members

Inherited 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.

Inherited from:
MappingValidator
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.

Inherited from:
MappingValidator

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.

Inherited from:
MappingValidator

Abstract fields

val mapping: M