Vladimir Razuvaev
f438a726cd
v0.11.6
2018-04-17 18:34:43 +08:00
Ruud Kamphuis
464b8fee6e
Fix missing sprintf
...
(cherry picked from commit 66108be
)
2018-04-17 18:04:42 +08:00
Jeremiah VALERIE
9a8c1b09e3
Fix Utils::printSafe
with bool true
...
(cherry picked from commit 944cceb
)
2018-04-17 18:03:20 +08:00
Jiri Pokorny
96047246c6
Fix content-type header match when parsing PSR request.
...
(cherry picked from commit dca2091
)
2018-04-17 18:02:55 +08:00
Vladimir Razuvaev
26b445515f
Switched license to MIT for full compatibility with graphql-js
...
(cherry picked from commit 7310b25
)
2018-04-17 18:02:24 +08:00
Vladimir Razuvaev
8a8a354943
Fixed bug preventing use of parser noLocation option for serialization / deserialization
...
(cherry picked from commit 8b17953
)
2018-04-17 18:01:26 +08:00
Adrian Philipp
dc0616edaf
Return early if rules are empty to avoid visiting elements
...
This is tested already in testPassesValidationWithEmptyRules
2018-04-15 17:22:21 +02:00
Vladimir Razuvaev
b97cad0f4a
v0.11.5
2017-12-12 16:03:21 +07:00
Vladimir Razuvaev
bb75586aa5
Merge pull request #210 from enumag/patch-1
...
Allow objects with __toString in IDType
2017-12-12 16:02:09 +07:00
Jáchym Toušek
9e2c1dae87
Add test
2017-12-12 09:53:15 +01:00
Jáchym Toušek
25e341e9d9
Allow objects with __toString in IDType
2017-12-12 08:56:03 +01:00
Vladimir Razuvaev
3536280fac
v0.11.4
2017-11-28 20:27:06 +07:00
Vladimir Razuvaev
9c563d5c00
Merge pull request #199 from roippi/findbreakingchanges
...
port findBreakingChanges
2017-11-28 20:14:36 +07:00
Vladimir Razuvaev
ea05c92723
v0.11.3
2017-11-28 12:38:56 +07:00
Vladimir Razuvaev
0af2fe79f2
StandardServer: a bit more validation for parsed json PSR-7 request (related to #202 )
2017-11-28 12:28:54 +07:00
Vladimir Razuvaev
9d37f4c0d9
Merge pull request #202 from PowerKiKi/support-non-parsed-psr7
...
Support non pre-parsed PSR-7 request body
2017-11-28 12:01:15 +07:00
Adrien Crivelli
11c9429fab
Support non pre-parsed PSR-7 request body
...
Because PSR-7 specification only specify that `getParsedBody()` **may**
return the parsed body for `application/json`, we cannot assume that it
is always the case. So if the value returned parsed body is an empty array,
it means we should try to parse it ourselves (`null` would mean no body at
all according to spec).
With this modification we try to used given parsed body, but fallback on
trying to parse the body if necessary. This leave the door open to custom
implementation of parsing if needed, while making it easier to use out of
the box.
2017-11-26 19:57:32 +09:00
Ben Roberts
b18dfd670f
testFindsAllDangerousChanges
2017-11-21 12:30:18 -05:00
Ben Roberts
533b8b8b5f
testDetectsAdditionsToUnionType
2017-11-21 12:18:28 -05:00
Ben Roberts
e0a63ec792
testDetectsEnumValueAdditions
2017-11-21 11:53:14 -05:00
Ben Roberts
c4ae03454a
testFindDangerousArgChanges
2017-11-21 11:50:11 -05:00
Ben Roberts
3c0ed787ba
testDetectsAllBreakingChanges
2017-11-21 11:33:45 -05:00
Ben Roberts
dbccf9b196
testDetectsRemovalOfInterfaces
2017-11-20 14:39:06 -05:00
Ben Roberts
0bb689d340
testArgsThatMoveAwayFromNonNull
2017-11-20 14:12:26 -05:00
Ben Roberts
90f35f26a2
testDoesNotFlagArgsWithSameTypeSignature
2017-11-20 13:57:52 -05:00
Ben Roberts
0fd5abc833
testDetectsAdditionOfFieldArg
2017-11-20 13:48:21 -05:00
Ben Roberts
42d8ac07f9
testDetectsFieldArgumentTypeChange
2017-11-20 12:52:49 -05:00
Ben Roberts
4ea6cbe839
bugfix var ref
2017-11-17 17:35:33 -05:00
Ben Roberts
fc9c5e85aa
testDetectsRemovalOfFieldArgument
2017-11-17 17:18:26 -05:00
Ben Roberts
cac011246e
testDetectsValuesRemovedFromEnum
2017-11-17 16:24:04 -05:00
Ben Roberts
98ce1ccc69
testDetectsIfTypeWasRemovedFromUnion
2017-11-17 16:08:44 -05:00
Ben Roberts
dde2747918
testDetectsNonNullFieldAddedToInputType
2017-11-17 15:56:53 -05:00
Ben Roberts
cf4cccf4d6
testShouldDetectInputFieldChanges
2017-11-17 15:43:16 -05:00
Ben Roberts
68dbcc9ca3
testShouldDetectFieldChangesAndDeletions test
2017-11-17 14:29:47 -05:00
Ben Roberts
b2b5d6f080
findTypesThatChangedKind test
2017-11-17 13:04:01 -05:00
Ben Roberts
d9ce567cc8
findRemovedTypes test
2017-11-17 11:21:05 -05:00
Ben Roberts
4207adc098
change fns to static
2017-11-17 10:54:18 -05:00
Ben Roberts
6bdb7b7f80
improve docstrings
2017-11-16 17:44:08 -05:00
Ben Roberts
af60f1ee4d
finish mechanical conversions
2017-11-16 17:42:38 -05:00
Ben Roberts
a1325eeb3f
top level API functions, docstrings
2017-11-16 15:53:20 -05:00
Ben Roberts
55f6d6cf47
interfaces and enums
2017-11-16 15:25:25 -05:00
Ben Roberts
6e95b81aee
dangerous changes consts
2017-11-16 14:17:21 -05:00
Ben Roberts
e649ef307a
couple more functions
2017-11-16 14:15:39 -05:00
Ben Roberts
3811181f49
some functions converted over
2017-11-16 13:53:01 -05:00
Ben Roberts
7aebf2dbf7
initial porting
2017-11-15 16:12:56 -05:00
Vladimir Razuvaev
eaadae4a5b
Merge pull request #187 from gabidj/patch-1
...
Fixed minor bug in example
2017-10-19 12:02:46 +07:00
Gabi DJ
9b449745ab
Update graphql.php
2017-10-18 16:34:14 +03:00
Gabi DJ
7f54b1f7e3
removed redundant code and comments
...
removed redundant code and comments from PR
2017-10-18 16:32:43 +03:00
Gabi DJ
cf3ca86246
$data
Unsupported operand types error fix
...
the operator `+=` only works like `array_merge ($left, $right) ;` if both variables are arrays
2017-10-17 16:47:26 +03:00
Vladimir Razuvaev
57f5ee3783
Fixed typo in docs, see #185
2017-10-16 23:06:21 +07:00