Skip to content

Commit

Permalink
Merge pull request #1119 from asteinwedel/oneOf-input-obj
Browse files Browse the repository at this point in the history
Support oneOf directive on input objects
  • Loading branch information
yanns authored Jul 22, 2024
2 parents 2f58bba + d0fa516 commit 65a6c5e
Show file tree
Hide file tree
Showing 22 changed files with 965 additions and 231 deletions.
16 changes: 15 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,21 @@ lazy val core = project
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"sangria.schema.WithInputTypeRendering.deprecationTracker"),
ProblemFilters.exclude[ReversedMissingMethodProblem](
"sangria.schema.WithInputTypeRendering.deprecationTracker")
"sangria.schema.WithInputTypeRendering.deprecationTracker"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"sangria.validation.RuleBasedQueryValidator.validateInputDocument"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"sangria.validation.RuleBasedQueryValidator.validateInputDocument"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"sangria.schema.SchemaChange#AbstractAstDirectiveAdded.this"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"sangria.schema.SchemaChange#InputObjectTypeAstDirectiveAdded.copy"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"sangria.schema.SchemaChange#InputObjectTypeAstDirectiveAdded.this"),
ProblemFilters.exclude[MissingTypesProblem](
"sangria.schema.SchemaChange$InputObjectTypeAstDirectiveAdded$"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"sangria.schema.SchemaChange#InputObjectTypeAstDirectiveAdded.apply")
),
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oF"),
libraryDependencies ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class OverlappingFieldsCanBeMergedBenchmark {
bh.consume(doValidate(validator, deepAbstractConcrete))

private def doValidate(validator: QueryValidator, document: Document): Vector[Violation] = {
val result = validator.validateQuery(schema, document, None)
val result = validator.validateQuery(schema, document, Map.empty, None)
require(result.isEmpty)
result
}
Expand Down
Loading

0 comments on commit 65a6c5e

Please sign in to comment.