File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ All notable changes to this project will be documented in this file. This projec
22
22
23
23
- Minimum Laravel version is now ` 8.30 ` . This change was required to use the ` $stopOnFirstFailure ` property on Laravel's
24
24
` FormRequest ` class.
25
+ - Removed the ` LaravelJsonApi\Spec\UnexpectedDocumentException ` which was thrown if there was a failure when decoding
26
+ request JSON content before parsing it for compliance with the JSON: API specification. A ` JsonApiException ` will now
27
+ be thrown instead.
25
28
26
29
## [ 1.0.0-beta.4] - 2021-06-02
27
30
Original file line number Diff line number Diff line change 29
29
"laravel-json-api/eloquent" : " ^1.0.0-beta.5" ,
30
30
"laravel-json-api/encoder-neomerx" : " ^1.0.0-beta.1" ,
31
31
"laravel-json-api/exceptions" : " ^1.0.0-beta.4" ,
32
- "laravel-json-api/spec" : " ^1.0.0-beta.1 " ,
32
+ "laravel-json-api/spec" : " ^1.0.0-beta.2 " ,
33
33
"laravel-json-api/validation" : " ^1.0.0-beta.2" ,
34
34
"laravel/framework" : " ^8.30"
35
35
},
Original file line number Diff line number Diff line change 31
31
use LaravelJsonApi \Core \Support \Str ;
32
32
use LaravelJsonApi \Spec \RelationBuilder ;
33
33
use LaravelJsonApi \Spec \ResourceBuilder ;
34
- use LaravelJsonApi \Spec \UnexpectedDocumentException ;
35
34
use LogicException ;
36
35
use Symfony \Component \HttpKernel \Exception \HttpException ;
37
36
use Symfony \Component \HttpKernel \Exception \HttpExceptionInterface ;
@@ -487,7 +486,7 @@ private function relationshipRules(): array
487
486
* Validate the JSON API document for a resource request.
488
487
*
489
488
* @return void
490
- * @throws HttpExceptionInterface
489
+ * @throws JsonApiException
491
490
*/
492
491
private function validateResourceDocument (): void
493
492
{
@@ -510,7 +509,6 @@ private function validateResourceDocument(): void
510
509
* Validate the JSON API document for a modify relationship request.
511
510
*
512
511
* @return void
513
- * @throws UnexpectedDocumentException
514
512
* @throws JsonApiException
515
513
*/
516
514
private function validateRelationshipDocument (): void
You can’t perform that action at this time.
0 commit comments