]> git.saurik.com Git - apple/javascriptcore.git/blob - inspector/scripts/tests/events-with-optional-parameters.json
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / inspector / scripts / tests / events-with-optional-parameters.json
1 {
2 "domain": "Database",
3 "types": [
4 {
5 "id": "DatabaseId",
6 "type": "string",
7 "description": "Unique identifier of Database object."
8 },
9 {
10 "id": "PrimaryColors",
11 "type": "string",
12 "values": ["red", "green", "blue"]
13 },
14 {
15 "id": "ColorList",
16 "type": "array",
17 "items": { "$ref": "PrimaryColors" }
18 },
19 {
20 "id": "Error",
21 "type": "object",
22 "description": "Database error.",
23 "properties": [
24 { "name": "message", "type": "string", "description": "Error message." },
25 { "name": "code", "type": "integer", "description": "Error code." }
26 ]
27 }
28 ],
29 "events": [
30 {
31 "name": "didExecuteOptionalParameters",
32 "parameters": [
33 { "name": "columnNames", "type": "array", "optional": true, "items": { "type": "string" } },
34 { "name": "notes", "type": "string", "optional": true },
35 { "name": "timestamp", "type": "number", "optional": true },
36 { "name": "values", "type": "object", "optional": true },
37 { "name": "payload", "type": "any", "optional": true },
38 { "name": "sqlError", "$ref": "Error", "optional": true },
39 { "name": "screenColor", "$ref": "PrimaryColors", "optional": true },
40 { "name": "alternateColors", "$ref": "ColorList", "optional": true },
41 { "name": "printColor", "type": "string", "values": ["cyan", "magenta", "yellow", "black"], "optional": true }
42 ]
43 },
44 {
45 "name": "didExecuteNoOptionalParameters",
46 "parameters": [
47 { "name": "columnNames", "type": "array", "items": { "type": "string" } },
48 { "name": "notes", "type": "string" },
49 { "name": "timestamp", "type": "number" },
50 { "name": "values", "type": "object" },
51 { "name": "payload", "type": "any" },
52 { "name": "sqlError", "$ref": "Error" },
53 { "name": "screenColor", "$ref": "PrimaryColors" },
54 { "name": "alternateColors", "$ref": "ColorList" },
55 { "name": "printColor", "type": "string", "values": ["cyan", "magenta", "yellow", "black"] }
56 ]
57 }
58 ]
59 }