File tree Expand file tree Collapse file tree 2 files changed +37
-17
lines changed Expand file tree Collapse file tree 2 files changed +37
-17
lines changed Original file line number Diff line number Diff line change @@ -19,34 +19,33 @@ A toolbox consists of:
19
19
20
20
The top level schema of a toolbox is:
21
21
22
- ``` json
23
- {
24
- "ID" : " string (required)" ,
25
- "Name" : " string (required)" ,
26
- "Description" : " string (optional)"
22
+ ```
23
+ object {
24
+ Spaces: array[Space] (required)
25
+ Blocks: array[Block] (required)
27
26
}
28
27
```
29
28
30
29
And the children schemas are as follows below.
31
30
32
31
### Block Schema
33
32
34
- ``` json
35
- {
36
- "ID" : " string (required)" ,
37
- "Name" : " string (required)" ,
38
- "Description" : " string (optional)"
33
+ ```
34
+ object {
35
+ ID: string (required)
36
+ Name: string (required)
37
+ Description: string
38
+ Domain: array[string] (required)
39
+ Codomain: array[string] (required)
39
40
}
40
41
```
41
42
42
43
### Space Schema
43
44
44
- ``` json
45
- {
46
- "ID" : " string (required)" ,
47
- "Name" : " string (required)" ,
48
- "Description" : " string (optional)" ,
49
- "Domain" : " array[Space] (required, can be empty)" ,
50
- "Codomain" : " array[Space] (required, can be empty)"
45
+ ```
46
+ object {
47
+ ID: string (required)
48
+ Name: string (required)
49
+ Description: string
51
50
}
52
51
```
Original file line number Diff line number Diff line change 135
135
" print(format_json_schema_draft07(schema2))\"\"\" "
136
136
]
137
137
},
138
+ {
139
+ "cell_type" : " code" ,
140
+ "execution_count" : 5 ,
141
+ "metadata" : {},
142
+ "outputs" : [
143
+ {
144
+ "name" : " stdout" ,
145
+ "output_type" : " stream" ,
146
+ "text" : [
147
+ " array[object {\n " ,
148
+ " ID: string (required)\n " ,
149
+ " Name: string (required)\n " ,
150
+ " Description: string\n " ,
151
+ " }]\n "
152
+ ]
153
+ }
154
+ ],
155
+ "source" : [
156
+ " print(format_json_schema_draft07(schema[\" properties\" ][\" Toolbox\" ][\" properties\" ][\" Spaces\" ]))"
157
+ ]
158
+ },
138
159
{
139
160
"cell_type" : " code" ,
140
161
"execution_count" : 2 ,
You can’t perform that action at this time.
0 commit comments