OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "crossref", | 3 "namespace": "crossref", |
4 "dependencies": ["simple_api"], | 4 "dependencies": ["simple_api"], |
5 "types": [], | 5 "types": [ |
| 6 { |
| 7 "id": "CrossrefType", |
| 8 "type": "object", |
| 9 "properties": { |
| 10 "testType": { |
| 11 "$ref": "TestType", |
| 12 "optional": true |
| 13 } |
| 14 } |
| 15 } |
| 16 ], |
6 "functions": [ | 17 "functions": [ |
7 { | 18 { |
8 "name": "TestTypeOptionalParam", | 19 "name": "testTypeOptionalParam", |
9 "type": "function", | 20 "type": "function", |
10 "description": "Takes TestType as a param.", | 21 "description": "Takes TestType as a param.", |
11 "parameters": [ | 22 "parameters": [ |
12 { | 23 { |
13 "name": "testType", | 24 "name": "testType", |
14 "$ref": "TestType", | 25 "$ref": "TestType", |
15 "optional": true | 26 "optional": true |
16 }, | 27 }, |
17 { | 28 { |
18 "name": "callback", | 29 "name": "callback", |
(...skipping 12 matching lines...) Expand all Loading... |
31 "type": "function", | 42 "type": "function", |
32 "parameters": [ | 43 "parameters": [ |
33 { | 44 { |
34 "name": "result", | 45 "name": "result", |
35 "$ref": "TestType", | 46 "$ref": "TestType", |
36 "description": "A TestType." | 47 "description": "A TestType." |
37 } | 48 } |
38 ] | 49 ] |
39 } | 50 } |
40 ] | 51 ] |
| 52 }, |
| 53 { |
| 54 "name": "testTypeInObject", |
| 55 "type": "function", |
| 56 "description": "Takes an optional object with a TestType and a bool.", |
| 57 "parameters": [ |
| 58 { |
| 59 "name": "paramObject", |
| 60 "type": "object", |
| 61 "properties": { |
| 62 "testType": {"$ref": "TestType", "optional": true}, |
| 63 "boolean": {"type": "boolean"} |
| 64 } |
| 65 }, |
| 66 { |
| 67 "name": "callback", |
| 68 "type": "function", |
| 69 "parameters": [] |
| 70 } |
| 71 ] |
41 } | 72 } |
42 ] | 73 ] |
43 } | 74 } |
44 ] | 75 ] |
OLD | NEW |