Sha256: 6faed203e95542e41489ed7358edcafd52b95c39454b862dff3af02fee1d0f97

Contents?: true

Size: 433 Bytes

Versions: 11

Compression:

Stored size: 433 Bytes

Contents

class GraphQL::StaticValidation::ArgumentsAreDefined < GraphQL::StaticValidation::ArgumentsValidator
  def validate_node(parent, node, defn, context)
    argument_defn = defn.arguments[node.name]
    if argument_defn.nil?
      context.errors << message("#{parent.class.name.split("::").last} '#{parent.name}' doesn't accept argument #{node.name}", parent)
      GraphQL::Language::Visitor::SKIP
    else
      nil
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
graphql-0.10.4 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.10.3 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.10.2 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.10.1 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.10.0 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.9.5 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.9.4 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.9.3 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.9.2 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.8.1 lib/graphql/static_validation/rules/arguments_are_defined.rb
graphql-0.8.0 lib/graphql/static_validation/rules/arguments_are_defined.rb