You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: required_validator.rb
    path of file: ./repos/graphql-ruby/lib/graphql/schema/validator
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module GraphQL
  class Schema
    class Validator
      # Use this validator to require _one_ of the named arguments t
    
        def initialize(one_of: nil, argument: nil, message: "%{validated} has the wrong arguments", **default_options)
          @one_of = if one_of
            one_of
          elsif argument
            [argument]
          else
            raise ArgumentError, "`one_of:` or `argument:` must be given in `validates required: {...}`"
          end