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
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."
Copy file name to clipboardexpand all lines: features/security/validate_incoming_content-types.feature
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,4 +14,4 @@ Feature: Validate incoming content type
14
14
"""
15
15
Then the response status code should be 415
16
16
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
17
-
And the JSON node "description" should be equal to 'The content-type "text/plain" is not supported. Supported MIME types are "application/ld+json", "application/hal+json", "application/vnd.api+json", "application/xml", "text/xml", "application/json", "text/html", "application/graphql", "multipart/form-data".'
17
+
And the JSON node "detail" should be equal to 'The content-type "text/plain" is not supported. Supported MIME types are "application/ld+json", "application/hal+json", "application/vnd.api+json", "application/xml", "text/xml", "application/json", "text/html", "application/graphql", "multipart/form-data".'
Copy file name to clipboardexpand all lines: features/serializer/vo_relations.feature
+2-7
Original file line number
Diff line number
Diff line change
@@ -150,18 +150,13 @@ Feature: Value object as ApiResource
150
150
"type": "string",
151
151
"pattern": "^hydra:Error$"
152
152
},
153
-
"title": {
154
-
"type": "string",
155
-
"pattern": "^An error occurred$"
156
-
},
157
-
"description": {
153
+
"detail": {
158
154
"pattern": "^Cannot create an instance of \"ApiPlatform\\\\Tests\\\\Fixtures\\\\TestBundle\\\\(Document|Entity)\\\\VoDummyCar\" from serialized data because its constructor requires the following parameters to be present : \"\\$drivers\".$"
0 commit comments