Skip to content

Commit d0dc684

Browse files
authored
Merge pull request #1089 from soyuka/fix-xsd
Fix xsd uri schema
2 parents 721d863 + 64f105b commit d0dc684

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

features/doctrine/date_filter.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Feature: Date filter on collections
1010
Then the response status code should be 200
1111
And the response should be in JSON
1212
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
13-
And print last JSON response
1413
And the JSON should be valid according to this schema:
1514
"""
1615
{

features/jsonld/context.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Feature: JSON-LD contexts generation
4040
},
4141
"jsonData": "#Dummy/jsonData",
4242
"nameConverted": "#Dummy/nameConverted",
43+
"id": "#Dummy/id",
4344
"name": "http://schema.org/name",
4445
"alias": "https://schema.org/alternateName",
4546
"foo": "#Dummy/foo"

tests/Fixtures/FileConfigurations/legacyoperations.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22

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">
47
<resource class="ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy">
58
<itemOperation name="my_op_name">
69
<attribute name="method">POST</attribute>

tests/Fixtures/FileConfigurations/nocollectionoperations.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22

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">
47
<resource class="ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy">
58
<itemOperations>
69
<itemOperation name="my_op_name">

tests/Fixtures/FileConfigurations/noitemoperations.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22

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">
47
<resource class="ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy">
58
<itemOperations />
69
<collectionOperations>

0 commit comments

Comments
 (0)