-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTime/Enum types doesn't show invalid input data #147
Comments
I have encountered the same issue, with a ENUM type. |
@MGDSoft Are you pushing any PR? |
@dilab I have had bad experience doing PR that were not accepted. Until I get the okay I will not do it :/ |
@MGDSoft sorry to hear about that. @viniychuk would you accept this PR? |
I just learned the hard way this was actually a BC break. Any custom Scalar type now has to call |
I just had the same experience as @fritz-gerneth. |
Just ran into it too. Still not sure what the right solution is (define custom and more permissive types for int/float/etc.?) |
Hi,
If I have a param with DateTime and write a bad input, It doesnt show an error. And in resolver I get a null value...
Example
Execute with this query
and result is
Looking for this "error" I found the class ResolveValidator, lines 54 - 60
The problem here is the function parseValue return a null value and isValidValue verify input NULL instead of original value.
SOLUTION
I think inside the function "isValidValue" (AbstractType) should be call inside to "parseValue", to know the original value and if It get a NULL it will throw an error.
and each Validator call to parseValue if it's necessary
I can create a pull request if you give me the approval
The text was updated successfully, but these errors were encountered: