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/openapi/docs.feature
+1-108
Original file line number
Diff line number
Diff line change
@@ -153,10 +153,9 @@ Feature: Documentation support
153
153
And the JSON node "paths./related_dummies/{id}/related_to_dummy_friends.get.parameters" should have 6 elements
154
154
155
155
# Subcollection - check schema
156
-
And the JSON node "paths./related_dummies/{id}/related_to_dummy_friends.get.responses.200.content.application/ld+json.schema.properties.hydra:member.items.$ref" should be equal to "#/components/schemas/RelatedToDummyFriend.jsonld-fakemanytomany"
156
+
And the JSON node "paths./related_dummies/{id}/related_to_dummy_friends.get.responses.200.content.application/ld+json.schema.allOf[1].properties.hydra:member.items.$ref" should be equal to "#/components/schemas/RelatedToDummyFriend.jsonld-fakemanytomany"
157
157
158
158
# Deprecations
159
-
And the JSON node "paths./dummies.get.deprecated" should be false
160
159
And the JSON node "paths./deprecated_resources.get.deprecated" should be true
161
160
And the JSON node "paths./deprecated_resources.post.deprecated" should be true
162
161
And the JSON node "paths./deprecated_resources/{id}.get.deprecated" should be true
@@ -166,111 +165,6 @@ Feature: Documentation support
166
165
167
166
# Formats
168
167
And the OpenAPI class "Dummy.jsonld" exists
169
-
And the "@id" property exists for the OpenAPI class "Dummy.jsonld"
170
-
And the JSON node "paths./dummies.get.responses.200.content.application/ld+json" should be equal to:
171
-
"""
172
-
{
173
-
"schema": {
174
-
"type": "object",
175
-
"properties": {
176
-
"hydra:member": {
177
-
"type": "array",
178
-
"items": {
179
-
"$ref": "#/components/schemas/Dummy.jsonld"
180
-
}
181
-
},
182
-
"hydra:totalItems": {
183
-
"type": "integer",
184
-
"minimum": 0
185
-
},
186
-
"hydra:view": {
187
-
"type": "object",
188
-
"properties": {
189
-
"@id": {
190
-
"type": "string",
191
-
"format": "iri-reference"
192
-
},
193
-
"@type": {
194
-
"type": "string"
195
-
},
196
-
"hydra:first": {
197
-
"type": "string",
198
-
"format": "iri-reference"
199
-
},
200
-
"hydra:last": {
201
-
"type": "string",
202
-
"format": "iri-reference"
203
-
},
204
-
"hydra:previous": {
205
-
"type": "string",
206
-
"format": "iri-reference"
207
-
},
208
-
"hydra:next": {
209
-
"type": "string",
210
-
"format": "iri-reference"
211
-
}
212
-
},
213
-
"example": {
214
-
"@id": "string",
215
-
"type": "string",
216
-
"hydra:first": "string",
217
-
"hydra:last": "string",
218
-
"hydra:previous": "string",
219
-
"hydra:next": "string"
220
-
}
221
-
},
222
-
"hydra:search": {
223
-
"type": "object",
224
-
"properties": {
225
-
"@type": {
226
-
"type": "string"
227
-
},
228
-
"hydra:template": {
229
-
"type": "string"
230
-
},
231
-
"hydra:variableRepresentation": {
232
-
"type": "string"
233
-
},
234
-
"hydra:mapping": {
235
-
"type": "array",
236
-
"items": {
237
-
"type": "object",
238
-
"properties": {
239
-
"@type": {
240
-
"type": "string"
241
-
},
242
-
"variable": {
243
-
"type": "string"
244
-
},
245
-
"property": {
246
-
"type": ["string", "null"]
247
-
},
248
-
"required": {
249
-
"type": "boolean"
250
-
}
251
-
}
252
-
}
253
-
}
254
-
}
255
-
}
256
-
},
257
-
"required": [
258
-
"hydra:member"
259
-
]
260
-
}
261
-
}
262
-
"""
263
-
And the JSON node "paths./dummies.get.responses.200.content.application/json" should be equal to:
264
-
"""
265
-
{
266
-
"schema": {
267
-
"type": "array",
268
-
"items": {
269
-
"$ref": "#/components/schemas/Dummy"
270
-
}
271
-
}
272
-
}
273
-
"""
274
168
And the JSON node "paths./override_open_api_responses.post.responses" should be equal to:
275
169
"""
276
170
{
@@ -322,7 +216,6 @@ Feature: Documentation support
322
216
And the "resourceRelated" property for the OpenAPI class "Resource" should be equal to:
0 commit comments