-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkitchensink.yaml
213 lines (213 loc) · 4.72 KB
/
kitchensink.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
---
title: Test catalog
global:
schema:
title: Test builtin custom fields
type: object
properties:
prop1:
type: string
prop2:
type: boolean
default: false
prop3:
type: string
prop4:
type: number
minimum: 0
maximum: 100
prop5:
type: string
default: easy
enum:
- easy
- expert
- guru
additionalProperties: false
uiSchema:
prop1:
ui:widget: textarea
prop2:
ui:widget: radio
prop3:
ui:widget: file
prop4:
ui:widget: range
prop5:
ui:widget: radio
categories:
- name: grouptests
description: Category 1
- name: expandabletests
description: Nodes with expandable parameters
nodes:
- schema:
title: Test to render group11 collapsed
type: object
properties:
prop1:
type: string
prop2:
type: string
prop3:
type: string
additionalProperties: false
uiSchema:
prop1:
ui:widget: textarea
ui:group: group11
prop3:
ui:group: group11
id: node1
label: Node 1
description: Description 1
category: grouptests
- schema:
title: Test to render group21 collapsed
type: object
properties:
prop1:
type: string
prop2:
type: string
prop3:
type: string
additionalProperties: false
uiSchema:
prop1:
ui:widget: textarea
ui:group: group21
prop3:
ui:group: group21
id: node2
label: Node 2
description: Description 2
category: grouptests
- schema:
title: Test to render group31 expanded
type: object
properties:
prop1:
type: string
prop2:
type: string
prop3:
type: string
additionalProperties: false
uiSchema:
prop1:
ui:widget: textarea
ui:group: group31
prop3:
ui:group: group31
group31:
ui:collapsed: false
id: node3
label: Node 3
description: Description 3
category: grouptests
- schema:
type: object
additionalProperties: false
properties:
prop1:
title: Array of objects
description: prop1_something_1 and prop1_something_else_1 and numprop1=4
type: array
minItems: 0
maxItems: 4
items:
type: object
properties:
something:
type: string
something_else:
type: string
additionalProperties: false
additionalProperties: false
fle:
title: Array of array of objects
description: nfle1=2 and fle_sta_1_1 and fle_end_1_1 . Outer array is molecule index
type: array
items:
type: array
description: Inner array is segment index
minItems: 0
maxItems: 2
items:
type: object
properties:
sta:
title: Starting residue number
type: number
end:
title: End residue number
type: number
additionalProperties: false
paramX:
title: Array of scalars
description: param_1 + param_2 + param_3
type: array
maxItems: 3
items:
type: boolean
default: false
mol:
title: topoaa.mol use case
description: each mol in own section with hisd_N keys
type: array
items:
type: object
properties:
cyclicpept:
type: boolean
hisd:
type: array
items:
type: number
uiSchema:
prop1:
ui:options:
orderable: false
fle:
items:
ui:options:
orderable: false
ui:options:
orderable: false
paramX:
items:
ui:widget: radio # default checkbox widget is only valid when checked
ui:options:
orderable: false
mol:
items:
cyclicpept:
ui:widget: radio # default checkbox widget is only valid when checked
ui:options:
orderable: false
tomlSchema: # How to read and write expandanble parameters in toml files
prop1:
indexed: true # X in prop1_something_X
items:
flatten: true # something in prop1_something_X
fle:
indexed: true # X in name_something_X_Y
items:
indexed: true # Y in name_something_X_Y
items:
flatten: true # something in name_something_X_Y
paramX:
indexed: true # Y in param_Y
mol:
indexed: true
items:
sectioned: true
properties:
hisd:
indexed: true
id: node4
label: Node 4
description: Description 3
category: expandabletests
examples: {}