@dmptool/types 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/answers/__tests__/answers.spec.js +59 -7
- package/dist/answers/answer.d.ts +3 -3
- package/dist/answers/dateAnswers.d.ts +5 -5
- package/dist/answers/dateAnswers.js +3 -3
- package/dist/answers/index.d.ts +892 -513
- package/dist/answers/index.js +3 -2
- package/dist/answers/primitiveAnswers.d.ts +39 -0
- package/dist/answers/primitiveAnswers.js +8 -1
- package/dist/answers/tableAnswers.d.ts +1639 -32
- package/dist/answers/tableAnswers.js +10 -3
- package/dist/questions/__tests__/dateQuestions.spec.js +20 -20
- package/dist/questions/__tests__/primitiveQuestions.spec.js +92 -0
- package/dist/questions/__tests__/tableQuestion.spec.d.ts +1 -0
- package/dist/questions/__tests__/tableQuestion.spec.js +73 -0
- package/dist/questions/dateQuestions.d.ts +19 -19
- package/dist/questions/dateQuestions.js +8 -8
- package/dist/questions/graphQLQuestions.d.ts +20 -20
- package/dist/questions/graphQLQuestions.js +1 -1
- package/dist/questions/index.d.ts +1856 -1413
- package/dist/questions/index.js +3 -2
- package/dist/questions/optionBasedQuestions.js +1 -1
- package/dist/questions/primitiveQuestions.d.ts +192 -0
- package/dist/questions/primitiveQuestions.js +17 -1
- package/dist/questions/question.d.ts +4 -4
- package/dist/questions/question.js +2 -1
- package/dist/questions/tableQuestions.d.ts +2124 -145
- package/dist/questions/tableQuestions.js +7 -3
- package/dist/schemas/anyAnswer.schema.json +144 -119
- package/dist/schemas/anyQuestion.schema.json +148 -137
- package/dist/schemas/anyTableColumnAnswer.schema.json +1 -1
- package/dist/schemas/anyTableColumnQuestion.schema.json +2 -3
- package/dist/schemas/dateAnswer.schema.json +37 -0
- package/dist/schemas/datePickerAnswer.schema.json +4 -4
- package/dist/schemas/datePickerQuestion.schema.json +6 -5
- package/dist/schemas/dateQuestion.schema.json +51 -0
- package/dist/schemas/dateRangeQuestion.schema.json +1 -1
- package/dist/schemas/filteredSearchQuestion.schema.json +1 -2
- package/dist/schemas/numberRangeAnswer.schema.json +50 -0
- package/dist/schemas/numberRangeQuestion.schema.json +106 -0
- package/dist/schemas/tableAnswer.schema.json +349 -324
- package/dist/schemas/tableQuestion.schema.json +491 -480
- package/package.json +1 -1
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"properties": {
|
|
149
149
|
"type": {
|
|
150
150
|
"type": "string",
|
|
151
|
-
"const": "
|
|
151
|
+
"const": "date"
|
|
152
152
|
},
|
|
153
153
|
"meta": {
|
|
154
154
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
@@ -391,8 +391,7 @@
|
|
|
391
391
|
"required": [
|
|
392
392
|
"type",
|
|
393
393
|
"meta",
|
|
394
|
-
"graphQL"
|
|
395
|
-
"attributes"
|
|
394
|
+
"graphQL"
|
|
396
395
|
],
|
|
397
396
|
"additionalProperties": false
|
|
398
397
|
},
|
|
@@ -516,173 +515,185 @@
|
|
|
516
515
|
"columns": {
|
|
517
516
|
"type": "array",
|
|
518
517
|
"items": {
|
|
519
|
-
"
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
{
|
|
524
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/1"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/2"
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/3"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/4"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/5"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/6"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/7"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/8"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/9"
|
|
518
|
+
"type": "object",
|
|
519
|
+
"properties": {
|
|
520
|
+
"heading": {
|
|
521
|
+
"type": "string"
|
|
549
522
|
},
|
|
550
|
-
{
|
|
551
|
-
"
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
523
|
+
"content": {
|
|
524
|
+
"anyOf": [
|
|
525
|
+
{
|
|
526
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/1"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/2"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/3"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/4"
|
|
556
539
|
},
|
|
557
|
-
|
|
540
|
+
{
|
|
541
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/5"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/6"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/7"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/8"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/9"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
558
556
|
"type": "object",
|
|
559
557
|
"properties": {
|
|
560
|
-
"
|
|
561
|
-
"
|
|
558
|
+
"type": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"const": "textArea"
|
|
562
561
|
},
|
|
563
|
-
"
|
|
564
|
-
"
|
|
562
|
+
"meta": {
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"schemaVersion": {
|
|
566
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
567
|
+
},
|
|
568
|
+
"labelTranslationKey": {
|
|
569
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
|
|
570
|
+
},
|
|
571
|
+
"asRichText": {
|
|
572
|
+
"type": "boolean"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"required": [
|
|
576
|
+
"schemaVersion"
|
|
577
|
+
],
|
|
578
|
+
"additionalProperties": false
|
|
565
579
|
},
|
|
566
|
-
"
|
|
567
|
-
"type": "
|
|
580
|
+
"attributes": {
|
|
581
|
+
"type": "object",
|
|
582
|
+
"properties": {
|
|
583
|
+
"cols": {
|
|
584
|
+
"type": "number"
|
|
585
|
+
},
|
|
586
|
+
"maxLength": {
|
|
587
|
+
"type": "number"
|
|
588
|
+
},
|
|
589
|
+
"minLength": {
|
|
590
|
+
"type": "number"
|
|
591
|
+
},
|
|
592
|
+
"rows": {
|
|
593
|
+
"type": "number"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"additionalProperties": false
|
|
568
597
|
}
|
|
569
598
|
},
|
|
570
599
|
"required": [
|
|
571
|
-
"
|
|
600
|
+
"type",
|
|
601
|
+
"meta"
|
|
572
602
|
],
|
|
573
603
|
"additionalProperties": false
|
|
574
604
|
},
|
|
575
|
-
|
|
605
|
+
{
|
|
576
606
|
"type": "object",
|
|
577
607
|
"properties": {
|
|
578
|
-
"
|
|
579
|
-
"type": "
|
|
608
|
+
"type": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"const": "text"
|
|
580
611
|
},
|
|
581
|
-
"
|
|
582
|
-
"
|
|
612
|
+
"meta": {
|
|
613
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
583
614
|
},
|
|
584
|
-
"
|
|
585
|
-
"type": "
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
615
|
+
"attributes": {
|
|
616
|
+
"type": "object",
|
|
617
|
+
"properties": {
|
|
618
|
+
"maxLength": {
|
|
619
|
+
"type": "number"
|
|
620
|
+
},
|
|
621
|
+
"minLength": {
|
|
622
|
+
"type": "number"
|
|
623
|
+
},
|
|
624
|
+
"pattern": {
|
|
625
|
+
"type": "string"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"additionalProperties": false
|
|
589
629
|
}
|
|
590
630
|
},
|
|
631
|
+
"required": [
|
|
632
|
+
"type",
|
|
633
|
+
"meta"
|
|
634
|
+
],
|
|
591
635
|
"additionalProperties": false
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
"required": [
|
|
595
|
-
"type",
|
|
596
|
-
"meta"
|
|
597
|
-
],
|
|
598
|
-
"additionalProperties": false
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"type": "object",
|
|
602
|
-
"properties": {
|
|
603
|
-
"type": {
|
|
604
|
-
"type": "string",
|
|
605
|
-
"const": "text"
|
|
606
636
|
},
|
|
607
|
-
|
|
608
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
609
|
-
},
|
|
610
|
-
"attributes": {
|
|
637
|
+
{
|
|
611
638
|
"type": "object",
|
|
612
639
|
"properties": {
|
|
613
|
-
"
|
|
614
|
-
"type": "
|
|
640
|
+
"type": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"const": "typeaheadSearch"
|
|
615
643
|
},
|
|
616
|
-
"
|
|
617
|
-
"
|
|
644
|
+
"meta": {
|
|
645
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
618
646
|
},
|
|
619
|
-
"
|
|
620
|
-
"
|
|
647
|
+
"graphQL": {
|
|
648
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/6/properties/graphQL"
|
|
621
649
|
}
|
|
622
650
|
},
|
|
651
|
+
"required": [
|
|
652
|
+
"type",
|
|
653
|
+
"meta",
|
|
654
|
+
"graphQL"
|
|
655
|
+
],
|
|
623
656
|
"additionalProperties": false
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
"required": [
|
|
627
|
-
"type",
|
|
628
|
-
"meta"
|
|
629
|
-
],
|
|
630
|
-
"additionalProperties": false
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"type": "object",
|
|
634
|
-
"properties": {
|
|
635
|
-
"type": {
|
|
636
|
-
"type": "string",
|
|
637
|
-
"const": "typeaheadSearch"
|
|
638
|
-
},
|
|
639
|
-
"meta": {
|
|
640
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
641
|
-
},
|
|
642
|
-
"graphQL": {
|
|
643
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/6/properties/graphQL"
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
|
-
"required": [
|
|
647
|
-
"type",
|
|
648
|
-
"meta",
|
|
649
|
-
"graphQL"
|
|
650
|
-
],
|
|
651
|
-
"additionalProperties": false
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"type": "object",
|
|
655
|
-
"properties": {
|
|
656
|
-
"type": {
|
|
657
|
-
"type": "string",
|
|
658
|
-
"const": "url"
|
|
659
|
-
},
|
|
660
|
-
"meta": {
|
|
661
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
662
657
|
},
|
|
663
|
-
|
|
658
|
+
{
|
|
664
659
|
"type": "object",
|
|
665
660
|
"properties": {
|
|
666
|
-
"
|
|
667
|
-
"type": "
|
|
661
|
+
"type": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"const": "url"
|
|
668
664
|
},
|
|
669
|
-
"
|
|
670
|
-
"
|
|
665
|
+
"meta": {
|
|
666
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
671
667
|
},
|
|
672
|
-
"
|
|
673
|
-
"type": "
|
|
668
|
+
"attributes": {
|
|
669
|
+
"type": "object",
|
|
670
|
+
"properties": {
|
|
671
|
+
"maxLength": {
|
|
672
|
+
"type": "number"
|
|
673
|
+
},
|
|
674
|
+
"minLength": {
|
|
675
|
+
"type": "number"
|
|
676
|
+
},
|
|
677
|
+
"pattern": {
|
|
678
|
+
"type": "string"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"additionalProperties": false
|
|
674
682
|
}
|
|
675
683
|
},
|
|
684
|
+
"required": [
|
|
685
|
+
"type",
|
|
686
|
+
"meta"
|
|
687
|
+
],
|
|
676
688
|
"additionalProperties": false
|
|
677
689
|
}
|
|
678
|
-
|
|
679
|
-
"required": [
|
|
680
|
-
"type",
|
|
681
|
-
"meta"
|
|
682
|
-
],
|
|
683
|
-
"additionalProperties": false
|
|
690
|
+
]
|
|
684
691
|
}
|
|
685
|
-
|
|
692
|
+
},
|
|
693
|
+
"required": [
|
|
694
|
+
"content"
|
|
695
|
+
],
|
|
696
|
+
"additionalProperties": false
|
|
686
697
|
}
|
|
687
698
|
},
|
|
688
699
|
"attributes": {
|
|
@@ -715,16 +726,16 @@
|
|
|
715
726
|
"additionalProperties": false
|
|
716
727
|
},
|
|
717
728
|
{
|
|
718
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/anyOf/10"
|
|
729
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/10"
|
|
719
730
|
},
|
|
720
731
|
{
|
|
721
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/anyOf/11"
|
|
732
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/11"
|
|
722
733
|
},
|
|
723
734
|
{
|
|
724
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/anyOf/12"
|
|
735
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/12"
|
|
725
736
|
},
|
|
726
737
|
{
|
|
727
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/anyOf/13"
|
|
738
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/13"
|
|
728
739
|
}
|
|
729
740
|
]
|
|
730
741
|
}
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"properties": {
|
|
149
149
|
"type": {
|
|
150
150
|
"type": "string",
|
|
151
|
-
"const": "
|
|
151
|
+
"const": "date"
|
|
152
152
|
},
|
|
153
153
|
"meta": {
|
|
154
154
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
@@ -391,8 +391,7 @@
|
|
|
391
391
|
"required": [
|
|
392
392
|
"type",
|
|
393
393
|
"meta",
|
|
394
|
-
"graphQL"
|
|
395
|
-
"attributes"
|
|
394
|
+
"graphQL"
|
|
396
395
|
],
|
|
397
396
|
"additionalProperties": false
|
|
398
397
|
},
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DateAnswer",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DateAnswer": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "date"
|
|
10
|
+
},
|
|
11
|
+
"answer": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"type",
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
37
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$ref": "#/definitions/
|
|
2
|
+
"$ref": "#/definitions/DateAnswer",
|
|
3
3
|
"definitions": {
|
|
4
|
-
"
|
|
4
|
+
"DateAnswer": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"type": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"const": "
|
|
9
|
+
"const": "date"
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "string"
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$ref": "#/definitions/
|
|
2
|
+
"$ref": "#/definitions/DateQuestion",
|
|
3
3
|
"definitions": {
|
|
4
|
-
"
|
|
4
|
+
"DateQuestion": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"type": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"const": "
|
|
9
|
+
"const": "date"
|
|
10
10
|
},
|
|
11
11
|
"meta": {
|
|
12
12
|
"type": "object",
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"required": [
|
|
44
44
|
"type",
|
|
45
|
-
"meta"
|
|
45
|
+
"meta",
|
|
46
|
+
"attributes"
|
|
46
47
|
],
|
|
47
48
|
"additionalProperties": false
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
51
|
-
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DateQuestion",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DateQuestion": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "date"
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "1.0"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"attributes": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"max": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"min": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"step": {
|
|
37
|
+
"type": "number"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"type",
|
|
45
|
+
"meta"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
51
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/NumberRangeAnswer",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"NumberRangeAnswer": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "numberRange"
|
|
10
|
+
},
|
|
11
|
+
"answer": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"start": {
|
|
15
|
+
"type": "number"
|
|
16
|
+
},
|
|
17
|
+
"end": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"start",
|
|
23
|
+
"end"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"meta": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"schemaVersion": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"const": "1.0"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"schemaVersion"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"type",
|
|
43
|
+
"answer",
|
|
44
|
+
"meta"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
50
|
+
}
|