Skip to content

Commit 74692f2

Browse files
committed
Keep only JSON schemas validation
1 parent b42dfd1 commit 74692f2

File tree

6 files changed

+0
-390
lines changed

6 files changed

+0
-390
lines changed

features/doctrine/boolean_filter.feature

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -456,46 +456,6 @@ Feature: Boolean filter on collections
456456
Then the response status code should be 200
457457
And the response should be in JSON
458458
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
459-
And the JSON should be equal to:
460-
"""
461-
{
462-
"@context": "/contexts/ConvertedBoolean",
463-
"@id": "/converted_booleans",
464-
"@type": "hydra:Collection",
465-
"hydra:member": [
466-
{
467-
"@id": "/converted_booleans/2",
468-
"@type": "ConvertedBoolean",
469-
"name_converted": false,
470-
"id": 2
471-
},
472-
{
473-
"@id": "/converted_booleans/4",
474-
"@type": "ConvertedBoolean",
475-
"name_converted": false,
476-
"id": 4
477-
}
478-
],
479-
"hydra:totalItems": 2,
480-
"hydra:view": {
481-
"@id": "/converted_booleans?name_converted=false",
482-
"@type": "hydra:PartialCollectionView"
483-
},
484-
"hydra:search": {
485-
"@type": "hydra:IriTemplate",
486-
"hydra:template": "/converted_booleans{?name_converted}",
487-
"hydra:variableRepresentation": "BasicRepresentation",
488-
"hydra:mapping": [
489-
{
490-
"@type": "IriTemplateMapping",
491-
"variable": "name_converted",
492-
"property": "name_converted",
493-
"required": false
494-
}
495-
]
496-
}
497-
}
498-
"""
499459
And the JSON should be valid according to this schema:
500460
"""
501461
{

features/doctrine/date_filter.feature

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,64 +1116,6 @@ Feature: Date filter on collections
11161116
Then the response status code should be 200
11171117
And the response should be in JSON
11181118
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
1119-
And the JSON should be equal to:
1120-
"""
1121-
{
1122-
"@context": "/contexts/ConvertedDate",
1123-
"@id": "/converted_dates",
1124-
"@type": "hydra:Collection",
1125-
"hydra:member": [
1126-
{
1127-
"@id": "/converted_dates/29",
1128-
"@type": "ConvertedDate",
1129-
"name_converted": "2015-04-29T00:00:00+00:00",
1130-
"id": 29
1131-
},
1132-
{
1133-
"@id": "/converted_dates/30",
1134-
"@type": "ConvertedDate",
1135-
"name_converted": "2015-04-30T00:00:00+00:00",
1136-
"id": 30
1137-
}
1138-
],
1139-
"hydra:totalItems": 2,
1140-
"hydra:view": {
1141-
"@id": "/converted_dates?name_converted%5Bstrictly_after%5D=2015-04-28",
1142-
"@type": "hydra:PartialCollectionView"
1143-
},
1144-
"hydra:search": {
1145-
"@type": "hydra:IriTemplate",
1146-
"hydra:template": "/converted_dates{?name_converted[before],name_converted[strictly_before],name_converted[after],name_converted[strictly_after]}",
1147-
"hydra:variableRepresentation": "BasicRepresentation",
1148-
"hydra:mapping": [
1149-
{
1150-
"@type": "IriTemplateMapping",
1151-
"variable": "name_converted[before]",
1152-
"property": "name_converted",
1153-
"required": false
1154-
},
1155-
{
1156-
"@type": "IriTemplateMapping",
1157-
"variable": "name_converted[strictly_before]",
1158-
"property": "name_converted",
1159-
"required": false
1160-
},
1161-
{
1162-
"@type": "IriTemplateMapping",
1163-
"variable": "name_converted[after]",
1164-
"property": "name_converted",
1165-
"required": false
1166-
},
1167-
{
1168-
"@type": "IriTemplateMapping",
1169-
"variable": "name_converted[strictly_after]",
1170-
"property": "name_converted",
1171-
"required": false
1172-
}
1173-
]
1174-
}
1175-
}
1176-
"""
11771119
And the JSON should be valid according to this schema:
11781120
"""
11791121
{

features/doctrine/exists_filter.feature

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -70,46 +70,6 @@ Feature: Exists filter on collections
7070
Then the response status code should be 200
7171
And the response should be in JSON
7272
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
73-
And the JSON should be equal to:
74-
"""
75-
{
76-
"@context": "/contexts/ConvertedString",
77-
"@id": "/converted_strings",
78-
"@type": "hydra:Collection",
79-
"hydra:member": [
80-
{
81-
"@id": "/converted_strings/1",
82-
"@type": "ConvertedString",
83-
"name_converted": "name#1",
84-
"id": 1
85-
},
86-
{
87-
"@id": "/converted_strings/3",
88-
"@type": "ConvertedString",
89-
"name_converted": "name#3",
90-
"id": 3
91-
}
92-
],
93-
"hydra:totalItems": 2,
94-
"hydra:view": {
95-
"@id": "/converted_strings?exists%5Bname_converted%5D=true",
96-
"@type": "hydra:PartialCollectionView"
97-
},
98-
"hydra:search": {
99-
"@type": "hydra:IriTemplate",
100-
"hydra:template": "/converted_strings{?exists[name_converted]}",
101-
"hydra:variableRepresentation": "BasicRepresentation",
102-
"hydra:mapping": [
103-
{
104-
"@type": "IriTemplateMapping",
105-
"variable": "exists[name_converted]",
106-
"property": "name_converted",
107-
"required": false
108-
}
109-
]
110-
}
111-
}
112-
"""
11373
And the JSON should be valid according to this schema:
11474
"""
11575
{

features/doctrine/numeric_filter.feature

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -144,88 +144,6 @@ Feature: Numeric filter on collections
144144
Then the response status code should be 200
145145
And the response should be in JSON
146146
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
147-
And the JSON should be equal to:
148-
"""
149-
{
150-
"@context": "/contexts/ConvertedInteger",
151-
"@id": "/converted_integers",
152-
"@type": "hydra:Collection",
153-
"hydra:member": [
154-
{
155-
"@id": "/converted_integers/2",
156-
"@type": "ConvertedInteger",
157-
"name_converted": 2,
158-
"id": 2
159-
},
160-
{
161-
"@id": "/converted_integers/3",
162-
"@type": "ConvertedInteger",
163-
"name_converted": 3,
164-
"id": 3
165-
}
166-
],
167-
"hydra:totalItems": 2,
168-
"hydra:view": {
169-
"@id": "/converted_integers?name_converted%5B%5D=2&name_converted%5B%5D=3",
170-
"@type": "hydra:PartialCollectionView"
171-
},
172-
"hydra:search": {
173-
"@type": "hydra:IriTemplate",
174-
"hydra:template": "/converted_integers{?name_converted,name_converted[],name_converted[between],name_converted[gt],name_converted[gte],name_converted[lt],name_converted[lte],order[name_converted]}",
175-
"hydra:variableRepresentation": "BasicRepresentation",
176-
"hydra:mapping": [
177-
{
178-
"@type": "IriTemplateMapping",
179-
"variable": "name_converted",
180-
"property": "name_converted",
181-
"required": false
182-
},
183-
{
184-
"@type": "IriTemplateMapping",
185-
"variable": "name_converted[]",
186-
"property": "name_converted",
187-
"required": false
188-
},
189-
{
190-
"@type": "IriTemplateMapping",
191-
"variable": "name_converted[between]",
192-
"property": "name_converted",
193-
"required": false
194-
},
195-
{
196-
"@type": "IriTemplateMapping",
197-
"variable": "name_converted[gt]",
198-
"property": "name_converted",
199-
"required": false
200-
},
201-
{
202-
"@type": "IriTemplateMapping",
203-
"variable": "name_converted[gte]",
204-
"property": "name_converted",
205-
"required": false
206-
},
207-
{
208-
"@type": "IriTemplateMapping",
209-
"variable": "name_converted[lt]",
210-
"property": "name_converted",
211-
"required": false
212-
},
213-
{
214-
"@type": "IriTemplateMapping",
215-
"variable": "name_converted[lte]",
216-
"property": "name_converted",
217-
"required": false
218-
},
219-
{
220-
"@type": "IriTemplateMapping",
221-
"variable": "order[name_converted]",
222-
"property": "name_converted",
223-
"required": false
224-
}
225-
]
226-
}
227-
}
228-
"""
229147
And the JSON should be valid according to this schema:
230148
"""
231149
{

features/doctrine/order_filter.feature

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -890,94 +890,6 @@ Feature: Order filter on collections
890890
Then the response status code should be 200
891891
And the response should be in JSON
892892
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
893-
And the JSON should be equal to:
894-
"""
895-
{
896-
"@context": "/contexts/ConvertedInteger",
897-
"@id": "/converted_integers",
898-
"@type": "hydra:Collection",
899-
"hydra:member": [
900-
{
901-
"@id": "/converted_integers/3",
902-
"@type": "ConvertedInteger",
903-
"name_converted": 3,
904-
"id": 3
905-
},
906-
{
907-
"@id": "/converted_integers/2",
908-
"@type": "ConvertedInteger",
909-
"name_converted": 2,
910-
"id": 2
911-
},
912-
{
913-
"@id": "/converted_integers/1",
914-
"@type": "ConvertedInteger",
915-
"name_converted": 1,
916-
"id": 1
917-
}
918-
],
919-
"hydra:totalItems": 3,
920-
"hydra:view": {
921-
"@id": "/converted_integers?order%5Bname_converted%5D=desc",
922-
"@type": "hydra:PartialCollectionView"
923-
},
924-
"hydra:search": {
925-
"@type": "hydra:IriTemplate",
926-
"hydra:template": "/converted_integers{?name_converted,name_converted[],name_converted[between],name_converted[gt],name_converted[gte],name_converted[lt],name_converted[lte],order[name_converted]}",
927-
"hydra:variableRepresentation": "BasicRepresentation",
928-
"hydra:mapping": [
929-
{
930-
"@type": "IriTemplateMapping",
931-
"variable": "name_converted",
932-
"property": "name_converted",
933-
"required": false
934-
},
935-
{
936-
"@type": "IriTemplateMapping",
937-
"variable": "name_converted[]",
938-
"property": "name_converted",
939-
"required": false
940-
},
941-
{
942-
"@type": "IriTemplateMapping",
943-
"variable": "name_converted[between]",
944-
"property": "name_converted",
945-
"required": false
946-
},
947-
{
948-
"@type": "IriTemplateMapping",
949-
"variable": "name_converted[gt]",
950-
"property": "name_converted",
951-
"required": false
952-
},
953-
{
954-
"@type": "IriTemplateMapping",
955-
"variable": "name_converted[gte]",
956-
"property": "name_converted",
957-
"required": false
958-
},
959-
{
960-
"@type": "IriTemplateMapping",
961-
"variable": "name_converted[lt]",
962-
"property": "name_converted",
963-
"required": false
964-
},
965-
{
966-
"@type": "IriTemplateMapping",
967-
"variable": "name_converted[lte]",
968-
"property": "name_converted",
969-
"required": false
970-
},
971-
{
972-
"@type": "IriTemplateMapping",
973-
"variable": "order[name_converted]",
974-
"property": "name_converted",
975-
"required": false
976-
}
977-
]
978-
}
979-
}
980-
"""
981893
And the JSON should be valid according to this schema:
982894
"""
983895
{

0 commit comments

Comments
 (0)