Skip to content

Commit 26ec564

Browse files
committed
[Feature] Update dependencies for new features
Closes #36 Closes #33
1 parent e2ac94f commit 26ec564

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ All notable changes to this project will be documented in this file. This projec
2727
available via the service container).
2828
- [#9](https://github.com/laravel-json-api/laravel/issues/9) The Laravel route registrar is now passed through to
2929
the `resources`, `relationships` and `actions` callbacks as the second function argument.
30+
- [#36](https://github.com/laravel-json-api/laravel/issues/36) Eloquent schemas now support complex singular filter
31+
logic, via the `Schema::isSingular()` method.
32+
- [#33](https://github.com/laravel-json-api/laravel/issues/33) Specification compliance will now reject an incorrect
33+
resource type in a relationship. For example, if a relationship expects `tags` but the client sends `posts`, the
34+
request will be rejected with an error message that `posts` are not supported.
3035

3136
### Changed
3237

tests/dummy/tests/Api/V1/Posts/AttachTagsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testInvalid(): void
9595

9696
$response->assertExactErrorStatus([
9797
'detail' => 'The tags field must be a to-many relationship containing tags resources.',
98-
'source' => ['pointer' => '/data/relationships/tags'],
98+
'source' => ['pointer' => '/data/0'],
9999
'status' => '422',
100100
'title' => 'Unprocessable Entity',
101101
]);

tests/dummy/tests/Api/V1/Posts/DetachTagsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testInvalid(): void
104104

105105
$response->assertExactErrorStatus([
106106
'detail' => 'The tags field must be a to-many relationship containing tags resources.',
107-
'source' => ['pointer' => '/data/relationships/tags'],
107+
'source' => ['pointer' => '/data/0'],
108108
'status' => '422',
109109
'title' => 'Unprocessable Entity',
110110
]);

tests/dummy/tests/Api/V1/Posts/UpdateTagsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testInvalid(): void
114114

115115
$response->assertExactErrorStatus([
116116
'detail' => 'The tags field must be a to-many relationship containing tags resources.',
117-
'source' => ['pointer' => '/data/relationships/tags'],
117+
'source' => ['pointer' => '/data/0'],
118118
'status' => '422',
119119
'title' => 'Unprocessable Entity',
120120
]);

0 commit comments

Comments
 (0)