File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,7 @@ def validate_non_null_input(input, ctx)
181
181
182
182
# Inject missing required arguments
183
183
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 )
186
185
m [ argument_name ] = nil
187
186
end
188
187
@@ -192,7 +191,6 @@ def validate_non_null_input(input, ctx)
192
191
193
192
[ input , missing_required_inputs ] . each do |args_to_validate |
194
193
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 )
196
194
argument = warden . get_argument ( self , argument_name )
197
195
# Items in the input that are unexpected
198
196
unless argument
You can’t perform that action at this time.
0 commit comments