Skip to content

Commit 68e11cd

Browse files
committed
buttons schema
1 parent 8d7ad43 commit 68e11cd

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

runtimepy/data/schemas/Button.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
type: object
3+
additionalProperties: false
4+
required: [key, payload]
5+
properties:
6+
key:
7+
type: string
8+
payload:
9+
type: object
10+
text:
11+
type: string
12+
icon:
13+
type: string
14+
variant:
15+
type: string
16+
outline:
17+
type: boolean

runtimepy/data/schemas/ClientConnectionConfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ includes:
44
- has_name.yaml
55
- has_markdown.yaml
66
- has_views.yaml
7+
- has_buttons.yaml
78

89
properties:
910
defer:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
properties:
3+
buttons:
4+
type: array
5+
items:
6+
$ref: package://runtimepy/schemas/Button.yaml

0 commit comments

Comments
 (0)