File tree Expand file tree Collapse file tree 5 files changed +13
-4
lines changed
tests/Fixtures/FileConfigurations Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ Feature: Date filter on collections
10
10
Then the response status code should be 200
11
11
And the response should be in JSON
12
12
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
13
- And print last JSON response
14
13
And the JSON should be valid according to this schema:
15
14
"""
16
15
{
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ Feature: JSON-LD contexts generation
40
40
},
41
41
"jsonData": "#Dummy/jsonData",
42
42
"nameConverted": "#Dummy/nameConverted",
43
+ "id": "#Dummy/id",
43
44
"name": "http://schema.org/name",
44
45
"alias": "https://schema.org/alternateName",
45
46
"foo": "#Dummy/foo"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <resources >
3
+ <resources xmlns =" https://api-platform.com/schema/metadata"
4
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : schemaLocation =" https://api-platform.com/schema/metadata
6
+ https://api-platform.com/schema/metadata/metadata-2.0.xsd" >
4
7
<resource class =" ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy" >
5
8
<itemOperation name =" my_op_name" >
6
9
<attribute name =" method" >POST</attribute >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <resources >
3
+ <resources xmlns =" https://api-platform.com/schema/metadata"
4
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : schemaLocation =" https://api-platform.com/schema/metadata
6
+ https://api-platform.com/schema/metadata/metadata-2.0.xsd" >
4
7
<resource class =" ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy" >
5
8
<itemOperations >
6
9
<itemOperation name =" my_op_name" >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <resources >
3
+ <resources xmlns =" https://api-platform.com/schema/metadata"
4
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : schemaLocation =" https://api-platform.com/schema/metadata
6
+ https://api-platform.com/schema/metadata/metadata-2.0.xsd" >
4
7
<resource class =" ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy" >
5
8
<itemOperations />
6
9
<collectionOperations >
You can’t perform that action at this time.
0 commit comments