Skip to content

Commit 40a2166

Browse files
committed
Merge pull request OAI#609 from booknds/uberExamplesFix
Items Object should not be an array of object
2 parents 49f4c8b + 5bdeea5 commit 40a2166

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/v2.0/json/uber.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,9 @@
346346
},
347347
"history": {
348348
"type": "array",
349-
"items": [
350-
{
349+
"items": {
351350
"$ref": "#/definitions/Activity"
352-
}
353-
]
351+
}
354352
}
355353
}
356354
},

examples/v2.0/yaml/uber.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ definitions:
261261
history:
262262
type: array
263263
items:
264-
- $ref: '#/definitions/Activity'
264+
$ref: '#/definitions/Activity'
265265
Error:
266266
properties:
267267
code:

0 commit comments

Comments
 (0)