| OLD | NEW |
| (Empty) | |
| 1 [ |
| 2 { |
| 3 "namespace": "crossref", |
| 4 "dependencies": ["simple_api"], |
| 5 "types": [ |
| 6 { |
| 7 "id": "CrossrefType", |
| 8 "type": "object", |
| 9 "properties": { |
| 10 "testType": { |
| 11 "$ref": "simple_api.TestType", |
| 12 "optional": true |
| 13 } |
| 14 } |
| 15 } |
| 16 ], |
| 17 "functions": [ |
| 18 { |
| 19 "name": "testTypeOptionalParam", |
| 20 "type": "function", |
| 21 "description": "Takes TestType as a param.", |
| 22 "parameters": [ |
| 23 { |
| 24 "name": "testType", |
| 25 "$ref": "simple_api.TestType", |
| 26 "optional": true |
| 27 }, |
| 28 { |
| 29 "name": "callback", |
| 30 "type": "function", |
| 31 "parameters": [] |
| 32 } |
| 33 ] |
| 34 }, |
| 35 { |
| 36 "name": "getTestType", |
| 37 "type": "function", |
| 38 "description": "Return a TestType.", |
| 39 "parameters": [ |
| 40 { |
| 41 "name": "callback", |
| 42 "type": "function", |
| 43 "parameters": [ |
| 44 { |
| 45 "name": "result", |
| 46 "$ref": "simple_api.TestType", |
| 47 "description": "A TestType." |
| 48 } |
| 49 ] |
| 50 } |
| 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": "simple_api.TestType", "optional": true}, |
| 63 "boolean": {"type": "boolean"} |
| 64 } |
| 65 }, |
| 66 { |
| 67 "name": "callback", |
| 68 "type": "function", |
| 69 "parameters": [] |
| 70 } |
| 71 ] |
| 72 } |
| 73 ] |
| 74 } |
| 75 ] |
| OLD | NEW |