Commit Graph

651 Commits

Author SHA1 Message Date
Vladimir Razuvaev
167c3e7354 v0.12.2 2018-06-25 23:56:32 +07:00
Daniel Tschinder
a8cd87acff Use multi-line block for trailing quote
ref: fdc10bb918 (diff-ebaed8492e8d884ee4f2255e39909568)

(cherry picked from commit 6e64983)
2018-06-25 23:50:19 +07:00
Vladimir Razuvaev
e9cd1daedb v0.12.1 2018-06-23 11:38:13 +07:00
Daniel Tschinder
2540436a2c Fix wrong length being used in validator.
(cherry picked from commit 8ba1460)
2018-06-23 11:30:09 +07:00
Daniel Tschinder
d53f7f041e Improve example
(cherry picked from commit 3a4f520)
2018-06-23 11:30:00 +07:00
Daniel Tschinder
91daa23c5f Add one more breaking change in 0.12
(cherry picked from commit 300b580)
2018-06-23 11:29:52 +07:00
Ben Zhu
57c77623ee fix port bug
(cherry picked from commit 72e8607)
2018-06-23 11:29:27 +07:00
Ilya Shaydullin
78e2862e3b Fix is null condition
(cherry picked from commit 06490ca)
2018-06-23 11:29:03 +07:00
Ilya Shaydullin
63b04df6ef Removing data elements from response if the error throwing
(cherry picked from commit c7f114d)
2018-06-23 11:28:53 +07:00
Vladimir Razuvaev
01e084a9ee Added changelog for 0.12.0 2018-05-27 19:42:05 +07:00
Vladimir Razuvaev
9201df1b39 v0.12.0 2018-05-27 19:23:13 +07:00
Vladimir Razuvaev
1b22f95a86 Removed previously deprecated classes/methods 2018-05-27 19:13:32 +07:00
Vladimir Razuvaev
2580750d4c
Merge pull request #277 from danez/throwitall
Make Types throw instead of returning Utils::undefined()
2018-05-27 18:08:39 +07:00
Daniel Tschinder
62748279d4 Cleanup imports 2018-04-24 15:38:44 +02:00
Daniel Tschinder
f140149127 Make Types throw instead of returning Utils::undefined() 2018-04-24 15:14:31 +02:00
Vladimir Razuvaev
ec0985619f
Merge pull request #273 from kikoseijo/master
Add Nuwave Lighthouse to Docs.
2018-04-19 11:52:54 +08:00
Vladimir Razuvaev
f265320c3c Merge branch 'master' of https://github.com/webonyx/graphql-php 2018-04-17 17:49:52 +08:00
Vladimir Razuvaev
63299157d8 Note in UPGRADE.md about minimum PHP version requirement in the next major release 2018-04-17 17:49:10 +08:00
Kiko Seijo
98b4355b94 Fix misspell. 2018-04-16 20:52:38 +02:00
Kiko Seijo
d6b16ba0ec Add Nuwave Lighthouse to Docs. 2018-04-16 20:49:49 +02:00
Vladimir Razuvaev
afbc327ea7
Merge pull request #271 from PowerKiKi/github-case
Use correct case for GitHub
2018-04-15 22:39:19 +08:00
Adrien Crivelli
6c55f20f43
Use correct case for GitHub 2018-04-15 17:38:16 +09:00
Vladimir Razuvaev
4418f4f975
Merge pull request #270 from adri/allow-validation-to-be-skipped
Validation > Performance > Return early if rules are empty to avoid visiting elements
2018-04-13 13:18:04 +08:00
Adrian Philipp
b3791378fa Return early if rules are empty to avoid visiting elements
This is tested already in testPassesValidationWithEmptyRules
2018-04-12 17:36:24 +02:00
Vladimir Razuvaev
568cae584b
Merge pull request #260 from simPod/drop-unsupported-php
Drop support for EOL PHP versions
2018-04-08 20:37:29 +08:00
Vladimir Razuvaev
ccbc91a97f
Merge pull request #267 from ruudk/patch-1
Fix missing sprintf in Schema.php
2018-04-06 17:14:58 +08:00
Ruud Kamphuis
66108bec84
Fix missing sprintf 2018-04-05 17:14:28 +02:00
Vladimir Razuvaev
87729589e0
Merge pull request #265 from sarukuku/master
Add content type header to curl commands on server example
2018-04-05 14:47:40 +08:00
sarukuku
9b94ac2f06 Better argument order for curl. Related to #264. 2018-04-04 16:34:05 +03:00
sarukuku
f2678b4a10 Add content type header to curl. This fixes #264. 2018-04-04 16:26:57 +03:00
Simon Podlipsky
bcf396868a
Drop support for EOL PHP versions 2018-03-30 14:48:49 +02:00
Vladimir Razuvaev
5c57d3b379 Note in UPGRADE.md about changes in input format of the Standard Server 2018-03-29 20:31:31 +08:00
Vladimir Razuvaev
b141ed2d72 Merge branch 'master' of https://github.com/webonyx/graphql-php 2018-03-29 20:30:32 +08:00
Vladimir Razuvaev
7762430bc3
Merge pull request #256 from camuthig/fix-operation-param-operation-name
Parse operation name from operationName instead of operation
2018-03-29 20:25:39 +08:00
Chris Muthig
68eb325d18
Add a unit test covering the operationName parsing 2018-03-28 13:55:59 -07:00
Vladimir Razuvaev
a1b1436f7d Remove notice about removing typeConfigDecorator from UPGRADE.md since we reverted this change and it still exists 2018-03-26 12:28:11 +08:00
Vladimir Razuvaev
2913f07050
Merge pull request #258 from ScullWM/patch-1
Fix Symfony PSR7 link
2018-03-26 12:17:24 +08:00
Vladimir Razuvaev
45baa5f185
Merge pull request #248 from danez/012
Port 0.12.3 changes from graphql-js
2018-03-26 11:43:59 +08:00
Daniel Tschinder
3e067cc60f Readd type decorator and fix lazy type loading 2018-03-06 12:53:28 +01:00
Thomas P
2a4c0a111a
Fix Symfony PSR7 link
Previous URL no longer exist and return a 404.
I've update the url to https://symfony.com/doc/current/components/psr7.html
2018-03-05 15:06:38 +01:00
Chris Muthig
8aa6dc17a5
Parse operation name from operationName instead of operation 2018-03-03 15:41:55 -08:00
Daniel Tschinder
f9a366e69a Add Fallback for DirectiveLocations 2018-02-16 16:54:06 +01:00
Daniel Tschinder
61fe317faf Update docs 2018-02-16 16:50:38 +01:00
Daniel Tschinder
5e7cf2aacb Skip test on PHP < 7 2018-02-16 16:47:11 +01:00
Daniel Tschinder
dc6e814de3 Fix orList to be the same as in JS and follow the chicago style for commas 2018-02-16 16:39:59 +01:00
Daniel Tschinder
d92a2dab21 Add suggestions for invalid values
For misspelled enums or field names, these suggestions can be helpful.

This also changes the suggestions algorithm to better detect case-sensitivity mistakes, which are common

ref: graphql/graphql-js#1153
2018-02-16 16:19:25 +01:00
Daniel Tschinder
48c5e64a08 Adding an interface to a type is now a dangerous change.
ref: graphql/graphql-js#992
2018-02-16 15:30:27 +01:00
Daniel Tschinder
d71b45d60e Find breaking directive changes
ref: graphql/graphql-js#1152
2018-02-16 00:15:19 +01:00
Daniel Tschinder
ddfeee314c Fix path argument. Enchance visit test to validate all arguments
ref: graphl/graphql-js#1149
2018-02-15 22:44:17 +01:00
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