You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[2771363b0](https://github.com/api-platform/core/commit/2771363b03f1b1c27313ecd457f7a4934524151c) fix(validation): deprecate string message for ValidationException constructor (#7005)
10
+
*[500062da2](https://github.com/api-platform/core/commit/500062da2074585979e9a92939bc3b7a3c7554c5) fix(symfony): add a `alwaysBootKernel` property for BC layer (#7007)
11
+
*[8697d6630](https://github.com/api-platform/core/commit/8697d66304d276feeef6f838c8c54291d3563aab) fix(openapi): boolean "true" value in HttpOperation::openapi (#7003)
12
+
*[b1e0c889c](https://github.com/api-platform/core/commit/b1e0c889cc96602afc9c68fccb9da25a6b6fd354) fix(doctrine): correct the use statement for ManagerRegistry (#7004)
13
+
*[fcbd804b2](https://github.com/api-platform/core/commit/fcbd804b29907baba8878ca12ff013732e0326e4) fix(jsonld): duplicate error fields when prefix is enabled (#7021)
14
+
15
+
### Features
16
+
17
+
*[129853668](https://github.com/api-platform/core/commit/129853668c3fd66bcfe1a298a0f662c29545f7a4) feat(laravel): stateOptions modelClass for eloquent (#7020)
*[a434173b8](https://github.com/api-platform/core/commit/a434173b82f735041a79cb5f469ee0e731ca5956) fix(doctrine): Add a proper exception when a doctrine manager could not be found for a resource class (#6995)
Copy file name to clipboardExpand all lines: features/main/attribute_resource.feature
+1-1
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Feature: Resource attributes
100
100
And the response should be in JSON
101
101
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
102
102
And the header "Link" should contain '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error"'
103
-
And the JSON node "description" should be equal to 'Unable to generate an IRI for the item of type "ApiPlatform\Tests\Fixtures\TestBundle\Entity\IncompleteUriVariableConfigured"'
103
+
And the JSON node "detail" should be equal to 'Unable to generate an IRI for the item of type "ApiPlatform\Tests\Fixtures\TestBundle\Entity\IncompleteUriVariableConfigured"'
104
104
105
105
Scenario: Uri variables with Post operation
106
106
When I add "Content-Type" header equal to "application/ld+json"
Copy file name to clipboardExpand all lines: features/main/relation.feature
+5-5
Original file line number
Diff line number
Diff line change
@@ -472,7 +472,7 @@ Feature: Relations support
472
472
Then the response status code should be 400
473
473
And the response should be in JSON
474
474
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
475
-
And the JSON node "description" should contain 'Invalid IRI "certainly not an IRI".'
475
+
And the JSON node "detail" should contain 'Invalid IRI "certainly not an IRI".'
476
476
477
477
Scenario: Passing an invalid type to a relation
478
478
When I add "Content-Type" header equal to "application/ld+json"
@@ -495,18 +495,18 @@ Feature: Relations support
495
495
"type": "string",
496
496
"pattern": "^hydra:Error$"
497
497
},
498
-
"title": {
498
+
"hydra:title": {
499
499
"type": "string",
500
500
"pattern": "^An error occurred$"
501
501
},
502
-
"description": {
502
+
"detail": {
503
503
"pattern": "^The type of the \"ApiPlatform\\\\Tests\\\\Fixtures\\\\TestBundle\\\\(Document|Entity)\\\\RelatedDummy\" resource must be \"array\" \\(nested document\\) or \"string\" \\(IRI\\), \"integer\" given.$"
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
121
-
And the JSON node "description" should be equal to 'Could not denormalize object of type "ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue5452\ActivableInterface", no supporting normalizer found.'
121
+
And the JSON node "detail" should be equal to 'Could not denormalize object of type "ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue5452\ActivableInterface", no supporting normalizer found.'
Copy file name to clipboardExpand all lines: features/mongodb/filters.feature
+2-4
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,7 @@ Feature: Filters on collections
13
13
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
14
14
And the JSON node "@context" should be equal to "/contexts/Error"
15
15
And the JSON node "@type" should be equal to "hydra:Error"
16
-
And the JSON node "title" should be equal to "An error occurred"
17
-
And the JSON node "description" should be equal to "Cannot use reference 'badFourthLevel' in class 'ThirdLevel' for lookup or graphLookup: dbRef references are not supported."
16
+
And the JSON node "detail" should be equal to "Cannot use reference 'badFourthLevel' in class 'ThirdLevel' for lookup or graphLookup: dbRef references are not supported."
18
17
And the JSON node "trace" should exist
19
18
20
19
Scenario: Error when getting collection with nested properties if references are not correctly stored (not owning side)
@@ -24,6 +23,5 @@ Feature: Filters on collections
24
23
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
25
24
And the JSON node "@context" should be equal to "/contexts/Error"
26
25
And the JSON node "@type" should be equal to "hydra:Error"
27
-
And the JSON node "title" should be equal to "An error occurred"
28
-
And the JSON node "description" should be equal to "Cannot use reference 'badThirdLevel' in class 'FourthLevel' for lookup or graphLookup: dbRef references are not supported."
26
+
And the JSON node "detail" should be equal to "Cannot use reference 'badThirdLevel' in class 'FourthLevel' for lookup or graphLookup: dbRef references are not supported."
0 commit comments