MappingValidator

edu.gemini.grackle.MappingValidator
See theMappingValidator companion object

Attributes

Companion:
object
Source:
mappingvalidator.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any
case class CannotValidateTypeMapping(typeMapping: TypeMapping) extends Failure

Can't validate this kind of FieldMapping.

Can't validate this kind of FieldMapping.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any
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.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any
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.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any
case class MissingTypeMapping(tpe: Type) extends Failure

Missing type mapping.

Missing type mapping.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any
case class ReferencedFieldDoesNotExist(objectMapping: ObjectMapping, fieldMapping: FieldMapping) extends Failure

Referenced field does not exist.

Referenced field does not exist.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any
case class ReferencedTypeDoesNotExist(typeMapping: TypeMapping) extends Failure

Referenced type does not exist.

Referenced type does not exist.

Attributes

Source:
mappingvalidator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Failure
trait AnsiColor
class Object
trait Matchable
class Any

Types

type F[_]

Attributes

Source:
mappingvalidator.scala
type M <: Mapping[F]

Attributes

Source:
mappingvalidator.scala

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.

Attributes

Source:
mappingvalidator.scala
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.

Attributes

Source:
mappingvalidator.scala

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.

Attributes

Source:
mappingvalidator.scala

Abstract fields

val mapping: M

Attributes

Source:
mappingvalidator.scala