SqlMappingValidator

trait SqlMappingValidator extends MappingValidator
Companion
object
trait MappingValidator
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)

Can't validate this kind of FieldMapping.

Can't validate this kind of FieldMapping.

Inherited from
MappingValidator
case

Can't validate this kind of FieldMapping.

Can't validate this kind of FieldMapping.

Inherited from
MappingValidator
case
class InapplicableGraphQLType(typeMapping: TypeMapping, expected: String)

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)

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)

Missing type mapping.

Missing type mapping.

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

Referenced field does not exist.

Referenced field does not exist.

Inherited from
MappingValidator
case

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
def validateMapping(severity: Severity): List[Failure]

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