...
1{
2 "swagger": "2.0",
3 "info": {
4 "title": "Test",
5 "description": "Tests issue with examples and nested objects with items properties",
6 "version": "1.0"
7 },
8 "host": "FooBar",
9 "basePath": "/latest",
10 "schemes": [
11 "https"
12 ],
13 "produces": [
14 "application/json"
15 ],
16 "paths": {
17 "/foo/": {
18 "get": {
19 "description": "Tests issue with nested items object properties and examples",
20 "summary": "Tests issue with nested items object properties and examples",
21 "responses": {
22 "200": {
23 "description": "Example should match spec",
24 "examples": {
25 "application/json": [
26 {
27 "item": [
28 {
29 "id": 1
30 }
31 ]
32 }
33 ]
34 },
35 "schema": {
36 "type": "array",
37 "items": {
38 "type": "object",
39 "properties": {
40 "item": {
41 "type": "array",
42 "maxItems": 255,
43 "items": {
44 "type": "object",
45 "properties": {
46 "id": {
47 "type": "integer",
48 "format": "int32"
49 }
50 }
51 }
52 }
53 }
54 }
55 }
56 }
57 }
58 }
59 }
60 }
61}
View as plain text