You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseInvalidArgumentError,"@#{graphql_name}.#{arg_defn.graphql_name} on #{owner.path} is invalid (#{value.inspect}): #{result.problems.first["explanation"]}"
f_err_res=DirectiveValidationSchema.execute("{ i @validatedDirective(f: -10) }")
423
+
assert_equal[{"message"=>"f must be greater than 0","locations"=>[{"line"=>1,"column"=>5}],"path"=>["i"]}],f_err_res["errors"]
424
+
425
+
s_err_res=DirectiveValidationSchema.execute("{ i @validatedDirective(s: \"wnrn\") }")
426
+
assert_equal[{"message"=>"s is invalid","locations"=>[{"line"=>1,"column"=>5}],"path"=>["i"]}],s_err_res["errors"]
427
+
428
+
f_s_err_res=DirectiveValidationSchema.execute("{ i @validatedDirective }")
429
+
assert_equal[{"message"=>"validatedDirective must include exactly one of the following arguments: f, s.","locations"=>[{"line"=>1,"column"=>5}],"path"=>["i"]}],f_s_err_res["errors"]
0 commit comments