@rathnasgala2/schemas 2.15.0 → 2.17.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/README.md +56 -0
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +61 -0
- package/docs/catalogs/schema-inventory.json +5 -5
- package/examples/valid/build-input/rules.json +150 -0
- package/fixtures/boundary/build-input/rules.json +176 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +17 -0
- package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
- package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +44 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +33 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +31 -0
- package/fixtures/manifest.json +483 -4
- package/fixtures/unknown-field/build-input/rules.json +37 -0
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/artifact-manifest.d.ts +16 -2
- package/generated/typescript/contracts/build-input.d.ts +20 -0
- package/generated/typescript/contracts/build-provenance.d.ts +16 -2
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +299 -27
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/artifact-manifest.schema.json +16 -2
- package/schemas/build-input.schema.json +71 -0
- package/schemas/build-provenance.schema.json +16 -2
package/fixtures/manifest.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"contract": "artifact-manifest",
|
|
27
27
|
"schemaId": "urn:gala:schema:artifact-manifest:2.0.0",
|
|
28
|
-
"schemaSha256": "
|
|
28
|
+
"schemaSha256": "ee2107c4ae162bc975ceac5e3c543a77ca57aa50892a037fc55a9878a57785cf",
|
|
29
29
|
"ruleCount": 476,
|
|
30
30
|
"validExample": "examples/valid/artifact-manifest/canonical.json",
|
|
31
31
|
"boundaryFixture": "fixtures/boundary/artifact-manifest/root.json",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
{
|
|
44
44
|
"contract": "build-input",
|
|
45
45
|
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
46
|
-
"schemaSha256": "
|
|
47
|
-
"ruleCount":
|
|
46
|
+
"schemaSha256": "342260092fc16bdd6ba6b38490fbdaeca6817212fe51f8082b464b70d01469d0",
|
|
47
|
+
"ruleCount": 434,
|
|
48
48
|
"validExample": "examples/valid/build-input/canonical.json",
|
|
49
49
|
"boundaryFixture": "fixtures/boundary/build-input/root.json",
|
|
50
50
|
"unknownFieldFixture": "fixtures/unknown-field/build-input/root.json"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
{
|
|
53
53
|
"contract": "build-provenance",
|
|
54
54
|
"schemaId": "urn:gala:metadata:build-provenance:2.0.0",
|
|
55
|
-
"schemaSha256": "
|
|
55
|
+
"schemaSha256": "d97d133c083770f75f91356bcc084a0f1df33c0d8ff3e60bc2799204d2ae9958",
|
|
56
56
|
"ruleCount": 408,
|
|
57
57
|
"validExample": "examples/valid/build-provenance/canonical.json",
|
|
58
58
|
"boundaryFixture": "fixtures/boundary/build-provenance/root.json",
|
|
@@ -46599,6 +46599,420 @@
|
|
|
46599
46599
|
"caseId": "build-input-unknown-2ed430983d83c4f7"
|
|
46600
46600
|
}
|
|
46601
46601
|
},
|
|
46602
|
+
{
|
|
46603
|
+
"contract": "build-input",
|
|
46604
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile:additionalProperties",
|
|
46605
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
46606
|
+
"keyword": "additionalProperties",
|
|
46607
|
+
"valid": {
|
|
46608
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46609
|
+
"caseId": "build-input-valid-0564bdcec3af2163"
|
|
46610
|
+
},
|
|
46611
|
+
"boundary": {
|
|
46612
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46613
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7"
|
|
46614
|
+
},
|
|
46615
|
+
"invalid": {
|
|
46616
|
+
"file": "fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json",
|
|
46617
|
+
"caseId": "build-input-invalid-abb83cb489346ff6",
|
|
46618
|
+
"expectedCode": "REQUEST_FIELD_UNKNOWN"
|
|
46619
|
+
},
|
|
46620
|
+
"unknownField": {
|
|
46621
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46622
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46623
|
+
}
|
|
46624
|
+
},
|
|
46625
|
+
{
|
|
46626
|
+
"contract": "build-input",
|
|
46627
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile:required:byteLength",
|
|
46628
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
46629
|
+
"keyword": "required",
|
|
46630
|
+
"valid": {
|
|
46631
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46632
|
+
"caseId": "build-input-valid-0564bdcec3af2163"
|
|
46633
|
+
},
|
|
46634
|
+
"boundary": {
|
|
46635
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46636
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7"
|
|
46637
|
+
},
|
|
46638
|
+
"invalid": {
|
|
46639
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46640
|
+
"caseId": "build-input-invalid-702feb4bc269690c",
|
|
46641
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46642
|
+
},
|
|
46643
|
+
"unknownField": {
|
|
46644
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46645
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46646
|
+
}
|
|
46647
|
+
},
|
|
46648
|
+
{
|
|
46649
|
+
"contract": "build-input",
|
|
46650
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile:required:mediaType",
|
|
46651
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
46652
|
+
"keyword": "required",
|
|
46653
|
+
"valid": {
|
|
46654
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46655
|
+
"caseId": "build-input-valid-0564bdcec3af2163"
|
|
46656
|
+
},
|
|
46657
|
+
"boundary": {
|
|
46658
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46659
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7"
|
|
46660
|
+
},
|
|
46661
|
+
"invalid": {
|
|
46662
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46663
|
+
"caseId": "build-input-invalid-a12f8b5eb7882af4",
|
|
46664
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46665
|
+
},
|
|
46666
|
+
"unknownField": {
|
|
46667
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46668
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46669
|
+
}
|
|
46670
|
+
},
|
|
46671
|
+
{
|
|
46672
|
+
"contract": "build-input",
|
|
46673
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile:required:path",
|
|
46674
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
46675
|
+
"keyword": "required",
|
|
46676
|
+
"valid": {
|
|
46677
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46678
|
+
"caseId": "build-input-valid-0564bdcec3af2163"
|
|
46679
|
+
},
|
|
46680
|
+
"boundary": {
|
|
46681
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46682
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7"
|
|
46683
|
+
},
|
|
46684
|
+
"invalid": {
|
|
46685
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46686
|
+
"caseId": "build-input-invalid-3c49f103d029be74",
|
|
46687
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46688
|
+
},
|
|
46689
|
+
"unknownField": {
|
|
46690
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46691
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46692
|
+
}
|
|
46693
|
+
},
|
|
46694
|
+
{
|
|
46695
|
+
"contract": "build-input",
|
|
46696
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile:required:sourceDigest",
|
|
46697
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
46698
|
+
"keyword": "required",
|
|
46699
|
+
"valid": {
|
|
46700
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46701
|
+
"caseId": "build-input-valid-0564bdcec3af2163"
|
|
46702
|
+
},
|
|
46703
|
+
"boundary": {
|
|
46704
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46705
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7"
|
|
46706
|
+
},
|
|
46707
|
+
"invalid": {
|
|
46708
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46709
|
+
"caseId": "build-input-invalid-7e1ba5a79faf69cb",
|
|
46710
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46711
|
+
},
|
|
46712
|
+
"unknownField": {
|
|
46713
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46714
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46715
|
+
}
|
|
46716
|
+
},
|
|
46717
|
+
{
|
|
46718
|
+
"contract": "build-input",
|
|
46719
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile:type",
|
|
46720
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
46721
|
+
"keyword": "type",
|
|
46722
|
+
"valid": {
|
|
46723
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46724
|
+
"caseId": "build-input-valid-0564bdcec3af2163"
|
|
46725
|
+
},
|
|
46726
|
+
"boundary": {
|
|
46727
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46728
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7"
|
|
46729
|
+
},
|
|
46730
|
+
"invalid": {
|
|
46731
|
+
"file": "fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json",
|
|
46732
|
+
"caseId": "build-input-invalid-36e9db4ce7dd612f",
|
|
46733
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
46734
|
+
},
|
|
46735
|
+
"unknownField": {
|
|
46736
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46737
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46738
|
+
}
|
|
46739
|
+
},
|
|
46740
|
+
{
|
|
46741
|
+
"contract": "build-input",
|
|
46742
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/0/if:required:mediaType",
|
|
46743
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/if",
|
|
46744
|
+
"keyword": "required",
|
|
46745
|
+
"valid": {
|
|
46746
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46747
|
+
"caseId": "build-input-valid-f45cf1e222c15591"
|
|
46748
|
+
},
|
|
46749
|
+
"boundary": {
|
|
46750
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46751
|
+
"caseId": "build-input-boundary-f7ecd9f50b2b42ba"
|
|
46752
|
+
},
|
|
46753
|
+
"invalid": {
|
|
46754
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46755
|
+
"caseId": "build-input-invalid-271bf42eea501fca",
|
|
46756
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46757
|
+
},
|
|
46758
|
+
"unknownField": {
|
|
46759
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46760
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46761
|
+
}
|
|
46762
|
+
},
|
|
46763
|
+
{
|
|
46764
|
+
"contract": "build-input",
|
|
46765
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType:enum",
|
|
46766
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType",
|
|
46767
|
+
"keyword": "enum",
|
|
46768
|
+
"valid": {
|
|
46769
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46770
|
+
"caseId": "build-input-valid-a24d533edaddedce"
|
|
46771
|
+
},
|
|
46772
|
+
"boundary": {
|
|
46773
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46774
|
+
"caseId": "build-input-boundary-bcd33a245c8a3074"
|
|
46775
|
+
},
|
|
46776
|
+
"invalid": {
|
|
46777
|
+
"file": "fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json",
|
|
46778
|
+
"caseId": "build-input-invalid-edc78504b95bfd31",
|
|
46779
|
+
"expectedCode": "SCHEMA_ENUM_INVALID"
|
|
46780
|
+
},
|
|
46781
|
+
"unknownField": {
|
|
46782
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46783
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46784
|
+
}
|
|
46785
|
+
},
|
|
46786
|
+
{
|
|
46787
|
+
"contract": "build-input",
|
|
46788
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength:maximum",
|
|
46789
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength",
|
|
46790
|
+
"keyword": "maximum",
|
|
46791
|
+
"valid": {
|
|
46792
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46793
|
+
"caseId": "build-input-valid-401ec826e25c2929"
|
|
46794
|
+
},
|
|
46795
|
+
"boundary": {
|
|
46796
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46797
|
+
"caseId": "build-input-boundary-a1fe5afd17fe635e"
|
|
46798
|
+
},
|
|
46799
|
+
"invalid": {
|
|
46800
|
+
"file": "fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json",
|
|
46801
|
+
"caseId": "build-input-invalid-f5bc24b5544584e1",
|
|
46802
|
+
"expectedCode": "SCHEMA_NUMBER_TOO_LARGE"
|
|
46803
|
+
},
|
|
46804
|
+
"unknownField": {
|
|
46805
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46806
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46807
|
+
}
|
|
46808
|
+
},
|
|
46809
|
+
{
|
|
46810
|
+
"contract": "build-input",
|
|
46811
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/1/if:required:mediaType",
|
|
46812
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/if",
|
|
46813
|
+
"keyword": "required",
|
|
46814
|
+
"valid": {
|
|
46815
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46816
|
+
"caseId": "build-input-valid-ce84ac8883526107"
|
|
46817
|
+
},
|
|
46818
|
+
"boundary": {
|
|
46819
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46820
|
+
"caseId": "build-input-boundary-a415546a8ab87529"
|
|
46821
|
+
},
|
|
46822
|
+
"invalid": {
|
|
46823
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46824
|
+
"caseId": "build-input-invalid-0f6fa7aef85ce918",
|
|
46825
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46826
|
+
},
|
|
46827
|
+
"unknownField": {
|
|
46828
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46829
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46830
|
+
}
|
|
46831
|
+
},
|
|
46832
|
+
{
|
|
46833
|
+
"contract": "build-input",
|
|
46834
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType:enum",
|
|
46835
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType",
|
|
46836
|
+
"keyword": "enum",
|
|
46837
|
+
"valid": {
|
|
46838
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46839
|
+
"caseId": "build-input-valid-c0f1727a1a5b82d4"
|
|
46840
|
+
},
|
|
46841
|
+
"boundary": {
|
|
46842
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46843
|
+
"caseId": "build-input-boundary-2c8af4a5139e163c"
|
|
46844
|
+
},
|
|
46845
|
+
"invalid": {
|
|
46846
|
+
"file": "fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json",
|
|
46847
|
+
"caseId": "build-input-invalid-ca371ffaea111a1d",
|
|
46848
|
+
"expectedCode": "SCHEMA_ENUM_INVALID"
|
|
46849
|
+
},
|
|
46850
|
+
"unknownField": {
|
|
46851
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46852
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46853
|
+
}
|
|
46854
|
+
},
|
|
46855
|
+
{
|
|
46856
|
+
"contract": "build-input",
|
|
46857
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength:maximum",
|
|
46858
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength",
|
|
46859
|
+
"keyword": "maximum",
|
|
46860
|
+
"valid": {
|
|
46861
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46862
|
+
"caseId": "build-input-valid-3e704a85aded3da0"
|
|
46863
|
+
},
|
|
46864
|
+
"boundary": {
|
|
46865
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46866
|
+
"caseId": "build-input-boundary-935a655c02d893aa"
|
|
46867
|
+
},
|
|
46868
|
+
"invalid": {
|
|
46869
|
+
"file": "fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json",
|
|
46870
|
+
"caseId": "build-input-invalid-f5ebfd04c39c56ec",
|
|
46871
|
+
"expectedCode": "SCHEMA_NUMBER_TOO_LARGE"
|
|
46872
|
+
},
|
|
46873
|
+
"unknownField": {
|
|
46874
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46875
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46876
|
+
}
|
|
46877
|
+
},
|
|
46878
|
+
{
|
|
46879
|
+
"contract": "build-input",
|
|
46880
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/2/if:required:mediaType",
|
|
46881
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/if",
|
|
46882
|
+
"keyword": "required",
|
|
46883
|
+
"valid": {
|
|
46884
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46885
|
+
"caseId": "build-input-valid-1fa6418fdd9f1220"
|
|
46886
|
+
},
|
|
46887
|
+
"boundary": {
|
|
46888
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46889
|
+
"caseId": "build-input-boundary-0a5e270f1791cb0a"
|
|
46890
|
+
},
|
|
46891
|
+
"invalid": {
|
|
46892
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
46893
|
+
"caseId": "build-input-invalid-bf5d9423887c90ba",
|
|
46894
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
46895
|
+
},
|
|
46896
|
+
"unknownField": {
|
|
46897
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46898
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46899
|
+
}
|
|
46900
|
+
},
|
|
46901
|
+
{
|
|
46902
|
+
"contract": "build-input",
|
|
46903
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType:enum",
|
|
46904
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType",
|
|
46905
|
+
"keyword": "enum",
|
|
46906
|
+
"valid": {
|
|
46907
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46908
|
+
"caseId": "build-input-valid-51cfe2c3b839fec4"
|
|
46909
|
+
},
|
|
46910
|
+
"boundary": {
|
|
46911
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46912
|
+
"caseId": "build-input-boundary-495e81d1e5b4d5ca"
|
|
46913
|
+
},
|
|
46914
|
+
"invalid": {
|
|
46915
|
+
"file": "fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json",
|
|
46916
|
+
"caseId": "build-input-invalid-b12389ca44d6e5b3",
|
|
46917
|
+
"expectedCode": "SCHEMA_ENUM_INVALID"
|
|
46918
|
+
},
|
|
46919
|
+
"unknownField": {
|
|
46920
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46921
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46922
|
+
}
|
|
46923
|
+
},
|
|
46924
|
+
{
|
|
46925
|
+
"contract": "build-input",
|
|
46926
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength:maximum",
|
|
46927
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength",
|
|
46928
|
+
"keyword": "maximum",
|
|
46929
|
+
"valid": {
|
|
46930
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46931
|
+
"caseId": "build-input-valid-e91f7c18870f1e9b"
|
|
46932
|
+
},
|
|
46933
|
+
"boundary": {
|
|
46934
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46935
|
+
"caseId": "build-input-boundary-626f222d5c22b718"
|
|
46936
|
+
},
|
|
46937
|
+
"invalid": {
|
|
46938
|
+
"file": "fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json",
|
|
46939
|
+
"caseId": "build-input-invalid-2075cbd038f8406d",
|
|
46940
|
+
"expectedCode": "SCHEMA_NUMBER_TOO_LARGE"
|
|
46941
|
+
},
|
|
46942
|
+
"unknownField": {
|
|
46943
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46944
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46945
|
+
}
|
|
46946
|
+
},
|
|
46947
|
+
{
|
|
46948
|
+
"contract": "build-input",
|
|
46949
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/properties/byteLength:minimum",
|
|
46950
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/byteLength",
|
|
46951
|
+
"keyword": "minimum",
|
|
46952
|
+
"valid": {
|
|
46953
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46954
|
+
"caseId": "build-input-valid-74061890596a952b"
|
|
46955
|
+
},
|
|
46956
|
+
"boundary": {
|
|
46957
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46958
|
+
"caseId": "build-input-boundary-082b9a414a1cc0eb"
|
|
46959
|
+
},
|
|
46960
|
+
"invalid": {
|
|
46961
|
+
"file": "fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json",
|
|
46962
|
+
"caseId": "build-input-invalid-7d7008685fde4378",
|
|
46963
|
+
"expectedCode": "SCHEMA_NUMBER_TOO_SMALL"
|
|
46964
|
+
},
|
|
46965
|
+
"unknownField": {
|
|
46966
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46967
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46968
|
+
}
|
|
46969
|
+
},
|
|
46970
|
+
{
|
|
46971
|
+
"contract": "build-input",
|
|
46972
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/properties/byteLength:type",
|
|
46973
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/byteLength",
|
|
46974
|
+
"keyword": "type",
|
|
46975
|
+
"valid": {
|
|
46976
|
+
"file": "examples/valid/build-input/rules.json",
|
|
46977
|
+
"caseId": "build-input-valid-74061890596a952b"
|
|
46978
|
+
},
|
|
46979
|
+
"boundary": {
|
|
46980
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
46981
|
+
"caseId": "build-input-boundary-082b9a414a1cc0eb"
|
|
46982
|
+
},
|
|
46983
|
+
"invalid": {
|
|
46984
|
+
"file": "fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json",
|
|
46985
|
+
"caseId": "build-input-invalid-1570049c4e12bef4",
|
|
46986
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
46987
|
+
},
|
|
46988
|
+
"unknownField": {
|
|
46989
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
46990
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
46991
|
+
}
|
|
46992
|
+
},
|
|
46993
|
+
{
|
|
46994
|
+
"contract": "build-input",
|
|
46995
|
+
"ruleId": "build-input:#/$defs/contentBuildMediaFile/properties/mediaType:enum",
|
|
46996
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/mediaType",
|
|
46997
|
+
"keyword": "enum",
|
|
46998
|
+
"valid": {
|
|
46999
|
+
"file": "examples/valid/build-input/rules.json",
|
|
47000
|
+
"caseId": "build-input-valid-b0422e3810892dbd"
|
|
47001
|
+
},
|
|
47002
|
+
"boundary": {
|
|
47003
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
47004
|
+
"caseId": "build-input-boundary-1f7595cb126b31f5"
|
|
47005
|
+
},
|
|
47006
|
+
"invalid": {
|
|
47007
|
+
"file": "fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json",
|
|
47008
|
+
"caseId": "build-input-invalid-e6c75454737afbd6",
|
|
47009
|
+
"expectedCode": "SCHEMA_ENUM_INVALID"
|
|
47010
|
+
},
|
|
47011
|
+
"unknownField": {
|
|
47012
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
47013
|
+
"caseId": "build-input-unknown-0564bdcec3af2163"
|
|
47014
|
+
}
|
|
47015
|
+
},
|
|
46602
47016
|
{
|
|
46603
47017
|
"contract": "build-input",
|
|
46604
47018
|
"ruleId": "build-input:#/$defs/contentBuildRecord:additionalProperties",
|
|
@@ -46940,6 +47354,71 @@
|
|
|
46940
47354
|
"caseId": "build-input-unknown-02227031e6046759"
|
|
46941
47355
|
}
|
|
46942
47356
|
},
|
|
47357
|
+
{
|
|
47358
|
+
"contract": "build-input",
|
|
47359
|
+
"ruleId": "build-input:#/$defs/contentBuildRecord/properties/media:maxItems",
|
|
47360
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
47361
|
+
"keyword": "maxItems",
|
|
47362
|
+
"valid": {
|
|
47363
|
+
"file": "examples/valid/build-input/rules.json",
|
|
47364
|
+
"caseId": "build-input-valid-6754ffca58bd6b51"
|
|
47365
|
+
},
|
|
47366
|
+
"boundary": {
|
|
47367
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
47368
|
+
"caseId": "build-input-boundary-9ffd571368db88a9"
|
|
47369
|
+
},
|
|
47370
|
+
"invalid": {
|
|
47371
|
+
"file": "fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json",
|
|
47372
|
+
"caseId": "build-input-invalid-114e453676c7b7a3",
|
|
47373
|
+
"expectedCode": "SCHEMA_ARRAY_TOO_LONG"
|
|
47374
|
+
},
|
|
47375
|
+
"unknownField": {
|
|
47376
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
47377
|
+
"caseId": "build-input-unknown-02227031e6046759"
|
|
47378
|
+
}
|
|
47379
|
+
},
|
|
47380
|
+
{
|
|
47381
|
+
"contract": "build-input",
|
|
47382
|
+
"ruleId": "build-input:#/$defs/contentBuildRecord/properties/media:minItems",
|
|
47383
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
47384
|
+
"keyword": "minItems",
|
|
47385
|
+
"valid": {
|
|
47386
|
+
"file": "examples/valid/build-input/rules.json",
|
|
47387
|
+
"caseId": "build-input-valid-6754ffca58bd6b51"
|
|
47388
|
+
},
|
|
47389
|
+
"boundary": {
|
|
47390
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
47391
|
+
"caseId": "build-input-boundary-884e3b3c7e59c6eb"
|
|
47392
|
+
},
|
|
47393
|
+
"invalid": { "notApplicable": "ZERO_LOWER_BOUND_REJECTS_NO_INSTANCE" },
|
|
47394
|
+
"unknownField": {
|
|
47395
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
47396
|
+
"caseId": "build-input-unknown-02227031e6046759"
|
|
47397
|
+
}
|
|
47398
|
+
},
|
|
47399
|
+
{
|
|
47400
|
+
"contract": "build-input",
|
|
47401
|
+
"ruleId": "build-input:#/$defs/contentBuildRecord/properties/media:type",
|
|
47402
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
47403
|
+
"keyword": "type",
|
|
47404
|
+
"valid": {
|
|
47405
|
+
"file": "examples/valid/build-input/rules.json",
|
|
47406
|
+
"caseId": "build-input-valid-6754ffca58bd6b51"
|
|
47407
|
+
},
|
|
47408
|
+
"boundary": {
|
|
47409
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
47410
|
+
"caseId": "build-input-boundary-acc0d4fc1d862159"
|
|
47411
|
+
},
|
|
47412
|
+
"invalid": {
|
|
47413
|
+
"file": "fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json",
|
|
47414
|
+
"caseId": "build-input-invalid-def733368f2c6da3",
|
|
47415
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
47416
|
+
},
|
|
47417
|
+
"unknownField": {
|
|
47418
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
47419
|
+
"caseId": "build-input-unknown-02227031e6046759"
|
|
47420
|
+
}
|
|
47421
|
+
},
|
|
46943
47422
|
{
|
|
46944
47423
|
"contract": "build-input",
|
|
46945
47424
|
"ruleId": "build-input:#/$defs/contentBuildRecord/properties/resolvedAuthorIds:maxItems",
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
"build-input:#/$defs/contentBuildRecord/properties/body:minLength",
|
|
50
50
|
"build-input:#/$defs/contentBuildRecord/properties/body:type",
|
|
51
51
|
"build-input:#/$defs/contentBuildRecord/properties/bodyMediaType:const",
|
|
52
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:maxItems",
|
|
53
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:minItems",
|
|
54
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:type",
|
|
52
55
|
"build-input:#/$defs/contentBuildRecord/properties/resolvedAuthorIds:maxItems",
|
|
53
56
|
"build-input:#/$defs/contentBuildRecord/properties/resolvedAuthorIds:minItems",
|
|
54
57
|
"build-input:#/$defs/contentBuildRecord/properties/resolvedAuthorIds:type",
|
|
@@ -143,6 +146,40 @@
|
|
|
143
146
|
},
|
|
144
147
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
145
148
|
},
|
|
149
|
+
{
|
|
150
|
+
"caseId": "build-input-unknown-0564bdcec3af2163",
|
|
151
|
+
"coveredRuleIds": [
|
|
152
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType:enum",
|
|
153
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/if:required:mediaType",
|
|
154
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength:maximum",
|
|
155
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType:enum",
|
|
156
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/if:required:mediaType",
|
|
157
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength:maximum",
|
|
158
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType:enum",
|
|
159
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/if:required:mediaType",
|
|
160
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength:maximum",
|
|
161
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/byteLength:minimum",
|
|
162
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/byteLength:type",
|
|
163
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/mediaType:enum",
|
|
164
|
+
"build-input:#/$defs/contentBuildMediaFile:additionalProperties",
|
|
165
|
+
"build-input:#/$defs/contentBuildMediaFile:required:byteLength",
|
|
166
|
+
"build-input:#/$defs/contentBuildMediaFile:required:mediaType",
|
|
167
|
+
"build-input:#/$defs/contentBuildMediaFile:required:path",
|
|
168
|
+
"build-input:#/$defs/contentBuildMediaFile:required:sourceDigest",
|
|
169
|
+
"build-input:#/$defs/contentBuildMediaFile:type"
|
|
170
|
+
],
|
|
171
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
172
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
173
|
+
"keyword": "additionalProperties",
|
|
174
|
+
"instance": {
|
|
175
|
+
"path": "content/fixture-1.md",
|
|
176
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
177
|
+
"mediaType": "image/png",
|
|
178
|
+
"byteLength": 1,
|
|
179
|
+
"unexpected": true
|
|
180
|
+
},
|
|
181
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
182
|
+
},
|
|
146
183
|
{
|
|
147
184
|
"caseId": "build-input-unknown-089f571686dfaea8",
|
|
148
185
|
"coveredRuleIds": [
|