...
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 "schema": {
25 "type": "array",
26 "items": {
27 "type": "object",
28 "properties": {
29 "items": {
30 "type": "array",
31 "maxItems": 255,
32 "items": {
33 "type": "object",
34 "properties": {
35 "id": {
36 "type": "integer",
37 "format": "int32"
38 }
39 }
40 }
41 }
42 }
43 }
44 }
45 }
46 }
47 }
48 }
49 }
50}
View as plain text