@@ -19,7 +19,7 @@ Feature: Search filter on collections
1919 Given there is a DummyCar entity with related colors
2020 When I send a "GET" request to "/dummy_cars?colors.prop=red"
2121 Then the response status code should be 200
22- And the JSON should be deep equal to:
22+ And the JSON should be equal to:
2323 """
2424 {
2525 "@context": "/contexts/DummyCar",
@@ -81,25 +81,25 @@ Feature: Search filter on collections
8181 "hydra:mapping": [
8282 {
8383 "@type": "IriTemplateMapping",
84- "variable": "availableAt[after ]",
84+ "variable": "availableAt[before ]",
8585 "property": "availableAt",
8686 "required": false
8787 },
8888 {
8989 "@type": "IriTemplateMapping",
90- "variable": "availableAt[before ]",
90+ "variable": "availableAt[strictly_before ]",
9191 "property": "availableAt",
9292 "required": false
9393 },
9494 {
9595 "@type": "IriTemplateMapping",
96- "variable": "availableAt[strictly_after ]",
96+ "variable": "availableAt[after ]",
9797 "property": "availableAt",
9898 "required": false
9999 },
100100 {
101101 "@type": "IriTemplateMapping",
102- "variable": "availableAt[strictly_before ]",
102+ "variable": "availableAt[strictly_after ]",
103103 "property": "availableAt",
104104 "required": false
105105 },
@@ -111,44 +111,38 @@ Feature: Search filter on collections
111111 },
112112 {
113113 "@type": "IriTemplateMapping",
114- "variable": "colors",
115- "property": "colors",
116- "required": false
117- },
118- {
119- "@type": "IriTemplateMapping",
120- "variable": "colors.prop",
121- "property": "colors.prop",
114+ "variable": "foobar[]",
115+ "property": null,
122116 "required": false
123117 },
124118 {
125119 "@type": "IriTemplateMapping",
126- "variable": "colors []",
127- "property": "colors" ,
120+ "variable": "foobargroups []",
121+ "property": null ,
128122 "required": false
129123 },
130124 {
131125 "@type": "IriTemplateMapping",
132- "variable": "foobar []",
126+ "variable": "foobargroups_override []",
133127 "property": null,
134128 "required": false
135129 },
136130 {
137131 "@type": "IriTemplateMapping",
138- "variable": "foobargroups[] ",
139- "property": null ,
132+ "variable": "colors.prop ",
133+ "property": "colors.prop" ,
140134 "required": false
141135 },
142136 {
143137 "@type": "IriTemplateMapping",
144- "variable": "foobargroups_override[] ",
145- "property": null ,
138+ "variable": "colors ",
139+ "property": "colors" ,
146140 "required": false
147141 },
148142 {
149143 "@type": "IriTemplateMapping",
150- "variable": "name ",
151- "property": "name ",
144+ "variable": "colors[] ",
145+ "property": "colors ",
152146 "required": false
153147 },
154148 {
@@ -186,6 +180,12 @@ Feature: Search filter on collections
186180 "variable": "uuid[]",
187181 "property": "uuid",
188182 "required": false
183+ },
184+ {
185+ "@type": "IriTemplateMapping",
186+ "variable": "name",
187+ "property": "name",
188+ "required": false
189189 }
190190 ]
191191 }
@@ -278,7 +278,6 @@ Feature: Search filter on collections
278278 Then the response status code should be 200
279279 And the response should be in JSON
280280 And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
281- And print last JSON response
282281 And the JSON should be valid according to this schema:
283282 """
284283 {
0 commit comments