OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "simple_api", | 3 "namespace": "simple_api", |
4 "description": "This is a simple API.", | 4 "description": "This is a simple API.", |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "TestType", | 7 "id": "TestType", |
8 "type": "object", | 8 "type": "object", |
9 "properties": { | 9 "properties": { |
10 "string": { | 10 "string": { |
11 "type": "string", | 11 "type": "string", |
12 "description": "Some string." | 12 "description": "Some string." |
13 }, | 13 }, |
14 "boolean": { | 14 "boolean": { |
15 "type": "boolean", | 15 "type": "boolean", |
16 "description": "Some boolean." | 16 "description": "Some boolean." |
17 }, | 17 }, |
18 "number": { | 18 "number": { |
19 "type": "number", | 19 "type": "number", |
20 "description": "Some double." | 20 "description": "Some double." |
21 }, | 21 }, |
22 "integer": { | 22 "integer": { |
23 "type": "integer", | 23 "type": "integer", |
24 "description": "Some integer." | 24 "description": "Some integer." |
25 } | 25 } |
26 } | 26 } |
| 27 }, |
| 28 { |
| 29 "id": "TestEnum", |
| 30 "type": "string", |
| 31 "enum": ["one", "two", "three"] |
27 } | 32 } |
28 ], | 33 ], |
29 "functions": [ | 34 "functions": [ |
30 { | 35 { |
31 "name": "incrementInteger", | 36 "name": "incrementInteger", |
32 "type": "function", | 37 "type": "function", |
33 "description": "Increments the given integer.", | 38 "description": "Increments the given integer.", |
34 "parameters": [ | 39 "parameters": [ |
35 { | 40 { |
36 "name": "num", | 41 "name": "num", |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 "parameters": [ | 159 "parameters": [ |
155 { | 160 { |
156 "name": "someTestType", | 161 "name": "someTestType", |
157 "$ref": "TestType" | 162 "$ref": "TestType" |
158 } | 163 } |
159 ] | 164 ] |
160 } | 165 } |
161 ] | 166 ] |
162 } | 167 } |
163 ] | 168 ] |
OLD | NEW |