metadata_presenter 2.15.4 → 2.15.8
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.
- checksums.yaml +4 -4
- data/fixtures/branching_10.json +27 -40
- data/fixtures/branching_10.png +0 -0
- data/fixtures/branching_9.json +4 -4
- data/fixtures/version.json +22 -54
- data/lib/metadata_presenter/version.rb +1 -1
- data/schemas/component/email.json +3 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 653f75d32f4d53e3693e97db20ad1e985b0cc87ea4de2d50bdda17565c960a43
|
4
|
+
data.tar.gz: 0e358c7b47bbecbe3d19d321759aca4becffa0341150fab41aa23316dd61cb27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba4e1ab5e37c2aa03b9a079ab808597f481067d68140ee2dcc739e987e12cece01b2cbbcc80570442d23a564a2d533e4f5912e9d7a211d2242dfd501e00103b4
|
7
|
+
data.tar.gz: 22cc527a15fb85ab087cd5944222d20557f401af4b014c692bef7f06fe0333c647927672c9e1cad19e4262ae2e2ede3c7102ddda44003189ffd73d18fdb53bc3
|
data/fixtures/branching_10.json
CHANGED
@@ -120,7 +120,7 @@
|
|
120
120
|
},
|
121
121
|
"79c18654-7ecb-43f9-bd7f-0b09eb9c075e": {
|
122
122
|
"next": {
|
123
|
-
"default": "
|
123
|
+
"default": "1314e473-9096-4434-8526-03a7b4b7b132"
|
124
124
|
},
|
125
125
|
"_type": "flow.page"
|
126
126
|
},
|
@@ -219,28 +219,15 @@
|
|
219
219
|
"next": {
|
220
220
|
"default": "7742dfcc-db2e-480b-9071-294fbe1769a2",
|
221
221
|
"conditionals": [
|
222
|
-
{
|
223
|
-
"next": "1314e473-9096-4434-8526-03a7b4b7b132",
|
224
|
-
"_type": "if",
|
225
|
-
"_uuid": "0bdc8fde-be62-4945-8496-854e867a665d",
|
226
|
-
"expressions": [
|
227
|
-
{
|
228
|
-
"page": "4e54ed97-d0df-462e-9a88-fd0f23ea62f5",
|
229
|
-
"field": "3b56e4a0-a850-4e50-a394-95a895465e26",
|
230
|
-
"operator": "is",
|
231
|
-
"component": "3c2c14a4-75db-459a-b11e-34e1972a45f2"
|
232
|
-
}
|
233
|
-
]
|
234
|
-
},
|
235
222
|
{
|
236
223
|
"next": "da2576f9-7ddd-4316-b24b-103708139214",
|
237
224
|
"_type": "if",
|
238
|
-
"_uuid": "
|
225
|
+
"_uuid": "cd28e391-bdc6-47ce-8a07-24a4642432dc",
|
239
226
|
"expressions": [
|
240
227
|
{
|
241
228
|
"page": "4e54ed97-d0df-462e-9a88-fd0f23ea62f5",
|
242
|
-
"field": "
|
243
|
-
"operator": "
|
229
|
+
"field": "3b56e4a0-a850-4e50-a394-95a895465e26",
|
230
|
+
"operator": "is_answered",
|
244
231
|
"component": "3c2c14a4-75db-459a-b11e-34e1972a45f2"
|
245
232
|
}
|
246
233
|
]
|
@@ -358,8 +345,8 @@
|
|
358
345
|
"before_you_start": "###Before you start\r\nYou can also register by post.\r\n\r\nThe online service is also available in Welsh (Cymraeg).\r\n\r\nYou cannot register for this service if you’re in the UK illegally."
|
359
346
|
},
|
360
347
|
{
|
361
|
-
"_id": "page.
|
362
|
-
"url": "
|
348
|
+
"_id": "page.page-a",
|
349
|
+
"url": "page-a",
|
363
350
|
"body": "Body section",
|
364
351
|
"lede": "",
|
365
352
|
"_type": "page.singlequestion",
|
@@ -367,9 +354,9 @@
|
|
367
354
|
"heading": "",
|
368
355
|
"components": [
|
369
356
|
{
|
370
|
-
"_id": "
|
357
|
+
"_id": "page-a_text_1",
|
371
358
|
"hint": "",
|
372
|
-
"name": "
|
359
|
+
"name": "page-a_text_1",
|
373
360
|
"_type": "text",
|
374
361
|
"_uuid": "bcedde64-8996-4911-9426-fafaf91008e0",
|
375
362
|
"label": "Page A",
|
@@ -405,7 +392,7 @@
|
|
405
392
|
"name": "page-b_checkboxes_1",
|
406
393
|
"_type": "checkbox",
|
407
394
|
"_uuid": "4fb4f5ac-8337-48f6-87ee-2062f4ce1b4d",
|
408
|
-
"label": "Option 1",
|
395
|
+
"label": "Page B Option 1",
|
409
396
|
"value": "value-1",
|
410
397
|
"errors": {
|
411
398
|
},
|
@@ -421,7 +408,7 @@
|
|
421
408
|
"name": "page-b_checkboxes_1",
|
422
409
|
"_type": "checkbox",
|
423
410
|
"_uuid": "c074548d-22a7-4339-9bfe-383741b04c79",
|
424
|
-
"label": "Option 2",
|
411
|
+
"label": "Page B Option 2",
|
425
412
|
"value": "value-2",
|
426
413
|
"errors": {
|
427
414
|
},
|
@@ -437,7 +424,7 @@
|
|
437
424
|
"name": "page-b_checkboxes_1",
|
438
425
|
"_type": "checkbox",
|
439
426
|
"_uuid": "4132af6c-bd4d-4734-956b-05ec414c6dcc",
|
440
|
-
"label": "Option 3",
|
427
|
+
"label": "Page B Option 3",
|
441
428
|
"value": "value-3",
|
442
429
|
"errors": {
|
443
430
|
},
|
@@ -559,7 +546,7 @@
|
|
559
546
|
"name": "page-f_checkboxes_1",
|
560
547
|
"_type": "checkbox",
|
561
548
|
"_uuid": "56febb54-3b06-417a-98b7-51c19e10631b",
|
562
|
-
"label": "Option A",
|
549
|
+
"label": "Page F Option A",
|
563
550
|
"value": "value-1",
|
564
551
|
"errors": {
|
565
552
|
},
|
@@ -575,7 +562,7 @@
|
|
575
562
|
"name": "page-f_checkboxes_1",
|
576
563
|
"_type": "checkbox",
|
577
564
|
"_uuid": "e495f6b3-a7e6-405e-85a3-cba4119f0507",
|
578
|
-
"label": "Option B",
|
565
|
+
"label": "Page F Option B",
|
579
566
|
"value": "value-2",
|
580
567
|
"errors": {
|
581
568
|
},
|
@@ -591,7 +578,7 @@
|
|
591
578
|
"name": "page-f_checkboxes_1",
|
592
579
|
"_type": "checkbox",
|
593
580
|
"_uuid": "b5e9d16c-0699-4f16-9c75-906b22599e20",
|
594
|
-
"label": "Option C",
|
581
|
+
"label": "Page F Option C",
|
595
582
|
"value": "value-3",
|
596
583
|
"errors": {
|
597
584
|
},
|
@@ -607,7 +594,7 @@
|
|
607
594
|
"name": "page-f_checkboxes_1",
|
608
595
|
"_type": "checkbox",
|
609
596
|
"_uuid": "89856dbf-7412-45c7-b5e1-dcaf8e810cdd",
|
610
|
-
"label": "Option D",
|
597
|
+
"label": "Page F Option D",
|
611
598
|
"value": "value-4",
|
612
599
|
"errors": {
|
613
600
|
},
|
@@ -781,7 +768,7 @@
|
|
781
768
|
"name": "page-i_checkboxes_1",
|
782
769
|
"_type": "checkbox",
|
783
770
|
"_uuid": "98f181fb-530e-4002-8204-3b89b37fefad",
|
784
|
-
"label": "Option 1",
|
771
|
+
"label": "Page I Option 1",
|
785
772
|
"value": "value-1",
|
786
773
|
"errors": {
|
787
774
|
},
|
@@ -797,7 +784,7 @@
|
|
797
784
|
"name": "page-i_checkboxes_1",
|
798
785
|
"_type": "checkbox",
|
799
786
|
"_uuid": "99249f5e-c238-46b9-b447-03272c284a40",
|
800
|
-
"label": "Option 2",
|
787
|
+
"label": "Page I Option 2",
|
801
788
|
"value": "value-2",
|
802
789
|
"errors": {
|
803
790
|
},
|
@@ -813,7 +800,7 @@
|
|
813
800
|
"name": "page-i_checkboxes_1",
|
814
801
|
"_type": "checkbox",
|
815
802
|
"_uuid": "66823323-7df7-4a44-9d3b-0397af465dce",
|
816
|
-
"label": "Option 3",
|
803
|
+
"label": "Page I Option 3",
|
817
804
|
"value": "value-3",
|
818
805
|
"errors": {
|
819
806
|
},
|
@@ -857,7 +844,7 @@
|
|
857
844
|
"name": "page-j_checkboxes_1",
|
858
845
|
"_type": "checkbox",
|
859
846
|
"_uuid": "3b56e4a0-a850-4e50-a394-95a895465e26",
|
860
|
-
"label": "Option 1",
|
847
|
+
"label": "Page J Option 1",
|
861
848
|
"value": "value-1",
|
862
849
|
"errors": {
|
863
850
|
},
|
@@ -873,7 +860,7 @@
|
|
873
860
|
"name": "page-j_checkboxes_1",
|
874
861
|
"_type": "checkbox",
|
875
862
|
"_uuid": "951ca999-8616-4626-adb2-d604f27262a5",
|
876
|
-
"label": "Option 2",
|
863
|
+
"label": "Page J Option 2",
|
877
864
|
"value": "value-2",
|
878
865
|
"errors": {
|
879
866
|
},
|
@@ -889,7 +876,7 @@
|
|
889
876
|
"name": "page-j_checkboxes_1",
|
890
877
|
"_type": "checkbox",
|
891
878
|
"_uuid": "478152c5-73d1-4359-bc15-01e069fe2490",
|
892
|
-
"label": "Option 3",
|
879
|
+
"label": "Page J Option 3",
|
893
880
|
"value": "value-3",
|
894
881
|
"errors": {
|
895
882
|
},
|
@@ -902,10 +889,10 @@
|
|
902
889
|
],
|
903
890
|
"errors": {
|
904
891
|
},
|
905
|
-
"legend": "Page J",
|
892
|
+
"legend": "Page J (Optional)",
|
906
893
|
"collection": "components",
|
907
894
|
"validation": {
|
908
|
-
"required":
|
895
|
+
"required": false
|
909
896
|
}
|
910
897
|
}
|
911
898
|
],
|
@@ -1198,10 +1185,10 @@
|
|
1198
1185
|
}
|
1199
1186
|
],
|
1200
1187
|
"locale": "en",
|
1201
|
-
"created_at": "
|
1202
|
-
"created_by": "
|
1203
|
-
"service_id": "
|
1204
|
-
"version_id": "
|
1188
|
+
"created_at": "2022-02-02T12:32:13Z",
|
1189
|
+
"created_by": "b7eff904-9fec-4c48-b6ac-4572b490a040",
|
1190
|
+
"service_id": "e68dca75-20b8-468e-9436-e97791a914c5",
|
1191
|
+
"version_id": "195ea111-9d4c-4176-837d-0d751c37bbcd",
|
1205
1192
|
"service_name": "Branching Fixture 10 ",
|
1206
1193
|
"configuration": {
|
1207
1194
|
"meta": {
|
data/fixtures/branching_10.png
CHANGED
Binary file
|
data/fixtures/branching_9.json
CHANGED
@@ -281,8 +281,8 @@
|
|
281
281
|
"before_you_start": "###Before you start\r\nYou can also register by post.\r\n\r\nThe online service is also available in Welsh (Cymraeg).\r\n\r\nYou cannot register for this service if you’re in the UK illegally."
|
282
282
|
},
|
283
283
|
{
|
284
|
-
"_id": "page.
|
285
|
-
"url": "
|
284
|
+
"_id": "page.page-a",
|
285
|
+
"url": "page-a",
|
286
286
|
"body": "Body section",
|
287
287
|
"lede": "",
|
288
288
|
"_type": "page.singlequestion",
|
@@ -290,9 +290,9 @@
|
|
290
290
|
"heading": "",
|
291
291
|
"components": [
|
292
292
|
{
|
293
|
-
"_id": "
|
293
|
+
"_id": "page-a_text_1",
|
294
294
|
"hint": "",
|
295
|
-
"name": "
|
295
|
+
"name": "page-a_text_1",
|
296
296
|
"_type": "text",
|
297
297
|
"_uuid": "bcedde64-8996-4911-9426-fafaf91008e0",
|
298
298
|
"label": "Page A",
|
data/fixtures/version.json
CHANGED
@@ -11,10 +11,10 @@
|
|
11
11
|
"9e1ba77f-f1e5-42f4-b090-437aa9af7f73": {
|
12
12
|
"_type": "flow.page",
|
13
13
|
"next": {
|
14
|
-
"default": "
|
14
|
+
"default": "adcb61c3-52b1-479b-be51-1bb610876d54"
|
15
15
|
}
|
16
16
|
},
|
17
|
-
"
|
17
|
+
"adcb61c3-52b1-479b-be51-1bb610876d54": {
|
18
18
|
"_type": "flow.page",
|
19
19
|
"next": {
|
20
20
|
"default": "4b8c6bf3-878a-4446-9198-48351b3e2185"
|
@@ -63,12 +63,6 @@
|
|
63
63
|
}
|
64
64
|
},
|
65
65
|
"80420693-d6f2-4fce-a860-777ca774a6f5": {
|
66
|
-
"_type": "flow.page",
|
67
|
-
"next": {
|
68
|
-
"default": "adcb61c3-52b1-479b-be51-1bb610876d54"
|
69
|
-
}
|
70
|
-
},
|
71
|
-
"adcb61c3-52b1-479b-be51-1bb610876d54" : {
|
72
66
|
"_type": "flow.page",
|
73
67
|
"next": {
|
74
68
|
"default": "2ef7d11e-0307-49e9-9fe2-345dc528dd66"
|
@@ -133,35 +127,23 @@
|
|
133
127
|
"_id": "page.email-address",
|
134
128
|
"url": "email-address",
|
135
129
|
"body": "Body section",
|
136
|
-
"lede": "",
|
137
130
|
"_type": "page.singlequestion",
|
138
|
-
"_uuid": "
|
131
|
+
"_uuid": "adcb61c3-52b1-479b-be51-1bb610876d54",
|
139
132
|
"heading": "Question",
|
140
133
|
"components": [
|
141
134
|
{
|
142
|
-
"_id": "email-
|
135
|
+
"_id": "email-address_email_1",
|
143
136
|
"hint": "",
|
144
|
-
"name": "email-
|
145
|
-
"_type": "
|
146
|
-
"_uuid": "
|
137
|
+
"name": "email-address_email_1",
|
138
|
+
"_type": "email",
|
139
|
+
"_uuid": "482cb2d0-fda7-4e5c-9591-96dcb546e181",
|
147
140
|
"label": "Email address",
|
148
|
-
"errors": {
|
149
|
-
"format": {},
|
150
|
-
"required": {
|
151
|
-
"any": "Enter an email address"
|
152
|
-
},
|
153
|
-
"max_length": {
|
154
|
-
"any": "%{control} is too long."
|
155
|
-
},
|
156
|
-
"min_length": {
|
157
|
-
"any": "%{control} is too short."
|
158
|
-
}
|
159
|
-
},
|
141
|
+
"errors": {},
|
160
142
|
"collection": "components",
|
161
143
|
"validation": {
|
162
144
|
"required": true,
|
163
|
-
"
|
164
|
-
"
|
145
|
+
"email": true,
|
146
|
+
"max_length": 256
|
165
147
|
}
|
166
148
|
}
|
167
149
|
]
|
@@ -182,7 +164,18 @@
|
|
182
164
|
"_type": "text",
|
183
165
|
"_uuid": "5ad372fa-ed35-477f-b471-4d444f991210",
|
184
166
|
"label": "Parent name",
|
185
|
-
"errors": {
|
167
|
+
"errors": {
|
168
|
+
"format": {},
|
169
|
+
"required": {
|
170
|
+
"any": "Enter a parent name"
|
171
|
+
},
|
172
|
+
"max_length": {
|
173
|
+
"any": "%{control} is too long."
|
174
|
+
},
|
175
|
+
"min_length": {
|
176
|
+
"any": "%{control} is too short."
|
177
|
+
}
|
178
|
+
},
|
186
179
|
"collection": "components",
|
187
180
|
"validation": {
|
188
181
|
"required": false,
|
@@ -509,31 +502,6 @@
|
|
509
502
|
"add_component": "content",
|
510
503
|
"section_heading": "Chain of Command"
|
511
504
|
},
|
512
|
-
{
|
513
|
-
"_id": "page.email",
|
514
|
-
"url": "email",
|
515
|
-
"body": "Body section",
|
516
|
-
"_type": "page.singlequestion",
|
517
|
-
"_uuid": "adcb61c3-52b1-479b-be51-1bb610876d54",
|
518
|
-
"heading": "Email",
|
519
|
-
"components": [
|
520
|
-
{
|
521
|
-
"_id": "email-address_email_1",
|
522
|
-
"hint": "",
|
523
|
-
"name": "email-address_email_1",
|
524
|
-
"_type": "email",
|
525
|
-
"_uuid": "482cb2d0-fda7-4e5c-9591-96dcb546e181",
|
526
|
-
"label": "Email address",
|
527
|
-
"errors": {},
|
528
|
-
"collection": "components",
|
529
|
-
"validation": {
|
530
|
-
"required": true,
|
531
|
-
"email": true,
|
532
|
-
"max_length": 256
|
533
|
-
}
|
534
|
-
}
|
535
|
-
]
|
536
|
-
},
|
537
505
|
{
|
538
506
|
"_id": "page.dog-picture",
|
539
507
|
"url": "dog-picture",
|
@@ -11,13 +11,10 @@
|
|
11
11
|
},
|
12
12
|
"allOf": [
|
13
13
|
{
|
14
|
-
"$ref":
|
14
|
+
"$ref": "definition.field"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"$ref": "
|
17
|
+
"$ref": "definition.width_class.input"
|
18
18
|
}
|
19
|
-
]
|
20
|
-
"validation": {
|
21
|
-
"format": "email"
|
22
|
-
}
|
19
|
+
]
|
23
20
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metadata_presenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.15.
|
4
|
+
version: 2.15.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MoJ Forms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_design_system_formbuilder
|