lib/graphql/query/validation_pipeline.rb in graphql-1.13.14 vs lib/graphql/query/validation_pipeline.rb in graphql-1.13.15

- old
+ new

@@ -14,14 +14,13 @@ # # @api private class ValidationPipeline attr_reader :max_depth, :max_complexity - def initialize(query:, validate:, parse_error:, operation_name_error:, max_depth:, max_complexity:) + def initialize(query:, parse_error:, operation_name_error:, max_depth:, max_complexity:) @validation_errors = [] @internal_representation = nil - @validate = validate @parse_error = parse_error @operation_name_error = operation_name_error @query = query @schema = query.schema @max_depth = max_depth @@ -70,10 +69,10 @@ @valid = false return elsif @operation_name_error @validation_errors << @operation_name_error else - validation_result = @schema.static_validator.validate(@query, validate: @validate, timeout: @schema.validate_timeout, max_errors: @schema.validate_max_errors) + validation_result = @schema.static_validator.validate(@query, validate: @query.validate, timeout: @schema.validate_timeout, max_errors: @schema.validate_max_errors) @validation_errors.concat(validation_result[:errors]) @internal_representation = validation_result[:irep] if @validation_errors.empty? @validation_errors.concat(@query.variables.errors)