@@ -17,7 +17,7 @@ public function goodRequests(): array
1717 {
1818 return [
1919 [
20- new Request (['filter ' => [[ ' field ' => ' name ' , ' operator ' => ' eq ' , ' value ' => ' John Doe '] ]]),
20+ new Request (['filter ' => [' name:eq: John Doe ' ]]),
2121 [
2222 'filters ' => [['field ' => 'name ' , 'operator ' => 'eq ' , 'value ' => 'John Doe ' ]],
2323 'sorts ' => [],
@@ -27,7 +27,7 @@ public function goodRequests(): array
2727 ]
2828 ],
2929 [
30- new Request (['sort ' => [[ ' field ' => ' name ' , ' direction ' => ' DESC '] ]]),
30+ new Request (['sort ' => [' name: DESC ' ]]),
3131 [
3232 'filters ' => [],
3333 'sorts ' => [['field ' => 'name ' , 'direction ' => 'DESC ' ]],
@@ -58,14 +58,14 @@ public function goodRequests(): array
5858 ],
5959 [
6060 new Request ([
61- 'filter ' => [[ ' field ' => ' email ' , ' operator ' => ' lk ' , ' value ' => ' @gmail.com '] ],
62- 'sort ' => [[ ' field ' => ' updated ' , ' direction ' => ' ASC '] ],
61+ 'filter ' => [' email:ew: @gmail.com ' ],
62+ 'sort ' => [' updated: ASC ' ],
6363 'limit ' => 50 ,
6464 'page ' => 11 ,
6565 'connection ' => ['profile ' ],
6666 ]),
6767 [
68- 'filters ' => [['field ' => 'email ' , 'operator ' => 'lk ' , 'value ' => '@gmail.com ' ]],
68+ 'filters ' => [['field ' => 'email ' , 'operator ' => 'ew ' , 'value ' => '@gmail.com ' ]],
6969 'sorts ' => [['field ' => 'updated ' , 'direction ' => 'ASC ' ]],
7070 'limit ' => 50 ,
7171 'page ' => 11 ,
@@ -79,15 +79,15 @@ public function badRequests(): array
7979 {
8080 return [
8181 [
82- new Request (['filter ' => [[ ' field ' => ' name '] ]]),
82+ new Request (['filter ' => [' name ' ]]),
8383 UnprocessableEntityHttpException::class
8484 ],
8585 [
86- new Request (['sort ' => [[ ' direction ' => ' DESC '] ]]),
86+ new Request (['sort ' => [' : DESC ' ]]),
8787 UnprocessableEntityHttpException::class
8888 ],
8989 [
90- new Request (['sort ' => [[]] , 'filter ' => [[] ]]),
90+ new Request (['sort ' => ['' ] , 'filter ' => ['' ]]),
9191 UnprocessableEntityHttpException::class
9292 ],
9393 ];
0 commit comments