diff --git a/lib/graphql/schema/validator/required_validator.rb b/lib/graphql/schema/validator/required_validator.rb index 5ddf90e418..d5afbb2da1 100644 --- a/lib/graphql/schema/validator/required_validator.rb +++ b/lib/graphql/schema/validator/required_validator.rb @@ -35,7 +35,8 @@ class Validator # end # class RequiredValidator < Validator - # @param one_of [Symbol, Array] An argument, or a list of arguments, that represents a valid set of inputs for this field + # @param one_of [Array] A list of arguments, exactly one of which is required for this field + # @param argument [Symbol] An argument that is required for this field # @param message [String] def initialize(one_of: nil, argument: nil, message: nil, **default_options) @one_of = if one_of