| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "ref_test", | 3 "namespace": "ref_test", |
| 4 "types": [ | 4 "types": [ |
| 5 { | 5 { |
| 6 "id": "type1", | 6 "id": "type1", |
| 7 "type": "string", | 7 "type": "string", |
| 8 "description": "$ref:type2" | 8 "description": "$ref:type2" |
| 9 }, | 9 }, |
| 10 { | 10 { |
| 11 "id": "type2", | 11 "id": "type2", |
| 12 "type": "string", | 12 "type": "string", |
| 13 "description": "A $ref:type3, or $ref:type2" | 13 "description": "A $ref:type3, or $ref:type2" |
| 14 }, | 14 }, |
| 15 { | 15 { |
| 16 "id": "type3", | 16 "id": "type3", |
| 17 "type": "string", | 17 "type": "string", |
| 18 "description": "$ref:other.type2 != $ref:ref_test.type2" | 18 "description": "$ref:other.type2 != $ref:ref_test.type2" |
| 19 } | 19 } |
| 20 ], |
| 21 "events": [ |
| 22 { |
| 23 "name": "event1", |
| 24 "type": "function", |
| 25 "description": "We like $ref:type1", |
| 26 "parameters": [ |
| 27 { |
| 28 "name": "param1", |
| 29 "type": "string" |
| 30 } |
| 31 ] |
| 32 } |
| 33 ], |
| 34 "properties": { |
| 35 "prop1": { |
| 36 "$ref": "type3" |
| 37 } |
| 38 }, |
| 39 "functions": [ |
| 40 { |
| 41 "name": "func1", |
| 42 "type": "function", |
| 43 "parameters": [ |
| 44 { |
| 45 "name": "param1", |
| 46 "type": "string" |
| 47 } |
| 48 ] |
| 49 } |
| 20 ] | 50 ] |
| 21 } | 51 } |
| 22 ] | 52 ] |
| OLD | NEW |