From 7883c7f9f3bec1c2302fa4b1c83fe6d9d1668fee Mon Sep 17 00:00:00 2001 From: Paul Daniels Date: Sat, 18 Jan 2020 17:35:16 +0800 Subject: [PATCH] Fix formatting --- .../main/scala/caliban/validation/Validator.scala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/main/scala/caliban/validation/Validator.scala b/core/src/main/scala/caliban/validation/Validator.scala index 0e203b861..f68bd080e 100644 --- a/core/src/main/scala/caliban/validation/Validator.scala +++ b/core/src/main/scala/caliban/validation/Validator.scala @@ -83,7 +83,7 @@ object Validator { F(op.selectionSet, fragments, variables, operation.opType, document.sourceMapper), op.operationType, op.variableDefinitions - ) + ) ) } } @@ -243,7 +243,7 @@ object Validator { "Variables are scoped on a per‐operation basis. That means that any variable used within the context of an operation must be defined at the top level of that operation" ) ) - ) + ) ) *> IO.foreach(op.variableDefinitions)( v => IO.when(!variableUsages.contains(v.name))( @@ -253,9 +253,9 @@ object Validator { "All variables defined by an operation must be used in that operation or a fragment transitively included by that operation. Unused variables cause a validation error." ) ) - ) + ) ) - } + } ) .unit @@ -385,7 +385,7 @@ object Validator { ValidationError( s"Field '${field.name}' does not exist on type '${Rendering.renderTypeName(currentType)}'.", "The target field of a field selection must be defined on the scoped type of the selection set. There are no limitations on alias names." - ) + ) ) .flatMap { f => validateFields(context, field.selectionSet, Types.innerType(f.`type`())) *> @@ -417,7 +417,7 @@ object Validator { "Arguments can be required. An argument is required if the argument type is non‐null and does not have a default value. Otherwise, the argument is optional." ) ) - ) + ) ) private def validateInputValues(inputValue: __InputValue, argValue: InputValue): IO[ValidationError, Unit] = { @@ -452,7 +452,7 @@ object Validator { "Input object fields may be required. Much like a field may have required arguments, an input object may have required fields. An input field is required if it has a non‐null type and does not have a default value. Otherwise, the input object field is optional." ) ) - ) + ) ) .unit case _ => IO.unit