Skip to content

Commit b1a3e8e

Browse files
committed
implement multiple choice version of q1
1 parent 3c8b217 commit b1a3e8e

File tree

2 files changed

+112
-44
lines changed

2 files changed

+112
-44
lines changed

src/schemas/en/identification.json

Lines changed: 56 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -423,27 +423,34 @@
423423
},
424424
"properties": {
425425
"q1": {
426-
"type": "string",
426+
"type": "array",
427427
"title": "What type of output does the application derive?",
428-
"enum": [
429-
"An estimated score, ranking or probability",
430-
"An estimated label or classification (such as yes/no, high/low) or allocation to groups\n(for instance, for routing, communication purposes or risk classification)",
431-
"A recommendation",
432-
"A decision",
433-
"Content, such as written text, video, audio or images",
434-
"A dashboard or graph with straight-forward data visualisation\n(if on this dashboard one of the above options are displayed, select this option)",
435-
"Another type of output"
436-
]
428+
"items": {
429+
"type": "string",
430+
"enum": [
431+
"An estimated score, ranking or probability",
432+
"An estimated label or classification (such as yes/no, high/low) or allocation to groups\n(for instance, for routing, communication purposes or risk classification)",
433+
"A recommendation",
434+
"A decision",
435+
"Content, such as written text, video, audio or images",
436+
"A dashboard or graph with straight-forward data visualisation\n(if on this dashboard one of the above options are displayed, select this option)",
437+
"Another type of output"
438+
]
439+
},
440+
"minItems": 1,
441+
"uniqueItems": true
437442
}
438443
},
439-
"required": ["q1"],
440444
"dependencies": {
441445
"q1": {
442446
"oneOf": [
443447
{
444448
"properties": {
445449
"q1": {
446-
"enum": ["Another type of output"]
450+
"maxItems": 1,
451+
"contains": {
452+
"enum": ["Another type of output"]
453+
}
447454
},
448455
"q1_option6": {
449456
"type": "string",
@@ -459,9 +466,12 @@
459466
{
460467
"properties": {
461468
"q1": {
462-
"enum": [
463-
"A dashboard or graph with straight-forward data visualisation\n(if on this dashboard one of the above options are displayed, select this option)"
464-
]
469+
"maxItems": 1,
470+
"contains": {
471+
"enum": [
472+
"A dashboard or graph with straight-forward data visualisation\n(if on this dashboard one of the above options are displayed, select this option)"
473+
]
474+
}
465475
},
466476
"output": {
467477
"$ref": "#/definitions/outputNoAI"
@@ -471,12 +481,36 @@
471481
{
472482
"properties": {
473483
"q1": {
474-
"enum": [
475-
"An estimated score, ranking or probability",
476-
"An estimated label or classification (such as yes/no, high/low) or allocation to groups\n(for instance, for routing, communication purposes or risk classification)",
477-
"A recommendation",
478-
"A decision",
479-
"Content, such as written text, video, audio or images"
484+
"anyOf": [
485+
{
486+
"contains": {
487+
"enum": ["An estimated score, ranking or probability"]
488+
}
489+
},
490+
{
491+
"contains": {
492+
"enum": [
493+
"An estimated label or classification (such as yes/no, high/low) or allocation to groups\n(for instance, for routing, communication purposes or risk classification)"
494+
]
495+
}
496+
},
497+
{
498+
"contains": {
499+
"enum": ["A recommendation"]
500+
}
501+
},
502+
{
503+
"contains": {
504+
"enum": ["A decision"]
505+
}
506+
},
507+
{
508+
"contains": {
509+
"enum": [
510+
"Content, such as written text, video, audio or images"
511+
]
512+
}
513+
}
480514
]
481515
},
482516
"q2": {
@@ -636,7 +670,7 @@
636670
},
637671
"uiSchema": {
638672
"q1": {
639-
"ui:widget": "radio"
673+
"ui:widget": "checkboxes"
640674
},
641675
"q2": {
642676
"ui:widget": "radio",

src/schemas/nl/identificatie.json

Lines changed: 56 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -387,27 +387,34 @@
387387
},
388388
"properties": {
389389
"q1": {
390-
"type": "string",
390+
"type": "array",
391391
"title": "Welke van de volgende categorieën beschrijft de uitkomst van de toepassing het beste?",
392-
"enum": [
393-
"Een ingeschatte score, rangschikking of kans",
394-
"Een ingeschat label of classificatie (zoals ja/nee, hoog/laag) of een indeling in groepen\n(bijvoorbeeld ten behoeve van routering, communicatiecampagnes of risicoclassificatie)",
395-
"Een aanbeveling",
396-
"Een beslissing",
397-
"Content, zoals geschreven tekst, video, audio of afbeeldingen",
398-
"Een dashboard of grafiek met enkel rechtstreekse datavisualisatie\n(wanneer in dit dashboard een van de bovenstaande opties wordt weergeven, kies dan deze optie)",
399-
"Een ander soort output"
400-
]
392+
"items": {
393+
"type": "string",
394+
"enum": [
395+
"Een ingeschatte score, rangschikking of kans",
396+
"Een ingeschat label of classificatie (zoals ja/nee, hoog/laag) of een indeling in groepen\n(bijvoorbeeld ten behoeve van routering, communicatiecampagnes of risicoclassificatie)",
397+
"Een aanbeveling",
398+
"Een beslissing",
399+
"Content, zoals geschreven tekst, video, audio of afbeeldingen",
400+
"Een dashboard of grafiek met enkel rechtstreekse datavisualisatie\n(wanneer in dit dashboard een van de bovenstaande opties wordt weergeven, kies dan deze optie)",
401+
"Een ander soort output"
402+
]
403+
},
404+
"minItems": 1,
405+
"uniqueItems": true
401406
}
402407
},
403-
"required": ["q1"],
404408
"dependencies": {
405409
"q1": {
406410
"oneOf": [
407411
{
408412
"properties": {
409413
"q1": {
410-
"enum": ["Een ander soort output"]
414+
"maxItems": 1,
415+
"contains": {
416+
"enum": ["Een ander soort output"]
417+
}
411418
},
412419
"q1_option6": {
413420
"type": "string",
@@ -421,22 +428,49 @@
421428
{
422429
"properties": {
423430
"q1": {
424-
"enum": [
425-
"Een dashboard of grafiek met enkel rechtstreekse datavisualisatie\n(wanneer in dit dashboard een van de eerdere opties wordt weergeven, kies dan de eerdere optie)"
426-
]
431+
"maxItems": 1,
432+
"contains": {
433+
"enum": [
434+
"Een dashboard of grafiek met enkel rechtstreekse datavisualisatie\n(wanneer in dit dashboard een van de bovenstaande opties wordt weergeven, kies dan deze optie)"
435+
]
436+
}
427437
},
428438
"output": { "$ref": "#/definitions/outputNoAI" }
429439
}
430440
},
431441
{
432442
"properties": {
433443
"q1": {
434-
"enum": [
435-
"Een ingeschatte score, rangschikking of kans",
436-
"Een ingeschat label of classificatie (zoals ja/nee, hoog/laag) of een indeling in groepen\n(bijvoorbeeld ten behoeve van routering, communicatiecampagnes of risicoclassificatie)",
437-
"Een aanbeveling",
438-
"Een beslissing",
439-
"Content, zoals geschreven tekst, video, audio of afbeeldingen"
444+
"anyOf": [
445+
{
446+
"contains": {
447+
"enum": ["Een ingeschatte score, rangschikking of kans"]
448+
}
449+
},
450+
{
451+
"contains": {
452+
"enum": [
453+
"Een ingeschat label of classificatie (zoals ja/nee, hoog/laag) of een indeling in groepen\n(bijvoorbeeld ten behoeve van routering, communicatiecampagnes of risicoclassificatie)"
454+
]
455+
}
456+
},
457+
{
458+
"contains": {
459+
"enum": ["Een aanbeveling"]
460+
}
461+
},
462+
{
463+
"contains": {
464+
"enum": ["Een beslissing"]
465+
}
466+
},
467+
{
468+
"contains": {
469+
"enum": [
470+
"Content, zoals geschreven tekst, video, audio of afbeeldingen"
471+
]
472+
}
473+
}
440474
]
441475
},
442476
"q2": {
@@ -584,7 +618,7 @@
584618
},
585619
"uiSchema": {
586620
"q1": {
587-
"ui:widget": "radio"
621+
"ui:widget": "checkboxes"
588622
},
589623
"q2": {
590624
"ui:widget": "radio",

0 commit comments

Comments
 (0)