
sangria.validation.ValidationRule.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sangria_2.11 Show documentation
Show all versions of sangria_2.11 Show documentation
Scala GraphQL implementation
package sangria.validation
import sangria.ast.{AstNode, AstVisitorCommand}
trait ValidationRule {
type ValidationVisit = PartialFunction[AstNode, Either[Vector[Violation], AstVisitorCommand.Value]]
trait AstValidatingVisitor {
def onEnter: ValidationVisit = PartialFunction.empty
def onLeave: ValidationVisit = PartialFunction.empty
}
def visitor(ctx: ValidationContext): AstValidatingVisitor
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy