|
241 | 241 | } |
242 | 242 | } |
243 | 243 | }, |
| 244 | + "visibleIfBinding1c": { |
| 245 | + "description": "# 6. Test 'VisibleIf' with 'oneOf' and '$ANY$' condition", |
| 246 | + "type": "object", |
| 247 | + "properties": { |
| 248 | + "anyString1c": { |
| 249 | + "type": "string", |
| 250 | + "description": "Visible component shows up with any string here.", |
| 251 | + "widget": "string" |
| 252 | + }, |
| 253 | + "anyNum1c": { |
| 254 | + "type": "number", |
| 255 | + "description": "Visible component shows up if any number here", |
| 256 | + "widget": "number" |
| 257 | + }, |
| 258 | + "anyBoolean1c": { |
| 259 | + "type": "boolean", |
| 260 | + "description": "Visible component shows up if any checked state", |
| 261 | + "widget": "checkbox" |
| 262 | + }, |
| 263 | + "anyArary1c": { |
| 264 | + "type": "array", |
| 265 | + "widget": "select", |
| 266 | + "items": { |
| 267 | + "type": "string", |
| 268 | + "oneOf": [ |
| 269 | + { |
| 270 | + "description": "Option1", |
| 271 | + "enum": [ |
| 272 | + "Option1" |
| 273 | + ] |
| 274 | + }, |
| 275 | + { |
| 276 | + "description": "Option2", |
| 277 | + "enum": [ |
| 278 | + "Option2" |
| 279 | + ] |
| 280 | + }, |
| 281 | + { |
| 282 | + "description": "Option3", |
| 283 | + "enum": [ |
| 284 | + "Option3" |
| 285 | + ] |
| 286 | + }, |
| 287 | + { |
| 288 | + "description": "Option4", |
| 289 | + "enum": [ |
| 290 | + "Option4" |
| 291 | + ] |
| 292 | + } |
| 293 | + ] |
| 294 | + }, |
| 295 | + "description": "Visible component shows up if any selection here" |
| 296 | + }, |
| 297 | + "visibleComponent1c": { |
| 298 | + "type": "string", |
| 299 | + "description": "Visible if any values exist in a test input", |
| 300 | + "visibleIf": { |
| 301 | + "oneOf": [ |
| 302 | + {"anyString1c": ["$ANY$"]}, |
| 303 | + {"anyNum2c": ["$ANY$"]}, |
| 304 | + {"anyBoolean2c": ["$ANY$"]}, |
| 305 | + {"anyArary2c": ["$ANY$"]} |
| 306 | + ] |
| 307 | + } |
| 308 | + } |
| 309 | + } |
| 310 | + }, |
244 | 311 | "visibleIfBinding2a": { |
245 | | - "description": "# 6. Test Boolean 'VisibleIf' with 'allOf' condition (check 'Warn' and 'Fail')", |
| 312 | + "description": "# 7. Test Boolean 'VisibleIf' with 'allOf' condition (check 'Warn' and 'Fail')", |
246 | 313 | "type": "object", |
247 | 314 | "properties": { |
248 | 315 | "status2a": { |
|
281 | 348 | } |
282 | 349 | }, |
283 | 350 | "visibleIfBinding2b": { |
284 | | - "description": "# 7. Test String 'VisibleIf' with 'allOf' condition (select 'Warn' and 'Fail')", |
| 351 | + "description": "# 8. Test String 'VisibleIf' with 'allOf' condition (select 'Warn' and 'Fail')", |
285 | 352 | "type": "object", |
286 | 353 | "properties": { |
287 | 354 | "status2a": { |
|
0 commit comments