@rathnasgala2/schemas 3.21.0 → 3.22.0
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/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +236 -24
- package/docs/catalogs/schema-inventory.json +5 -5
- package/examples/valid/build-input/rules.json +229 -28
- package/examples/valid/interactions-config/rules.json +22 -0
- package/examples/valid/publication/rules.json +192 -13
- package/fixtures/boundary/build-input/rules.json +265 -33
- package/fixtures/boundary/interactions-config/rules.json +22 -0
- package/fixtures/boundary/publication/rules.json +243 -33
- package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +19 -8
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +80 -16
- package/fixtures/invalid/build-input/SCHEMA_ARRAY_DUPLICATE/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
- package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +171 -39
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +122 -11
- package/fixtures/invalid/build-input/SCHEMA_UNION_INVALID/cases.json +9 -0
- package/fixtures/invalid/interactions-config/REQUEST_FIELD_UNKNOWN/cases.json +11 -0
- package/fixtures/invalid/interactions-config/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +11 -0
- package/fixtures/invalid/interactions-config/SCHEMA_TYPE_INVALID/cases.json +20 -0
- package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +22 -11
- package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +62 -9
- package/fixtures/invalid/publication/SCHEMA_ARRAY_DUPLICATE/cases.json +13 -0
- package/fixtures/invalid/publication/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
- package/fixtures/invalid/publication/SCHEMA_CONSTANT_INVALID/cases.json +22 -0
- package/fixtures/invalid/publication/SCHEMA_ENUM_INVALID/cases.json +22 -0
- package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +143 -20
- package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +95 -4
- package/fixtures/invalid/publication/SCHEMA_UNION_INVALID/cases.json +11 -0
- package/fixtures/manifest.json +1827 -179
- package/fixtures/s2/empty-modules-placements.json +943 -0
- package/fixtures/s2/manifest.json +13 -1
- package/fixtures/s2/normalized-inputs.json +1704 -0
- package/fixtures/unknown-field/build-input/rules.json +118 -21
- package/fixtures/unknown-field/interactions-config/rules.json +14 -0
- package/fixtures/unknown-field/publication/rules.json +92 -9
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/build-input.d.ts +46 -5
- package/generated/typescript/contracts/interactions-config.d.ts +3 -0
- package/generated/typescript/contracts/publication.d.ts +40 -5
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +9 -0
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/build-input.schema.json +91 -4
- package/schemas/interactions-config.schema.json +7 -0
- package/schemas/publication.schema.json +85 -7
|
@@ -34,6 +34,41 @@
|
|
|
34
34
|
"keyword": "additionalProperties",
|
|
35
35
|
"instance": { "title": "fixture-1", "body": "content/fixture-1.md" }
|
|
36
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"caseId": "publication-valid-06acbe3309736419",
|
|
39
|
+
"coveredRuleIds": [
|
|
40
|
+
"publication:#/$defs/contactForm/properties/fields:additionalProperties",
|
|
41
|
+
"publication:#/$defs/contactForm/properties/fields:required:phone",
|
|
42
|
+
"publication:#/$defs/contactForm/properties/fields:required:website",
|
|
43
|
+
"publication:#/$defs/contactForm/properties/fields:type"
|
|
44
|
+
],
|
|
45
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
46
|
+
"schemaPointer": "#/$defs/contactForm/properties/fields",
|
|
47
|
+
"keyword": "additionalProperties",
|
|
48
|
+
"instance": { "website": false, "phone": false }
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"caseId": "publication-valid-0a66bda8af19368b",
|
|
52
|
+
"coveredRuleIds": [
|
|
53
|
+
"publication:#/$defs/sharing:additionalProperties",
|
|
54
|
+
"publication:#/$defs/sharing:required:targets",
|
|
55
|
+
"publication:#/$defs/sharing:type"
|
|
56
|
+
],
|
|
57
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
58
|
+
"schemaPointer": "#/$defs/sharing",
|
|
59
|
+
"keyword": "additionalProperties",
|
|
60
|
+
"instance": { "targets": ["copy-link"] }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"caseId": "publication-valid-138b92065092891a",
|
|
64
|
+
"coveredRuleIds": [
|
|
65
|
+
"publication:#/$defs/contactForm/properties/fields/properties/phone:type"
|
|
66
|
+
],
|
|
67
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
68
|
+
"schemaPointer": "#/$defs/contactForm/properties/fields/properties/phone",
|
|
69
|
+
"keyword": "type",
|
|
70
|
+
"instance": false
|
|
71
|
+
},
|
|
37
72
|
{
|
|
38
73
|
"caseId": "publication-valid-176d4596f966eed4",
|
|
39
74
|
"coveredRuleIds": [
|
|
@@ -65,6 +100,16 @@
|
|
|
65
100
|
"keyword": "enum",
|
|
66
101
|
"instance": "allow"
|
|
67
102
|
},
|
|
103
|
+
{
|
|
104
|
+
"caseId": "publication-valid-1d0be59aae9935b5",
|
|
105
|
+
"coveredRuleIds": [
|
|
106
|
+
"publication:#/$defs/newsletter/oneOf/1/properties/mode:const"
|
|
107
|
+
],
|
|
108
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
109
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/1/properties/mode",
|
|
110
|
+
"keyword": "const",
|
|
111
|
+
"instance": "galascribe"
|
|
112
|
+
},
|
|
68
113
|
{
|
|
69
114
|
"caseId": "publication-valid-2b3f0ba08f805101",
|
|
70
115
|
"coveredRuleIds": [
|
|
@@ -104,6 +149,16 @@
|
|
|
104
149
|
"keyword": "format",
|
|
105
150
|
"instance": "com.example.fixture-1"
|
|
106
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"caseId": "publication-valid-3027e01d6e967e8d",
|
|
154
|
+
"coveredRuleIds": [
|
|
155
|
+
"publication:#/$defs/newsletter/oneOf/0/properties/text:x-gala-graphemeLength"
|
|
156
|
+
],
|
|
157
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
158
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/0/properties/text",
|
|
159
|
+
"keyword": "x-gala-graphemeLength",
|
|
160
|
+
"instance": "fixture-1"
|
|
161
|
+
},
|
|
107
162
|
{
|
|
108
163
|
"caseId": "publication-valid-3096f75655ac2a57",
|
|
109
164
|
"coveredRuleIds": [
|
|
@@ -116,6 +171,16 @@
|
|
|
116
171
|
"keyword": "format",
|
|
117
172
|
"instance": "US"
|
|
118
173
|
},
|
|
174
|
+
{
|
|
175
|
+
"caseId": "publication-valid-310076ea527cb077",
|
|
176
|
+
"coveredRuleIds": [
|
|
177
|
+
"publication:#/$defs/newsletter/oneOf/1/properties/text:x-gala-graphemeLength"
|
|
178
|
+
],
|
|
179
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
180
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/1/properties/text",
|
|
181
|
+
"keyword": "x-gala-graphemeLength",
|
|
182
|
+
"instance": "fixture-1"
|
|
183
|
+
},
|
|
119
184
|
{
|
|
120
185
|
"caseId": "publication-valid-334359b90efed75d",
|
|
121
186
|
"coveredRuleIds": [
|
|
@@ -160,6 +225,16 @@
|
|
|
160
225
|
"keyword": "const",
|
|
161
226
|
"instance": "2.0.0"
|
|
162
227
|
},
|
|
228
|
+
{
|
|
229
|
+
"caseId": "publication-valid-3aad7ec76cbb4776",
|
|
230
|
+
"coveredRuleIds": [
|
|
231
|
+
"publication:#/$defs/contactForm/properties/fields/properties/website:type"
|
|
232
|
+
],
|
|
233
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
234
|
+
"schemaPointer": "#/$defs/contactForm/properties/fields/properties/website",
|
|
235
|
+
"keyword": "type",
|
|
236
|
+
"instance": false
|
|
237
|
+
},
|
|
163
238
|
{
|
|
164
239
|
"caseId": "publication-valid-3cccbc505ef7c385",
|
|
165
240
|
"coveredRuleIds": [
|
|
@@ -265,6 +340,26 @@
|
|
|
265
340
|
"keyword": "maxItems",
|
|
266
341
|
"instance": ["content/fixture-1.md"]
|
|
267
342
|
},
|
|
343
|
+
{
|
|
344
|
+
"caseId": "publication-valid-78c060ad5436bdd3",
|
|
345
|
+
"coveredRuleIds": [
|
|
346
|
+
"publication:#/$defs/newsletter/oneOf/0/properties/mode:const"
|
|
347
|
+
],
|
|
348
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
349
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/0/properties/mode",
|
|
350
|
+
"keyword": "const",
|
|
351
|
+
"instance": "link"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"caseId": "publication-valid-78f68833e99f27f5",
|
|
355
|
+
"coveredRuleIds": [
|
|
356
|
+
"publication:#/$defs/newsletter/oneOf/1/properties/replyToOwner:type"
|
|
357
|
+
],
|
|
358
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
359
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/1/properties/replyToOwner",
|
|
360
|
+
"keyword": "type",
|
|
361
|
+
"instance": false
|
|
362
|
+
},
|
|
268
363
|
{
|
|
269
364
|
"caseId": "publication-valid-81e47acb3276faad",
|
|
270
365
|
"coveredRuleIds": [
|
|
@@ -300,6 +395,45 @@
|
|
|
300
395
|
"keyword": "required",
|
|
301
396
|
"instance": { "type": "email" }
|
|
302
397
|
},
|
|
398
|
+
{
|
|
399
|
+
"caseId": "publication-valid-8655743ad54d8257",
|
|
400
|
+
"coveredRuleIds": [
|
|
401
|
+
"publication:#/$defs/contactForm:additionalProperties",
|
|
402
|
+
"publication:#/$defs/contactForm:required:enabled",
|
|
403
|
+
"publication:#/$defs/contactForm:required:fields",
|
|
404
|
+
"publication:#/$defs/contactForm:type"
|
|
405
|
+
],
|
|
406
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
407
|
+
"schemaPointer": "#/$defs/contactForm",
|
|
408
|
+
"keyword": "additionalProperties",
|
|
409
|
+
"instance": {
|
|
410
|
+
"enabled": false,
|
|
411
|
+
"fields": { "website": false, "phone": false }
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"caseId": "publication-valid-8b66cf3a973ea330",
|
|
416
|
+
"coveredRuleIds": [
|
|
417
|
+
"publication:#/$defs/sharing/properties/targets/items:enum"
|
|
418
|
+
],
|
|
419
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
420
|
+
"schemaPointer": "#/$defs/sharing/properties/targets/items",
|
|
421
|
+
"keyword": "enum",
|
|
422
|
+
"instance": "copy-link"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"caseId": "publication-valid-9191306de37020ef",
|
|
426
|
+
"coveredRuleIds": [
|
|
427
|
+
"publication:#/$defs/sharing/properties/targets:maxItems",
|
|
428
|
+
"publication:#/$defs/sharing/properties/targets:minItems",
|
|
429
|
+
"publication:#/$defs/sharing/properties/targets:type",
|
|
430
|
+
"publication:#/$defs/sharing/properties/targets:uniqueItems"
|
|
431
|
+
],
|
|
432
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
433
|
+
"schemaPointer": "#/$defs/sharing/properties/targets",
|
|
434
|
+
"keyword": "maxItems",
|
|
435
|
+
"instance": ["copy-link"]
|
|
436
|
+
},
|
|
303
437
|
{
|
|
304
438
|
"caseId": "publication-valid-9400f35c173dc5a8",
|
|
305
439
|
"coveredRuleIds": ["publication:#/properties/title:x-gala-graphemeLength"],
|
|
@@ -348,6 +482,24 @@
|
|
|
348
482
|
"keyword": "additionalProperties",
|
|
349
483
|
"instance": { "type": "website", "uri": "https://fixture-1.example.com/" }
|
|
350
484
|
},
|
|
485
|
+
{
|
|
486
|
+
"caseId": "publication-valid-9f327a48acb777fa",
|
|
487
|
+
"coveredRuleIds": [
|
|
488
|
+
"publication:#/$defs/newsletter/oneOf/0:additionalProperties",
|
|
489
|
+
"publication:#/$defs/newsletter/oneOf/0:required:text",
|
|
490
|
+
"publication:#/$defs/newsletter/oneOf/0:required:title",
|
|
491
|
+
"publication:#/$defs/newsletter/oneOf/0:required:url",
|
|
492
|
+
"publication:#/$defs/newsletter/oneOf/0:type"
|
|
493
|
+
],
|
|
494
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
495
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/0",
|
|
496
|
+
"keyword": "additionalProperties",
|
|
497
|
+
"instance": {
|
|
498
|
+
"url": "https://fixture-1.example.com/",
|
|
499
|
+
"title": "fixture-1",
|
|
500
|
+
"text": "fixture-1"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
351
503
|
{
|
|
352
504
|
"caseId": "publication-valid-a23553c91ef27ed4",
|
|
353
505
|
"coveredRuleIds": [
|
|
@@ -372,6 +524,16 @@
|
|
|
372
524
|
"keyword": "additionalProperties",
|
|
373
525
|
"instance": { "ai": "allow" }
|
|
374
526
|
},
|
|
527
|
+
{
|
|
528
|
+
"caseId": "publication-valid-acb73483813a759c",
|
|
529
|
+
"coveredRuleIds": [
|
|
530
|
+
"publication:#/$defs/contactForm/properties/enabled:type"
|
|
531
|
+
],
|
|
532
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
533
|
+
"schemaPointer": "#/$defs/contactForm/properties/enabled",
|
|
534
|
+
"keyword": "type",
|
|
535
|
+
"instance": false
|
|
536
|
+
},
|
|
375
537
|
{
|
|
376
538
|
"caseId": "publication-valid-b0424c1acb3ba01a",
|
|
377
539
|
"coveredRuleIds": [
|
|
@@ -452,14 +614,26 @@
|
|
|
452
614
|
"instance": "fixture-1"
|
|
453
615
|
},
|
|
454
616
|
{
|
|
455
|
-
"caseId": "publication-valid-
|
|
617
|
+
"caseId": "publication-valid-cda512885ea6ac7a",
|
|
456
618
|
"coveredRuleIds": [
|
|
457
|
-
"publication:#/$defs/newsletter/
|
|
619
|
+
"publication:#/$defs/newsletter/oneOf/1:additionalProperties",
|
|
620
|
+
"publication:#/$defs/newsletter/oneOf/1:required:emailContent",
|
|
621
|
+
"publication:#/$defs/newsletter/oneOf/1:required:mode",
|
|
622
|
+
"publication:#/$defs/newsletter/oneOf/1:required:replyToOwner",
|
|
623
|
+
"publication:#/$defs/newsletter/oneOf/1:required:text",
|
|
624
|
+
"publication:#/$defs/newsletter/oneOf/1:required:title",
|
|
625
|
+
"publication:#/$defs/newsletter/oneOf/1:type"
|
|
458
626
|
],
|
|
459
627
|
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
460
|
-
"schemaPointer": "#/$defs/newsletter/
|
|
461
|
-
"keyword": "
|
|
462
|
-
"instance":
|
|
628
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/1",
|
|
629
|
+
"keyword": "additionalProperties",
|
|
630
|
+
"instance": {
|
|
631
|
+
"mode": "galascribe",
|
|
632
|
+
"title": "fixture-1",
|
|
633
|
+
"text": "fixture-1",
|
|
634
|
+
"emailContent": "card",
|
|
635
|
+
"replyToOwner": false
|
|
636
|
+
}
|
|
463
637
|
},
|
|
464
638
|
{
|
|
465
639
|
"caseId": "publication-valid-d3b21fbedf6bb2b4",
|
|
@@ -496,17 +670,12 @@
|
|
|
496
670
|
},
|
|
497
671
|
{
|
|
498
672
|
"caseId": "publication-valid-e1bd8415f65d2e3c",
|
|
499
|
-
"coveredRuleIds": [
|
|
500
|
-
"publication:#/$defs/newsletter:additionalProperties",
|
|
501
|
-
"publication:#/$defs/newsletter:required:text",
|
|
502
|
-
"publication:#/$defs/newsletter:required:title",
|
|
503
|
-
"publication:#/$defs/newsletter:required:url",
|
|
504
|
-
"publication:#/$defs/newsletter:type"
|
|
505
|
-
],
|
|
673
|
+
"coveredRuleIds": ["publication:#/$defs/newsletter:oneOf"],
|
|
506
674
|
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
507
675
|
"schemaPointer": "#/$defs/newsletter",
|
|
508
|
-
"keyword": "
|
|
676
|
+
"keyword": "oneOf",
|
|
509
677
|
"instance": {
|
|
678
|
+
"mode": "link",
|
|
510
679
|
"url": "https://fixture-1.example.com/",
|
|
511
680
|
"title": "fixture-1",
|
|
512
681
|
"text": "fixture-1"
|
|
@@ -533,6 +702,16 @@
|
|
|
533
702
|
"keyword": "enum",
|
|
534
703
|
"instance": "website"
|
|
535
704
|
},
|
|
705
|
+
{
|
|
706
|
+
"caseId": "publication-valid-eab7c2c60f246e88",
|
|
707
|
+
"coveredRuleIds": [
|
|
708
|
+
"publication:#/$defs/newsletter/oneOf/1/properties/emailContent:enum"
|
|
709
|
+
],
|
|
710
|
+
"schemaId": "urn:gala:schema:publication:2.0.0",
|
|
711
|
+
"schemaPointer": "#/$defs/newsletter/oneOf/1/properties/emailContent",
|
|
712
|
+
"keyword": "enum",
|
|
713
|
+
"instance": "card"
|
|
714
|
+
},
|
|
536
715
|
{
|
|
537
716
|
"caseId": "publication-valid-f06fd8bdc6febb47",
|
|
538
717
|
"coveredRuleIds": [
|