-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsimplified_s2c_v09.json
More file actions
83 lines (83 loc) · 2.48 KB
/
simplified_s2c_v09.json
File metadata and controls
83 lines (83 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://a2ui.org/specification/v0_9/server_to_client.json",
"title": "A2UI Message Schema",
"type": "object",
"oneOf": [
{ "$ref": "#/$defs/CreateSurfaceMessage" },
{ "$ref": "#/$defs/UpdateComponentsMessage" },
{ "$ref": "#/$defs/UpdateDataModelMessage" },
{ "$ref": "#/$defs/DeleteSurfaceMessage" }
],
"$defs": {
"CreateSurfaceMessage": {
"type": "object",
"properties": {
"version": { "const": "v0.9" },
"createSurface": {
"type": "object",
"properties": {
"surfaceId": { "type": "string" },
"catalogId": { "type": "string" },
"theme": { "type": "object", "additionalProperties": true }
},
"required": ["surfaceId", "catalogId"],
"additionalProperties": false
}
},
"required": ["version", "createSurface"],
"additionalProperties": false
},
"UpdateComponentsMessage": {
"type": "object",
"properties": {
"version": { "const": "v0.9" },
"updateComponents": {
"type": "object",
"properties": {
"surfaceId": { "type": "string" },
"root": { "type": "string" },
"components": {
"type": "array",
"minItems": 1,
"items": { "$ref": "simplified_catalog_v09.json#/$defs/anyComponent" }
}
},
"required": ["surfaceId", "components"],
"additionalProperties": false
}
},
"required": ["version", "updateComponents"],
"additionalProperties": false
},
"UpdateDataModelMessage": {
"type": "object",
"properties": {
"version": { "const": "v0.9" },
"updateDataModel": {
"type": "object",
"properties": {
"surfaceId": { "type": "string" },
"value": { "additionalProperties": true }
},
"required": ["surfaceId"],
"additionalProperties": false
}
},
"required": ["version", "updateDataModel"],
"additionalProperties": false
},
"DeleteSurfaceMessage": {
"type": "object",
"properties": {
"version": { "const": "v0.9" },
"deleteSurface": {
"type": "object",
"properties": { "surfaceId": { "type": "string" } },
"required": ["surfaceId"]
}
},
"required": ["version", "deleteSurface"]
}
}
}