graphql-php/tests
Daniel Tschinder 58e0c7a178 Validate literals in a single rule with finer precision
This generalizes the "arguments of correct type" and "default values of correct type" to a single rule "values of correct type" which has been re-written to rely on a traversal rather than the utility function `isValidLiteralValue`. To reduce breaking scope, this does not remove that utility even though it's no longer used directly within the library. Since the default values rule included another validation rule that rule was renamed to a more apt "variable default value allowed".

This also includes the original errors from custom scalars in the validation error output, solving the remainder of graphql/graphql-js#821.

ref: graphql/graphql-js#1144
2018-02-15 21:29:14 +01:00
..
Error Fix printError/locations for multiple nodes. 2018-02-13 10:42:51 +01:00
Executor Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
Language Add experimental support for parsing variable definitions in fragments 2018-02-15 13:37:45 +01:00
Server Preserve original coercion errors, improve error quality. 2018-02-13 16:51:44 +01:00
Type Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
Utils Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
Validator Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
ServerTest.php Validate schema root types and directives 2018-02-13 10:42:35 +01:00
StarWarsData.php Updated StarWars tests 2016-10-23 00:46:15 +07:00
StarWarsIntrospectionTest.php Ability to override internal types (using types option of Schema class) #174 2017-09-22 23:08:51 +07:00
StarWarsQueryTest.php Updated executor and it's tests for april2016 specs 2016-09-14 18:47:34 +07:00
StarWarsSchema.php Minor fix to StarWarsSchema type language in comments 2016-11-18 20:32:09 +07:00
StarWarsValidationTest.php Updated executor and it's tests for april2016 specs 2016-09-14 18:47:34 +07:00
UtilsTest.php Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09:00