File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,8 +181,7 @@ def validate_non_null_input(input, ctx)
181181
182182 # Inject missing required arguments
183183 missing_required_inputs = self . arguments . reduce ( { } ) do |m , ( argument_name , argument ) |
184- ruby_arg_name = argument_name . split ( /(?=[A-Z])/ ) . map ( &:downcase ) . join ( '_' ) . to_sym
185- if !( input . key? ( argument_name ) || input . key? ( ruby_arg_name ) ) && argument . type . non_null? && warden . get_argument ( self , argument_name )
184+ if !input . key? ( argument_name ) && argument . type . non_null? && warden . get_argument ( self , argument_name )
186185 m [ argument_name ] = nil
187186 end
188187
@@ -192,7 +191,6 @@ def validate_non_null_input(input, ctx)
192191
193192 [ input , missing_required_inputs ] . each do |args_to_validate |
194193 args_to_validate . each do |argument_name , value |
195- argument_name = argument_name . to_s . split ( '_' ) . map . with_index { |str , i | i == 0 ? str : str . capitalize } . join if argument_name . is_a? ( Symbol )
196194 argument = warden . get_argument ( self , argument_name )
197195 # Items in the input that are unexpected
198196 unless argument
You can’t perform that action at this time.
0 commit comments