Improve error messages for invalid input types#3133
Improve error messages for invalid input types#3133jturkel wants to merge 1 commit intormosolgo:masterfrom
Conversation
|
👍 This change is good by me, I just want to point out that it won't apply to class-based types using the interpreter (which will someday be the only way to run graphql-ruby). I don't think it uses |
|
Doh. I first noticed the problem when adding validation that deprecated arguments aren't required in #3015. The tests in question use the new class based API but I guess many of them call I'm going to close this PR since we're not using the legacy API. I'll open up a new PR that properly handles validation of required deprecated arguments in the class based API. |
Error messages when recursively validating a field argument's type don't actually include the input type's name which makes them a bit confusing. Consider the following invalid schema:
This generates the following error message that doesn't mention the
MyInputtype:With the proposed changes the error message becomes: