@cloudhal/core-contracts 0.8.0 → 0.9.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.
@@ -43611,3 +43611,4311 @@ return errors === 0;
43611
43611
  }
43612
43612
  validate242.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
43613
43613
 
43614
+ export const validateReleaseManifest = validate245;
43615
+ const schema573 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cloudhal.dev/schemas/v1/release-manifest.schema.json","title":"ReleaseManifest","description":"cloudhal.release-manifest@1 (RFC-0046): the manifest of one Cloudhal release bundle, published as the release asset manifest.json next to the gzip tarball cloudhal-release-<version>.tar.gz. A project release is signed through release-statement.json, which pins this file's SHA-256 and size (signing.signature = release-statement.sig); the legacy form manifest.sig, a raw 64-byte Ed25519 signature over these exact bytes, is for development keys only. It describes every built Worker module and static asset by size and SHA-256, the binding templates, feature levels, migration range and rollback facts a remote deployer needs to install, update or refuse a version without running a build. Portable on purpose: it references common only for SchemaVersion and Timestamp; every other definition is local.","type":"object","additionalProperties":false,"required":["schemaVersion","format","version","channel","securityRelease","commit","createdAt","contracts","levels","migrations","durableObjects","runtime","toolchain","theme","skills","workers","bindingTemplates","requiredScopes","optionalScopes","requiredCapabilities","optionalCapabilities","starter","features","planVersion","signing"],"properties":{"schemaVersion":{"$ref":"#/$defs/SchemaVersion"},"format":{"type":"string","enum":["cloudhal.release-manifest@1"]},"version":{"$ref":"#/$defs/CloudhalVersion"},"channel":{"type":"string","enum":["stable","next"]},"securityRelease":{"type":"boolean"},"commit":{"type":"string","pattern":"^[0-9a-f]{40}$"},"createdAt":{"$ref":"#/$defs/Timestamp"},"contracts":{"type":"object","additionalProperties":false,"required":["schemaVersion"],"properties":{"schemaVersion":{"type":"integer","enum":[1]}}},"levels":{"type":"object","additionalProperties":false,"required":["schedules","gates"],"properties":{"schedules":{"type":"integer","minimum":0},"gates":{"type":"integer","minimum":0}}},"migrations":{"type":"object","additionalProperties":false,"required":["first","last","count","names","compatibleWithPrevious"],"properties":{"first":{"$ref":"#/$defs/MigrationName"},"last":{"$ref":"#/$defs/MigrationName"},"count":{"type":"integer","minimum":1},"names":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/$defs/MigrationName"}},"compatibleWithPrevious":{"type":"boolean"}}},"durableObjects":{"type":"object","additionalProperties":false,"required":["bindings","lifecycleChange"],"properties":{"bindings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name","className","migration"],"properties":{"name":{"$ref":"#/$defs/BindingName"},"className":{"type":"string","pattern":"^[A-Z][A-Za-z0-9]*$"},"migration":{"type":"string","pattern":"^v[1-9][0-9]*$"}}}},"lifecycleChange":{"type":"boolean"}}},"runtime":{"type":"object","additionalProperties":false,"required":["compatibilityDate","compatibilityFlags"],"properties":{"compatibilityDate":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"compatibilityFlags":{"type":"array","uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9_]+$"}}}},"toolchain":{"type":"object","additionalProperties":{"type":"string","maxLength":64}},"theme":{"type":"object","additionalProperties":false,"required":["name","version","blockTypes","settingsSha256","designSha256"],"properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"version":{"type":"string","maxLength":64},"blockTypes":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"settingsSha256":{"$ref":"#/$defs/Sha256Hex"},"designSha256":{"$ref":"#/$defs/Sha256Hex"}}},"skills":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name","sha256"],"properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"sha256":{"$ref":"#/$defs/Sha256Hex"}}}},"workers":{"type":"object","additionalProperties":false,"required":["site","admin"],"properties":{"site":{"$ref":"#/$defs/WorkerArtifact"},"admin":{"$ref":"#/$defs/WorkerArtifact"}}},"bindingTemplates":{"type":"object","additionalProperties":false,"required":["site","admin"],"properties":{"site":{"$ref":"#/$defs/BindingTemplate"},"admin":{"$ref":"#/$defs/BindingTemplate"}}},"requiredScopes":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/ScopeId"}},"optionalScopes":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/ScopeId"}},"requiredCapabilities":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/Capability"}},"optionalCapabilities":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/Capability"}},"starter":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["admin-api"]}}},{"type":"object","additionalProperties":false,"required":["kind","path","bytes","sha256","siteId"],"properties":{"kind":{"type":"string","enum":["bundle"]},"path":{"type":"string","pattern":"^starter/[A-Za-z0-9._-]+$"},"bytes":{"type":"integer","minimum":1},"sha256":{"$ref":"#/$defs/Sha256Hex"},"siteId":{"$ref":"#/$defs/SiteId"}}}]},"features":{"type":"object","additionalProperties":{"type":"boolean"},"required":["adminSitesAcceptsSiteId","healthReportsVersion","mediaTransformVar"],"properties":{"adminSitesAcceptsSiteId":{"type":"boolean"},"healthReportsVersion":{"type":"boolean"},"mediaTransformVar":{"type":"boolean"}}},"planVersion":{"type":"integer","minimum":1},"signing":{"type":"object","additionalProperties":false,"required":["keyId","algorithm","signature"],"properties":{"keyId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{2,63}$"},"algorithm":{"type":"string","enum":["Ed25519"]},"signature":{"type":"string","enum":["manifest.sig","release-statement.sig"]}}}},"$defs":{"BindingName":{"type":"string","pattern":"^[A-Z][A-Z0-9_]*(_\\*)?$"},"BindingTemplate":{"type":"object","additionalProperties":false,"required":["bindings","vars","secrets"],"properties":{"bindings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name","type","required"],"properties":{"name":{"$ref":"#/$defs/BindingName"},"type":{"type":"string","enum":["d1","r2_bucket","assets","service","durable_object_namespace","analytics_engine","analytics_sql","ratelimit","ai_search","send_email","ai","browser"]},"required":{"type":"boolean"},"aliases":{"type":"array","items":{"$ref":"#/$defs/BindingName"}}}}},"vars":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/BindingName"}},"secrets":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/SecretName"}},"cache":{"type":"boolean"},"cron":{"type":"string","pattern":"^[0-9*/,\\- ]+$"}}},"Capability":{"type":"string","enum":["account","workers","d1","r2","analytics","domains"]},"CloudhalVersion":{"type":"string","pattern":"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"},"MigrationName":{"type":"string","pattern":"^[0-9]{4}_[a-z0-9_]+$"},"SchemaVersion":{"type":"integer","description":"Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.","enum":[1]},"ScopeId":{"type":"string","pattern":"^[a-z0-9-]+(\\.[a-z0-9-]+)+$"},"SecretName":{"type":"string","enum":["BETTER_AUTH_SECRET","MCP_STATE_KEY","CLOUDHAL_PREVIEW_SECRET","CLOUDHAL_PURGE_TOKEN","CLOUDHAL_DEPLOY_TOKEN","CLOUDHAL_SETUP_TOKEN","CLOUDHAL_COMMENTS_KEY"]},"Sha256Hex":{"type":"string","pattern":"^[0-9a-f]{64}$"},"SiteId":{"type":"string","pattern":"^site_[A-Za-z0-9]{6,32}$"},"Timestamp":{"type":"string","description":"RFC 3339 / ISO 8601 instant in UTC.","format":"date-time"},"WorkerArtifact":{"type":"object","additionalProperties":false,"required":["mainModule","modules","assets"],"properties":{"mainModule":{"type":"string","pattern":"^[A-Za-z0-9._/-]+$"},"modules":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["path","type","bytes","sha256"],"properties":{"path":{"type":"string","pattern":"^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$"},"type":{"type":"string","enum":["esm","cjs","wasm","text","data"]},"bytes":{"type":"integer","minimum":1},"sha256":{"$ref":"#/$defs/Sha256Hex"}}}},"assets":{"type":"object","additionalProperties":false,"required":["count","bytes","files","headers"],"properties":{"count":{"type":"integer","minimum":0,"maximum":20000},"bytes":{"type":"integer","minimum":0},"files":{"type":"array","maxItems":20000,"items":{"type":"object","additionalProperties":false,"required":["path","bytes","sha256","assetHash","contentType"],"properties":{"path":{"type":"string","pattern":"^/[^\\s]*$","maxLength":1024},"bytes":{"type":"integer","minimum":0,"maximum":26214400},"sha256":{"$ref":"#/$defs/Sha256Hex"},"assetHash":{"type":"string","pattern":"^[0-9a-f]{32}$"},"contentType":{"type":"string","maxLength":128}}}},"headers":{"type":"string","maxLength":100000},"config":{"type":"object","additionalProperties":false,"properties":{"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"run_worker_first":{"type":"array","items":{"type":"string","pattern":"^/"}}}}}},"bindingTemplate":{"type":"string","enum":["site","admin"]}}}}};
43616
+ const schema574 = {"type":"integer","description":"Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.","enum":[1]};
43617
+ const schema575 = {"type":"string","pattern":"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"};
43618
+ const schema576 = {"type":"string","description":"RFC 3339 / ISO 8601 instant in UTC.","format":"date-time"};
43619
+ const schema577 = {"type":"string","pattern":"^[0-9]{4}_[a-z0-9_]+$"};
43620
+ const schema580 = {"type":"string","pattern":"^[A-Z][A-Z0-9_]*(_\\*)?$"};
43621
+ const schema581 = {"type":"string","pattern":"^[0-9a-f]{64}$"};
43622
+ const schema592 = {"type":"string","pattern":"^[a-z0-9-]+(\\.[a-z0-9-]+)+$"};
43623
+ const schema594 = {"type":"string","enum":["account","workers","d1","r2","analytics","domains"]};
43624
+ const schema597 = {"type":"string","pattern":"^site_[A-Za-z0-9]{6,32}$"};
43625
+ const pattern305 = new RegExp("^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$", "u");
43626
+ const pattern306 = new RegExp("^[0-9a-f]{40}$", "u");
43627
+ const pattern307 = new RegExp("^[0-9]{4}_[a-z0-9_]+$", "u");
43628
+ const pattern310 = new RegExp("^[A-Z][A-Z0-9_]*(_\\*)?$", "u");
43629
+ const pattern311 = new RegExp("^[A-Z][A-Za-z0-9]*$", "u");
43630
+ const pattern312 = new RegExp("^v[1-9][0-9]*$", "u");
43631
+ const pattern313 = new RegExp("^[0-9]{4}-[0-9]{2}-[0-9]{2}$", "u");
43632
+ const pattern314 = new RegExp("^[a-z0-9_]+$", "u");
43633
+ const pattern315 = new RegExp("^[a-z][a-z0-9-]{0,63}$", "u");
43634
+ const pattern331 = new RegExp("^[a-z0-9-]+(\\.[a-z0-9-]+)+$", "u");
43635
+ const pattern333 = new RegExp("^starter/[A-Za-z0-9._-]+$", "u");
43636
+ const pattern335 = new RegExp("^site_[A-Za-z0-9]{6,32}$", "u");
43637
+ const pattern336 = new RegExp("^[a-z0-9][a-z0-9-]{2,63}$", "u");
43638
+ const schema584 = {"type":"object","additionalProperties":false,"required":["mainModule","modules","assets"],"properties":{"mainModule":{"type":"string","pattern":"^[A-Za-z0-9._/-]+$"},"modules":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["path","type","bytes","sha256"],"properties":{"path":{"type":"string","pattern":"^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$"},"type":{"type":"string","enum":["esm","cjs","wasm","text","data"]},"bytes":{"type":"integer","minimum":1},"sha256":{"$ref":"#/$defs/Sha256Hex"}}}},"assets":{"type":"object","additionalProperties":false,"required":["count","bytes","files","headers"],"properties":{"count":{"type":"integer","minimum":0,"maximum":20000},"bytes":{"type":"integer","minimum":0},"files":{"type":"array","maxItems":20000,"items":{"type":"object","additionalProperties":false,"required":["path","bytes","sha256","assetHash","contentType"],"properties":{"path":{"type":"string","pattern":"^/[^\\s]*$","maxLength":1024},"bytes":{"type":"integer","minimum":0,"maximum":26214400},"sha256":{"$ref":"#/$defs/Sha256Hex"},"assetHash":{"type":"string","pattern":"^[0-9a-f]{32}$"},"contentType":{"type":"string","maxLength":128}}}},"headers":{"type":"string","maxLength":100000},"config":{"type":"object","additionalProperties":false,"properties":{"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"run_worker_first":{"type":"array","items":{"type":"string","pattern":"^/"}}}}}},"bindingTemplate":{"type":"string","enum":["site","admin"]}}};
43639
+ const pattern320 = new RegExp("^[A-Za-z0-9._/-]+$", "u");
43640
+ const pattern321 = new RegExp("^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$", "u");
43641
+ const pattern323 = new RegExp("^/[^\\s]*$", "u");
43642
+ const pattern325 = new RegExp("^[0-9a-f]{32}$", "u");
43643
+ const pattern326 = new RegExp("^/", "u");
43644
+
43645
+ function validate246(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){
43646
+ let vErrors = null;
43647
+ let errors = 0;
43648
+ const evaluated0 = validate246.evaluated;
43649
+ if(evaluated0.dynamicProps){
43650
+ evaluated0.props = undefined;
43651
+ }
43652
+ if(evaluated0.dynamicItems){
43653
+ evaluated0.items = undefined;
43654
+ }
43655
+ if(data && typeof data == "object" && !Array.isArray(data)){
43656
+ if(data.mainModule === undefined){
43657
+ const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mainModule"},message:"must have required property '"+"mainModule"+"'"};
43658
+ if(vErrors === null){
43659
+ vErrors = [err0];
43660
+ }
43661
+ else {
43662
+ vErrors.push(err0);
43663
+ }
43664
+ errors++;
43665
+ }
43666
+ if(data.modules === undefined){
43667
+ const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "modules"},message:"must have required property '"+"modules"+"'"};
43668
+ if(vErrors === null){
43669
+ vErrors = [err1];
43670
+ }
43671
+ else {
43672
+ vErrors.push(err1);
43673
+ }
43674
+ errors++;
43675
+ }
43676
+ if(data.assets === undefined){
43677
+ const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "assets"},message:"must have required property '"+"assets"+"'"};
43678
+ if(vErrors === null){
43679
+ vErrors = [err2];
43680
+ }
43681
+ else {
43682
+ vErrors.push(err2);
43683
+ }
43684
+ errors++;
43685
+ }
43686
+ for(const key0 in data){
43687
+ if(!((((key0 === "mainModule") || (key0 === "modules")) || (key0 === "assets")) || (key0 === "bindingTemplate"))){
43688
+ const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};
43689
+ if(vErrors === null){
43690
+ vErrors = [err3];
43691
+ }
43692
+ else {
43693
+ vErrors.push(err3);
43694
+ }
43695
+ errors++;
43696
+ }
43697
+ }
43698
+ if(data.mainModule !== undefined){
43699
+ let data0 = data.mainModule;
43700
+ if(typeof data0 === "string"){
43701
+ if(!pattern320.test(data0)){
43702
+ const err4 = {instancePath:instancePath+"/mainModule",schemaPath:"#/properties/mainModule/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9._/-]+$"},message:"must match pattern \""+"^[A-Za-z0-9._/-]+$"+"\""};
43703
+ if(vErrors === null){
43704
+ vErrors = [err4];
43705
+ }
43706
+ else {
43707
+ vErrors.push(err4);
43708
+ }
43709
+ errors++;
43710
+ }
43711
+ }
43712
+ else {
43713
+ const err5 = {instancePath:instancePath+"/mainModule",schemaPath:"#/properties/mainModule/type",keyword:"type",params:{type: "string"},message:"must be string"};
43714
+ if(vErrors === null){
43715
+ vErrors = [err5];
43716
+ }
43717
+ else {
43718
+ vErrors.push(err5);
43719
+ }
43720
+ errors++;
43721
+ }
43722
+ }
43723
+ if(data.modules !== undefined){
43724
+ let data1 = data.modules;
43725
+ if(Array.isArray(data1)){
43726
+ if(data1.length < 1){
43727
+ const err6 = {instancePath:instancePath+"/modules",schemaPath:"#/properties/modules/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};
43728
+ if(vErrors === null){
43729
+ vErrors = [err6];
43730
+ }
43731
+ else {
43732
+ vErrors.push(err6);
43733
+ }
43734
+ errors++;
43735
+ }
43736
+ const len0 = data1.length;
43737
+ for(let i0=0; i0<len0; i0++){
43738
+ let data2 = data1[i0];
43739
+ if(data2 && typeof data2 == "object" && !Array.isArray(data2)){
43740
+ if(data2.path === undefined){
43741
+ const err7 = {instancePath:instancePath+"/modules/" + i0,schemaPath:"#/properties/modules/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};
43742
+ if(vErrors === null){
43743
+ vErrors = [err7];
43744
+ }
43745
+ else {
43746
+ vErrors.push(err7);
43747
+ }
43748
+ errors++;
43749
+ }
43750
+ if(data2.type === undefined){
43751
+ const err8 = {instancePath:instancePath+"/modules/" + i0,schemaPath:"#/properties/modules/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};
43752
+ if(vErrors === null){
43753
+ vErrors = [err8];
43754
+ }
43755
+ else {
43756
+ vErrors.push(err8);
43757
+ }
43758
+ errors++;
43759
+ }
43760
+ if(data2.bytes === undefined){
43761
+ const err9 = {instancePath:instancePath+"/modules/" + i0,schemaPath:"#/properties/modules/items/required",keyword:"required",params:{missingProperty: "bytes"},message:"must have required property '"+"bytes"+"'"};
43762
+ if(vErrors === null){
43763
+ vErrors = [err9];
43764
+ }
43765
+ else {
43766
+ vErrors.push(err9);
43767
+ }
43768
+ errors++;
43769
+ }
43770
+ if(data2.sha256 === undefined){
43771
+ const err10 = {instancePath:instancePath+"/modules/" + i0,schemaPath:"#/properties/modules/items/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};
43772
+ if(vErrors === null){
43773
+ vErrors = [err10];
43774
+ }
43775
+ else {
43776
+ vErrors.push(err10);
43777
+ }
43778
+ errors++;
43779
+ }
43780
+ for(const key1 in data2){
43781
+ if(!((((key1 === "path") || (key1 === "type")) || (key1 === "bytes")) || (key1 === "sha256"))){
43782
+ const err11 = {instancePath:instancePath+"/modules/" + i0,schemaPath:"#/properties/modules/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};
43783
+ if(vErrors === null){
43784
+ vErrors = [err11];
43785
+ }
43786
+ else {
43787
+ vErrors.push(err11);
43788
+ }
43789
+ errors++;
43790
+ }
43791
+ }
43792
+ if(data2.path !== undefined){
43793
+ let data3 = data2.path;
43794
+ if(typeof data3 === "string"){
43795
+ if(!pattern321.test(data3)){
43796
+ const err12 = {instancePath:instancePath+"/modules/" + i0+"/path",schemaPath:"#/properties/modules/items/properties/path/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$"},message:"must match pattern \""+"^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$"+"\""};
43797
+ if(vErrors === null){
43798
+ vErrors = [err12];
43799
+ }
43800
+ else {
43801
+ vErrors.push(err12);
43802
+ }
43803
+ errors++;
43804
+ }
43805
+ }
43806
+ else {
43807
+ const err13 = {instancePath:instancePath+"/modules/" + i0+"/path",schemaPath:"#/properties/modules/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};
43808
+ if(vErrors === null){
43809
+ vErrors = [err13];
43810
+ }
43811
+ else {
43812
+ vErrors.push(err13);
43813
+ }
43814
+ errors++;
43815
+ }
43816
+ }
43817
+ if(data2.type !== undefined){
43818
+ let data4 = data2.type;
43819
+ if(typeof data4 !== "string"){
43820
+ const err14 = {instancePath:instancePath+"/modules/" + i0+"/type",schemaPath:"#/properties/modules/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};
43821
+ if(vErrors === null){
43822
+ vErrors = [err14];
43823
+ }
43824
+ else {
43825
+ vErrors.push(err14);
43826
+ }
43827
+ errors++;
43828
+ }
43829
+ if(!(((((data4 === "esm") || (data4 === "cjs")) || (data4 === "wasm")) || (data4 === "text")) || (data4 === "data"))){
43830
+ const err15 = {instancePath:instancePath+"/modules/" + i0+"/type",schemaPath:"#/properties/modules/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema584.properties.modules.items.properties.type.enum},message:"must be equal to one of the allowed values"};
43831
+ if(vErrors === null){
43832
+ vErrors = [err15];
43833
+ }
43834
+ else {
43835
+ vErrors.push(err15);
43836
+ }
43837
+ errors++;
43838
+ }
43839
+ }
43840
+ if(data2.bytes !== undefined){
43841
+ let data5 = data2.bytes;
43842
+ if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){
43843
+ const err16 = {instancePath:instancePath+"/modules/" + i0+"/bytes",schemaPath:"#/properties/modules/items/properties/bytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
43844
+ if(vErrors === null){
43845
+ vErrors = [err16];
43846
+ }
43847
+ else {
43848
+ vErrors.push(err16);
43849
+ }
43850
+ errors++;
43851
+ }
43852
+ if((typeof data5 == "number") && (isFinite(data5))){
43853
+ if(data5 < 1 || isNaN(data5)){
43854
+ const err17 = {instancePath:instancePath+"/modules/" + i0+"/bytes",schemaPath:"#/properties/modules/items/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};
43855
+ if(vErrors === null){
43856
+ vErrors = [err17];
43857
+ }
43858
+ else {
43859
+ vErrors.push(err17);
43860
+ }
43861
+ errors++;
43862
+ }
43863
+ }
43864
+ }
43865
+ if(data2.sha256 !== undefined){
43866
+ let data6 = data2.sha256;
43867
+ if(typeof data6 === "string"){
43868
+ if(!pattern66.test(data6)){
43869
+ const err18 = {instancePath:instancePath+"/modules/" + i0+"/sha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
43870
+ if(vErrors === null){
43871
+ vErrors = [err18];
43872
+ }
43873
+ else {
43874
+ vErrors.push(err18);
43875
+ }
43876
+ errors++;
43877
+ }
43878
+ }
43879
+ else {
43880
+ const err19 = {instancePath:instancePath+"/modules/" + i0+"/sha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
43881
+ if(vErrors === null){
43882
+ vErrors = [err19];
43883
+ }
43884
+ else {
43885
+ vErrors.push(err19);
43886
+ }
43887
+ errors++;
43888
+ }
43889
+ }
43890
+ }
43891
+ else {
43892
+ const err20 = {instancePath:instancePath+"/modules/" + i0,schemaPath:"#/properties/modules/items/type",keyword:"type",params:{type: "object"},message:"must be object"};
43893
+ if(vErrors === null){
43894
+ vErrors = [err20];
43895
+ }
43896
+ else {
43897
+ vErrors.push(err20);
43898
+ }
43899
+ errors++;
43900
+ }
43901
+ }
43902
+ }
43903
+ else {
43904
+ const err21 = {instancePath:instancePath+"/modules",schemaPath:"#/properties/modules/type",keyword:"type",params:{type: "array"},message:"must be array"};
43905
+ if(vErrors === null){
43906
+ vErrors = [err21];
43907
+ }
43908
+ else {
43909
+ vErrors.push(err21);
43910
+ }
43911
+ errors++;
43912
+ }
43913
+ }
43914
+ if(data.assets !== undefined){
43915
+ let data7 = data.assets;
43916
+ if(data7 && typeof data7 == "object" && !Array.isArray(data7)){
43917
+ if(data7.count === undefined){
43918
+ const err22 = {instancePath:instancePath+"/assets",schemaPath:"#/properties/assets/required",keyword:"required",params:{missingProperty: "count"},message:"must have required property '"+"count"+"'"};
43919
+ if(vErrors === null){
43920
+ vErrors = [err22];
43921
+ }
43922
+ else {
43923
+ vErrors.push(err22);
43924
+ }
43925
+ errors++;
43926
+ }
43927
+ if(data7.bytes === undefined){
43928
+ const err23 = {instancePath:instancePath+"/assets",schemaPath:"#/properties/assets/required",keyword:"required",params:{missingProperty: "bytes"},message:"must have required property '"+"bytes"+"'"};
43929
+ if(vErrors === null){
43930
+ vErrors = [err23];
43931
+ }
43932
+ else {
43933
+ vErrors.push(err23);
43934
+ }
43935
+ errors++;
43936
+ }
43937
+ if(data7.files === undefined){
43938
+ const err24 = {instancePath:instancePath+"/assets",schemaPath:"#/properties/assets/required",keyword:"required",params:{missingProperty: "files"},message:"must have required property '"+"files"+"'"};
43939
+ if(vErrors === null){
43940
+ vErrors = [err24];
43941
+ }
43942
+ else {
43943
+ vErrors.push(err24);
43944
+ }
43945
+ errors++;
43946
+ }
43947
+ if(data7.headers === undefined){
43948
+ const err25 = {instancePath:instancePath+"/assets",schemaPath:"#/properties/assets/required",keyword:"required",params:{missingProperty: "headers"},message:"must have required property '"+"headers"+"'"};
43949
+ if(vErrors === null){
43950
+ vErrors = [err25];
43951
+ }
43952
+ else {
43953
+ vErrors.push(err25);
43954
+ }
43955
+ errors++;
43956
+ }
43957
+ for(const key2 in data7){
43958
+ if(!(((((key2 === "count") || (key2 === "bytes")) || (key2 === "files")) || (key2 === "headers")) || (key2 === "config"))){
43959
+ const err26 = {instancePath:instancePath+"/assets",schemaPath:"#/properties/assets/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};
43960
+ if(vErrors === null){
43961
+ vErrors = [err26];
43962
+ }
43963
+ else {
43964
+ vErrors.push(err26);
43965
+ }
43966
+ errors++;
43967
+ }
43968
+ }
43969
+ if(data7.count !== undefined){
43970
+ let data8 = data7.count;
43971
+ if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){
43972
+ const err27 = {instancePath:instancePath+"/assets/count",schemaPath:"#/properties/assets/properties/count/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
43973
+ if(vErrors === null){
43974
+ vErrors = [err27];
43975
+ }
43976
+ else {
43977
+ vErrors.push(err27);
43978
+ }
43979
+ errors++;
43980
+ }
43981
+ if((typeof data8 == "number") && (isFinite(data8))){
43982
+ if(data8 > 20000 || isNaN(data8)){
43983
+ const err28 = {instancePath:instancePath+"/assets/count",schemaPath:"#/properties/assets/properties/count/maximum",keyword:"maximum",params:{comparison: "<=", limit: 20000},message:"must be <= 20000"};
43984
+ if(vErrors === null){
43985
+ vErrors = [err28];
43986
+ }
43987
+ else {
43988
+ vErrors.push(err28);
43989
+ }
43990
+ errors++;
43991
+ }
43992
+ if(data8 < 0 || isNaN(data8)){
43993
+ const err29 = {instancePath:instancePath+"/assets/count",schemaPath:"#/properties/assets/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};
43994
+ if(vErrors === null){
43995
+ vErrors = [err29];
43996
+ }
43997
+ else {
43998
+ vErrors.push(err29);
43999
+ }
44000
+ errors++;
44001
+ }
44002
+ }
44003
+ }
44004
+ if(data7.bytes !== undefined){
44005
+ let data9 = data7.bytes;
44006
+ if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){
44007
+ const err30 = {instancePath:instancePath+"/assets/bytes",schemaPath:"#/properties/assets/properties/bytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
44008
+ if(vErrors === null){
44009
+ vErrors = [err30];
44010
+ }
44011
+ else {
44012
+ vErrors.push(err30);
44013
+ }
44014
+ errors++;
44015
+ }
44016
+ if((typeof data9 == "number") && (isFinite(data9))){
44017
+ if(data9 < 0 || isNaN(data9)){
44018
+ const err31 = {instancePath:instancePath+"/assets/bytes",schemaPath:"#/properties/assets/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};
44019
+ if(vErrors === null){
44020
+ vErrors = [err31];
44021
+ }
44022
+ else {
44023
+ vErrors.push(err31);
44024
+ }
44025
+ errors++;
44026
+ }
44027
+ }
44028
+ }
44029
+ if(data7.files !== undefined){
44030
+ let data10 = data7.files;
44031
+ if(Array.isArray(data10)){
44032
+ if(data10.length > 20000){
44033
+ const err32 = {instancePath:instancePath+"/assets/files",schemaPath:"#/properties/assets/properties/files/maxItems",keyword:"maxItems",params:{limit: 20000},message:"must NOT have more than 20000 items"};
44034
+ if(vErrors === null){
44035
+ vErrors = [err32];
44036
+ }
44037
+ else {
44038
+ vErrors.push(err32);
44039
+ }
44040
+ errors++;
44041
+ }
44042
+ const len1 = data10.length;
44043
+ for(let i1=0; i1<len1; i1++){
44044
+ let data11 = data10[i1];
44045
+ if(data11 && typeof data11 == "object" && !Array.isArray(data11)){
44046
+ if(data11.path === undefined){
44047
+ const err33 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};
44048
+ if(vErrors === null){
44049
+ vErrors = [err33];
44050
+ }
44051
+ else {
44052
+ vErrors.push(err33);
44053
+ }
44054
+ errors++;
44055
+ }
44056
+ if(data11.bytes === undefined){
44057
+ const err34 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/required",keyword:"required",params:{missingProperty: "bytes"},message:"must have required property '"+"bytes"+"'"};
44058
+ if(vErrors === null){
44059
+ vErrors = [err34];
44060
+ }
44061
+ else {
44062
+ vErrors.push(err34);
44063
+ }
44064
+ errors++;
44065
+ }
44066
+ if(data11.sha256 === undefined){
44067
+ const err35 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};
44068
+ if(vErrors === null){
44069
+ vErrors = [err35];
44070
+ }
44071
+ else {
44072
+ vErrors.push(err35);
44073
+ }
44074
+ errors++;
44075
+ }
44076
+ if(data11.assetHash === undefined){
44077
+ const err36 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/required",keyword:"required",params:{missingProperty: "assetHash"},message:"must have required property '"+"assetHash"+"'"};
44078
+ if(vErrors === null){
44079
+ vErrors = [err36];
44080
+ }
44081
+ else {
44082
+ vErrors.push(err36);
44083
+ }
44084
+ errors++;
44085
+ }
44086
+ if(data11.contentType === undefined){
44087
+ const err37 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/required",keyword:"required",params:{missingProperty: "contentType"},message:"must have required property '"+"contentType"+"'"};
44088
+ if(vErrors === null){
44089
+ vErrors = [err37];
44090
+ }
44091
+ else {
44092
+ vErrors.push(err37);
44093
+ }
44094
+ errors++;
44095
+ }
44096
+ for(const key3 in data11){
44097
+ if(!(((((key3 === "path") || (key3 === "bytes")) || (key3 === "sha256")) || (key3 === "assetHash")) || (key3 === "contentType"))){
44098
+ const err38 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};
44099
+ if(vErrors === null){
44100
+ vErrors = [err38];
44101
+ }
44102
+ else {
44103
+ vErrors.push(err38);
44104
+ }
44105
+ errors++;
44106
+ }
44107
+ }
44108
+ if(data11.path !== undefined){
44109
+ let data12 = data11.path;
44110
+ if(typeof data12 === "string"){
44111
+ if(func2(data12) > 1024){
44112
+ const err39 = {instancePath:instancePath+"/assets/files/" + i1+"/path",schemaPath:"#/properties/assets/properties/files/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"};
44113
+ if(vErrors === null){
44114
+ vErrors = [err39];
44115
+ }
44116
+ else {
44117
+ vErrors.push(err39);
44118
+ }
44119
+ errors++;
44120
+ }
44121
+ if(!pattern323.test(data12)){
44122
+ const err40 = {instancePath:instancePath+"/assets/files/" + i1+"/path",schemaPath:"#/properties/assets/properties/files/items/properties/path/pattern",keyword:"pattern",params:{pattern: "^/[^\\s]*$"},message:"must match pattern \""+"^/[^\\s]*$"+"\""};
44123
+ if(vErrors === null){
44124
+ vErrors = [err40];
44125
+ }
44126
+ else {
44127
+ vErrors.push(err40);
44128
+ }
44129
+ errors++;
44130
+ }
44131
+ }
44132
+ else {
44133
+ const err41 = {instancePath:instancePath+"/assets/files/" + i1+"/path",schemaPath:"#/properties/assets/properties/files/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};
44134
+ if(vErrors === null){
44135
+ vErrors = [err41];
44136
+ }
44137
+ else {
44138
+ vErrors.push(err41);
44139
+ }
44140
+ errors++;
44141
+ }
44142
+ }
44143
+ if(data11.bytes !== undefined){
44144
+ let data13 = data11.bytes;
44145
+ if(!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))){
44146
+ const err42 = {instancePath:instancePath+"/assets/files/" + i1+"/bytes",schemaPath:"#/properties/assets/properties/files/items/properties/bytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
44147
+ if(vErrors === null){
44148
+ vErrors = [err42];
44149
+ }
44150
+ else {
44151
+ vErrors.push(err42);
44152
+ }
44153
+ errors++;
44154
+ }
44155
+ if((typeof data13 == "number") && (isFinite(data13))){
44156
+ if(data13 > 26214400 || isNaN(data13)){
44157
+ const err43 = {instancePath:instancePath+"/assets/files/" + i1+"/bytes",schemaPath:"#/properties/assets/properties/files/items/properties/bytes/maximum",keyword:"maximum",params:{comparison: "<=", limit: 26214400},message:"must be <= 26214400"};
44158
+ if(vErrors === null){
44159
+ vErrors = [err43];
44160
+ }
44161
+ else {
44162
+ vErrors.push(err43);
44163
+ }
44164
+ errors++;
44165
+ }
44166
+ if(data13 < 0 || isNaN(data13)){
44167
+ const err44 = {instancePath:instancePath+"/assets/files/" + i1+"/bytes",schemaPath:"#/properties/assets/properties/files/items/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};
44168
+ if(vErrors === null){
44169
+ vErrors = [err44];
44170
+ }
44171
+ else {
44172
+ vErrors.push(err44);
44173
+ }
44174
+ errors++;
44175
+ }
44176
+ }
44177
+ }
44178
+ if(data11.sha256 !== undefined){
44179
+ let data14 = data11.sha256;
44180
+ if(typeof data14 === "string"){
44181
+ if(!pattern66.test(data14)){
44182
+ const err45 = {instancePath:instancePath+"/assets/files/" + i1+"/sha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
44183
+ if(vErrors === null){
44184
+ vErrors = [err45];
44185
+ }
44186
+ else {
44187
+ vErrors.push(err45);
44188
+ }
44189
+ errors++;
44190
+ }
44191
+ }
44192
+ else {
44193
+ const err46 = {instancePath:instancePath+"/assets/files/" + i1+"/sha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
44194
+ if(vErrors === null){
44195
+ vErrors = [err46];
44196
+ }
44197
+ else {
44198
+ vErrors.push(err46);
44199
+ }
44200
+ errors++;
44201
+ }
44202
+ }
44203
+ if(data11.assetHash !== undefined){
44204
+ let data15 = data11.assetHash;
44205
+ if(typeof data15 === "string"){
44206
+ if(!pattern325.test(data15)){
44207
+ const err47 = {instancePath:instancePath+"/assets/files/" + i1+"/assetHash",schemaPath:"#/properties/assets/properties/files/items/properties/assetHash/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{32}$"},message:"must match pattern \""+"^[0-9a-f]{32}$"+"\""};
44208
+ if(vErrors === null){
44209
+ vErrors = [err47];
44210
+ }
44211
+ else {
44212
+ vErrors.push(err47);
44213
+ }
44214
+ errors++;
44215
+ }
44216
+ }
44217
+ else {
44218
+ const err48 = {instancePath:instancePath+"/assets/files/" + i1+"/assetHash",schemaPath:"#/properties/assets/properties/files/items/properties/assetHash/type",keyword:"type",params:{type: "string"},message:"must be string"};
44219
+ if(vErrors === null){
44220
+ vErrors = [err48];
44221
+ }
44222
+ else {
44223
+ vErrors.push(err48);
44224
+ }
44225
+ errors++;
44226
+ }
44227
+ }
44228
+ if(data11.contentType !== undefined){
44229
+ let data16 = data11.contentType;
44230
+ if(typeof data16 === "string"){
44231
+ if(func2(data16) > 128){
44232
+ const err49 = {instancePath:instancePath+"/assets/files/" + i1+"/contentType",schemaPath:"#/properties/assets/properties/files/items/properties/contentType/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"};
44233
+ if(vErrors === null){
44234
+ vErrors = [err49];
44235
+ }
44236
+ else {
44237
+ vErrors.push(err49);
44238
+ }
44239
+ errors++;
44240
+ }
44241
+ }
44242
+ else {
44243
+ const err50 = {instancePath:instancePath+"/assets/files/" + i1+"/contentType",schemaPath:"#/properties/assets/properties/files/items/properties/contentType/type",keyword:"type",params:{type: "string"},message:"must be string"};
44244
+ if(vErrors === null){
44245
+ vErrors = [err50];
44246
+ }
44247
+ else {
44248
+ vErrors.push(err50);
44249
+ }
44250
+ errors++;
44251
+ }
44252
+ }
44253
+ }
44254
+ else {
44255
+ const err51 = {instancePath:instancePath+"/assets/files/" + i1,schemaPath:"#/properties/assets/properties/files/items/type",keyword:"type",params:{type: "object"},message:"must be object"};
44256
+ if(vErrors === null){
44257
+ vErrors = [err51];
44258
+ }
44259
+ else {
44260
+ vErrors.push(err51);
44261
+ }
44262
+ errors++;
44263
+ }
44264
+ }
44265
+ }
44266
+ else {
44267
+ const err52 = {instancePath:instancePath+"/assets/files",schemaPath:"#/properties/assets/properties/files/type",keyword:"type",params:{type: "array"},message:"must be array"};
44268
+ if(vErrors === null){
44269
+ vErrors = [err52];
44270
+ }
44271
+ else {
44272
+ vErrors.push(err52);
44273
+ }
44274
+ errors++;
44275
+ }
44276
+ }
44277
+ if(data7.headers !== undefined){
44278
+ let data17 = data7.headers;
44279
+ if(typeof data17 === "string"){
44280
+ if(func2(data17) > 100000){
44281
+ const err53 = {instancePath:instancePath+"/assets/headers",schemaPath:"#/properties/assets/properties/headers/maxLength",keyword:"maxLength",params:{limit: 100000},message:"must NOT have more than 100000 characters"};
44282
+ if(vErrors === null){
44283
+ vErrors = [err53];
44284
+ }
44285
+ else {
44286
+ vErrors.push(err53);
44287
+ }
44288
+ errors++;
44289
+ }
44290
+ }
44291
+ else {
44292
+ const err54 = {instancePath:instancePath+"/assets/headers",schemaPath:"#/properties/assets/properties/headers/type",keyword:"type",params:{type: "string"},message:"must be string"};
44293
+ if(vErrors === null){
44294
+ vErrors = [err54];
44295
+ }
44296
+ else {
44297
+ vErrors.push(err54);
44298
+ }
44299
+ errors++;
44300
+ }
44301
+ }
44302
+ if(data7.config !== undefined){
44303
+ let data18 = data7.config;
44304
+ if(data18 && typeof data18 == "object" && !Array.isArray(data18)){
44305
+ for(const key4 in data18){
44306
+ if(!((key4 === "not_found_handling") || (key4 === "run_worker_first"))){
44307
+ const err55 = {instancePath:instancePath+"/assets/config",schemaPath:"#/properties/assets/properties/config/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};
44308
+ if(vErrors === null){
44309
+ vErrors = [err55];
44310
+ }
44311
+ else {
44312
+ vErrors.push(err55);
44313
+ }
44314
+ errors++;
44315
+ }
44316
+ }
44317
+ if(data18.not_found_handling !== undefined){
44318
+ let data19 = data18.not_found_handling;
44319
+ if(typeof data19 !== "string"){
44320
+ const err56 = {instancePath:instancePath+"/assets/config/not_found_handling",schemaPath:"#/properties/assets/properties/config/properties/not_found_handling/type",keyword:"type",params:{type: "string"},message:"must be string"};
44321
+ if(vErrors === null){
44322
+ vErrors = [err56];
44323
+ }
44324
+ else {
44325
+ vErrors.push(err56);
44326
+ }
44327
+ errors++;
44328
+ }
44329
+ if(!(((data19 === "none") || (data19 === "404-page")) || (data19 === "single-page-application"))){
44330
+ const err57 = {instancePath:instancePath+"/assets/config/not_found_handling",schemaPath:"#/properties/assets/properties/config/properties/not_found_handling/enum",keyword:"enum",params:{allowedValues: schema584.properties.assets.properties.config.properties.not_found_handling.enum},message:"must be equal to one of the allowed values"};
44331
+ if(vErrors === null){
44332
+ vErrors = [err57];
44333
+ }
44334
+ else {
44335
+ vErrors.push(err57);
44336
+ }
44337
+ errors++;
44338
+ }
44339
+ }
44340
+ if(data18.run_worker_first !== undefined){
44341
+ let data20 = data18.run_worker_first;
44342
+ if(Array.isArray(data20)){
44343
+ const len2 = data20.length;
44344
+ for(let i2=0; i2<len2; i2++){
44345
+ let data21 = data20[i2];
44346
+ if(typeof data21 === "string"){
44347
+ if(!pattern326.test(data21)){
44348
+ const err58 = {instancePath:instancePath+"/assets/config/run_worker_first/" + i2,schemaPath:"#/properties/assets/properties/config/properties/run_worker_first/items/pattern",keyword:"pattern",params:{pattern: "^/"},message:"must match pattern \""+"^/"+"\""};
44349
+ if(vErrors === null){
44350
+ vErrors = [err58];
44351
+ }
44352
+ else {
44353
+ vErrors.push(err58);
44354
+ }
44355
+ errors++;
44356
+ }
44357
+ }
44358
+ else {
44359
+ const err59 = {instancePath:instancePath+"/assets/config/run_worker_first/" + i2,schemaPath:"#/properties/assets/properties/config/properties/run_worker_first/items/type",keyword:"type",params:{type: "string"},message:"must be string"};
44360
+ if(vErrors === null){
44361
+ vErrors = [err59];
44362
+ }
44363
+ else {
44364
+ vErrors.push(err59);
44365
+ }
44366
+ errors++;
44367
+ }
44368
+ }
44369
+ }
44370
+ else {
44371
+ const err60 = {instancePath:instancePath+"/assets/config/run_worker_first",schemaPath:"#/properties/assets/properties/config/properties/run_worker_first/type",keyword:"type",params:{type: "array"},message:"must be array"};
44372
+ if(vErrors === null){
44373
+ vErrors = [err60];
44374
+ }
44375
+ else {
44376
+ vErrors.push(err60);
44377
+ }
44378
+ errors++;
44379
+ }
44380
+ }
44381
+ }
44382
+ else {
44383
+ const err61 = {instancePath:instancePath+"/assets/config",schemaPath:"#/properties/assets/properties/config/type",keyword:"type",params:{type: "object"},message:"must be object"};
44384
+ if(vErrors === null){
44385
+ vErrors = [err61];
44386
+ }
44387
+ else {
44388
+ vErrors.push(err61);
44389
+ }
44390
+ errors++;
44391
+ }
44392
+ }
44393
+ }
44394
+ else {
44395
+ const err62 = {instancePath:instancePath+"/assets",schemaPath:"#/properties/assets/type",keyword:"type",params:{type: "object"},message:"must be object"};
44396
+ if(vErrors === null){
44397
+ vErrors = [err62];
44398
+ }
44399
+ else {
44400
+ vErrors.push(err62);
44401
+ }
44402
+ errors++;
44403
+ }
44404
+ }
44405
+ if(data.bindingTemplate !== undefined){
44406
+ let data22 = data.bindingTemplate;
44407
+ if(typeof data22 !== "string"){
44408
+ const err63 = {instancePath:instancePath+"/bindingTemplate",schemaPath:"#/properties/bindingTemplate/type",keyword:"type",params:{type: "string"},message:"must be string"};
44409
+ if(vErrors === null){
44410
+ vErrors = [err63];
44411
+ }
44412
+ else {
44413
+ vErrors.push(err63);
44414
+ }
44415
+ errors++;
44416
+ }
44417
+ if(!((data22 === "site") || (data22 === "admin"))){
44418
+ const err64 = {instancePath:instancePath+"/bindingTemplate",schemaPath:"#/properties/bindingTemplate/enum",keyword:"enum",params:{allowedValues: schema584.properties.bindingTemplate.enum},message:"must be equal to one of the allowed values"};
44419
+ if(vErrors === null){
44420
+ vErrors = [err64];
44421
+ }
44422
+ else {
44423
+ vErrors.push(err64);
44424
+ }
44425
+ errors++;
44426
+ }
44427
+ }
44428
+ }
44429
+ else {
44430
+ const err65 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
44431
+ if(vErrors === null){
44432
+ vErrors = [err65];
44433
+ }
44434
+ else {
44435
+ vErrors.push(err65);
44436
+ }
44437
+ errors++;
44438
+ }
44439
+ validate246.errors = vErrors;
44440
+ return errors === 0;
44441
+ }
44442
+ validate246.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
44443
+
44444
+ const schema587 = {"type":"object","additionalProperties":false,"required":["bindings","vars","secrets"],"properties":{"bindings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name","type","required"],"properties":{"name":{"$ref":"#/$defs/BindingName"},"type":{"type":"string","enum":["d1","r2_bucket","assets","service","durable_object_namespace","analytics_engine","analytics_sql","ratelimit","ai_search","send_email","ai","browser"]},"required":{"type":"boolean"},"aliases":{"type":"array","items":{"$ref":"#/$defs/BindingName"}}}}},"vars":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/BindingName"}},"secrets":{"type":"array","uniqueItems":true,"items":{"$ref":"#/$defs/SecretName"}},"cache":{"type":"boolean"},"cron":{"type":"string","pattern":"^[0-9*/,\\- ]+$"}}};
44445
+ const schema591 = {"type":"string","enum":["BETTER_AUTH_SECRET","MCP_STATE_KEY","CLOUDHAL_PREVIEW_SECRET","CLOUDHAL_PURGE_TOKEN","CLOUDHAL_DEPLOY_TOKEN","CLOUDHAL_SETUP_TOKEN","CLOUDHAL_COMMENTS_KEY"]};
44446
+ const pattern330 = new RegExp("^[0-9*/,\\- ]+$", "u");
44447
+
44448
+ function validate249(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){
44449
+ let vErrors = null;
44450
+ let errors = 0;
44451
+ const evaluated0 = validate249.evaluated;
44452
+ if(evaluated0.dynamicProps){
44453
+ evaluated0.props = undefined;
44454
+ }
44455
+ if(evaluated0.dynamicItems){
44456
+ evaluated0.items = undefined;
44457
+ }
44458
+ if(data && typeof data == "object" && !Array.isArray(data)){
44459
+ if(data.bindings === undefined){
44460
+ const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "bindings"},message:"must have required property '"+"bindings"+"'"};
44461
+ if(vErrors === null){
44462
+ vErrors = [err0];
44463
+ }
44464
+ else {
44465
+ vErrors.push(err0);
44466
+ }
44467
+ errors++;
44468
+ }
44469
+ if(data.vars === undefined){
44470
+ const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "vars"},message:"must have required property '"+"vars"+"'"};
44471
+ if(vErrors === null){
44472
+ vErrors = [err1];
44473
+ }
44474
+ else {
44475
+ vErrors.push(err1);
44476
+ }
44477
+ errors++;
44478
+ }
44479
+ if(data.secrets === undefined){
44480
+ const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "secrets"},message:"must have required property '"+"secrets"+"'"};
44481
+ if(vErrors === null){
44482
+ vErrors = [err2];
44483
+ }
44484
+ else {
44485
+ vErrors.push(err2);
44486
+ }
44487
+ errors++;
44488
+ }
44489
+ for(const key0 in data){
44490
+ if(!(((((key0 === "bindings") || (key0 === "vars")) || (key0 === "secrets")) || (key0 === "cache")) || (key0 === "cron"))){
44491
+ const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};
44492
+ if(vErrors === null){
44493
+ vErrors = [err3];
44494
+ }
44495
+ else {
44496
+ vErrors.push(err3);
44497
+ }
44498
+ errors++;
44499
+ }
44500
+ }
44501
+ if(data.bindings !== undefined){
44502
+ let data0 = data.bindings;
44503
+ if(Array.isArray(data0)){
44504
+ const len0 = data0.length;
44505
+ for(let i0=0; i0<len0; i0++){
44506
+ let data1 = data0[i0];
44507
+ if(data1 && typeof data1 == "object" && !Array.isArray(data1)){
44508
+ if(data1.name === undefined){
44509
+ const err4 = {instancePath:instancePath+"/bindings/" + i0,schemaPath:"#/properties/bindings/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
44510
+ if(vErrors === null){
44511
+ vErrors = [err4];
44512
+ }
44513
+ else {
44514
+ vErrors.push(err4);
44515
+ }
44516
+ errors++;
44517
+ }
44518
+ if(data1.type === undefined){
44519
+ const err5 = {instancePath:instancePath+"/bindings/" + i0,schemaPath:"#/properties/bindings/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};
44520
+ if(vErrors === null){
44521
+ vErrors = [err5];
44522
+ }
44523
+ else {
44524
+ vErrors.push(err5);
44525
+ }
44526
+ errors++;
44527
+ }
44528
+ if(data1.required === undefined){
44529
+ const err6 = {instancePath:instancePath+"/bindings/" + i0,schemaPath:"#/properties/bindings/items/required",keyword:"required",params:{missingProperty: "required"},message:"must have required property '"+"required"+"'"};
44530
+ if(vErrors === null){
44531
+ vErrors = [err6];
44532
+ }
44533
+ else {
44534
+ vErrors.push(err6);
44535
+ }
44536
+ errors++;
44537
+ }
44538
+ for(const key1 in data1){
44539
+ if(!((((key1 === "name") || (key1 === "type")) || (key1 === "required")) || (key1 === "aliases"))){
44540
+ const err7 = {instancePath:instancePath+"/bindings/" + i0,schemaPath:"#/properties/bindings/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};
44541
+ if(vErrors === null){
44542
+ vErrors = [err7];
44543
+ }
44544
+ else {
44545
+ vErrors.push(err7);
44546
+ }
44547
+ errors++;
44548
+ }
44549
+ }
44550
+ if(data1.name !== undefined){
44551
+ let data2 = data1.name;
44552
+ if(typeof data2 === "string"){
44553
+ if(!pattern310.test(data2)){
44554
+ const err8 = {instancePath:instancePath+"/bindings/" + i0+"/name",schemaPath:"#/$defs/BindingName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]*(_\\*)?$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]*(_\\*)?$"+"\""};
44555
+ if(vErrors === null){
44556
+ vErrors = [err8];
44557
+ }
44558
+ else {
44559
+ vErrors.push(err8);
44560
+ }
44561
+ errors++;
44562
+ }
44563
+ }
44564
+ else {
44565
+ const err9 = {instancePath:instancePath+"/bindings/" + i0+"/name",schemaPath:"#/$defs/BindingName/type",keyword:"type",params:{type: "string"},message:"must be string"};
44566
+ if(vErrors === null){
44567
+ vErrors = [err9];
44568
+ }
44569
+ else {
44570
+ vErrors.push(err9);
44571
+ }
44572
+ errors++;
44573
+ }
44574
+ }
44575
+ if(data1.type !== undefined){
44576
+ let data3 = data1.type;
44577
+ if(typeof data3 !== "string"){
44578
+ const err10 = {instancePath:instancePath+"/bindings/" + i0+"/type",schemaPath:"#/properties/bindings/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};
44579
+ if(vErrors === null){
44580
+ vErrors = [err10];
44581
+ }
44582
+ else {
44583
+ vErrors.push(err10);
44584
+ }
44585
+ errors++;
44586
+ }
44587
+ if(!((((((((((((data3 === "d1") || (data3 === "r2_bucket")) || (data3 === "assets")) || (data3 === "service")) || (data3 === "durable_object_namespace")) || (data3 === "analytics_engine")) || (data3 === "analytics_sql")) || (data3 === "ratelimit")) || (data3 === "ai_search")) || (data3 === "send_email")) || (data3 === "ai")) || (data3 === "browser"))){
44588
+ const err11 = {instancePath:instancePath+"/bindings/" + i0+"/type",schemaPath:"#/properties/bindings/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema587.properties.bindings.items.properties.type.enum},message:"must be equal to one of the allowed values"};
44589
+ if(vErrors === null){
44590
+ vErrors = [err11];
44591
+ }
44592
+ else {
44593
+ vErrors.push(err11);
44594
+ }
44595
+ errors++;
44596
+ }
44597
+ }
44598
+ if(data1.required !== undefined){
44599
+ if(typeof data1.required !== "boolean"){
44600
+ const err12 = {instancePath:instancePath+"/bindings/" + i0+"/required",schemaPath:"#/properties/bindings/items/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
44601
+ if(vErrors === null){
44602
+ vErrors = [err12];
44603
+ }
44604
+ else {
44605
+ vErrors.push(err12);
44606
+ }
44607
+ errors++;
44608
+ }
44609
+ }
44610
+ if(data1.aliases !== undefined){
44611
+ let data5 = data1.aliases;
44612
+ if(Array.isArray(data5)){
44613
+ const len1 = data5.length;
44614
+ for(let i1=0; i1<len1; i1++){
44615
+ let data6 = data5[i1];
44616
+ if(typeof data6 === "string"){
44617
+ if(!pattern310.test(data6)){
44618
+ const err13 = {instancePath:instancePath+"/bindings/" + i0+"/aliases/" + i1,schemaPath:"#/$defs/BindingName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]*(_\\*)?$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]*(_\\*)?$"+"\""};
44619
+ if(vErrors === null){
44620
+ vErrors = [err13];
44621
+ }
44622
+ else {
44623
+ vErrors.push(err13);
44624
+ }
44625
+ errors++;
44626
+ }
44627
+ }
44628
+ else {
44629
+ const err14 = {instancePath:instancePath+"/bindings/" + i0+"/aliases/" + i1,schemaPath:"#/$defs/BindingName/type",keyword:"type",params:{type: "string"},message:"must be string"};
44630
+ if(vErrors === null){
44631
+ vErrors = [err14];
44632
+ }
44633
+ else {
44634
+ vErrors.push(err14);
44635
+ }
44636
+ errors++;
44637
+ }
44638
+ }
44639
+ }
44640
+ else {
44641
+ const err15 = {instancePath:instancePath+"/bindings/" + i0+"/aliases",schemaPath:"#/properties/bindings/items/properties/aliases/type",keyword:"type",params:{type: "array"},message:"must be array"};
44642
+ if(vErrors === null){
44643
+ vErrors = [err15];
44644
+ }
44645
+ else {
44646
+ vErrors.push(err15);
44647
+ }
44648
+ errors++;
44649
+ }
44650
+ }
44651
+ }
44652
+ else {
44653
+ const err16 = {instancePath:instancePath+"/bindings/" + i0,schemaPath:"#/properties/bindings/items/type",keyword:"type",params:{type: "object"},message:"must be object"};
44654
+ if(vErrors === null){
44655
+ vErrors = [err16];
44656
+ }
44657
+ else {
44658
+ vErrors.push(err16);
44659
+ }
44660
+ errors++;
44661
+ }
44662
+ }
44663
+ }
44664
+ else {
44665
+ const err17 = {instancePath:instancePath+"/bindings",schemaPath:"#/properties/bindings/type",keyword:"type",params:{type: "array"},message:"must be array"};
44666
+ if(vErrors === null){
44667
+ vErrors = [err17];
44668
+ }
44669
+ else {
44670
+ vErrors.push(err17);
44671
+ }
44672
+ errors++;
44673
+ }
44674
+ }
44675
+ if(data.vars !== undefined){
44676
+ let data7 = data.vars;
44677
+ if(Array.isArray(data7)){
44678
+ const len2 = data7.length;
44679
+ for(let i2=0; i2<len2; i2++){
44680
+ let data8 = data7[i2];
44681
+ if(typeof data8 === "string"){
44682
+ if(!pattern310.test(data8)){
44683
+ const err18 = {instancePath:instancePath+"/vars/" + i2,schemaPath:"#/$defs/BindingName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]*(_\\*)?$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]*(_\\*)?$"+"\""};
44684
+ if(vErrors === null){
44685
+ vErrors = [err18];
44686
+ }
44687
+ else {
44688
+ vErrors.push(err18);
44689
+ }
44690
+ errors++;
44691
+ }
44692
+ }
44693
+ else {
44694
+ const err19 = {instancePath:instancePath+"/vars/" + i2,schemaPath:"#/$defs/BindingName/type",keyword:"type",params:{type: "string"},message:"must be string"};
44695
+ if(vErrors === null){
44696
+ vErrors = [err19];
44697
+ }
44698
+ else {
44699
+ vErrors.push(err19);
44700
+ }
44701
+ errors++;
44702
+ }
44703
+ }
44704
+ let i3 = data7.length;
44705
+ let j0;
44706
+ if(i3 > 1){
44707
+ outer0:
44708
+ for(;i3--;){
44709
+ for(j0 = i3; j0--;){
44710
+ if(func0(data7[i3], data7[j0])){
44711
+ const err20 = {instancePath:instancePath+"/vars",schemaPath:"#/properties/vars/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i3+" are identical)"};
44712
+ if(vErrors === null){
44713
+ vErrors = [err20];
44714
+ }
44715
+ else {
44716
+ vErrors.push(err20);
44717
+ }
44718
+ errors++;
44719
+ break outer0;
44720
+ }
44721
+ }
44722
+ }
44723
+ }
44724
+ }
44725
+ else {
44726
+ const err21 = {instancePath:instancePath+"/vars",schemaPath:"#/properties/vars/type",keyword:"type",params:{type: "array"},message:"must be array"};
44727
+ if(vErrors === null){
44728
+ vErrors = [err21];
44729
+ }
44730
+ else {
44731
+ vErrors.push(err21);
44732
+ }
44733
+ errors++;
44734
+ }
44735
+ }
44736
+ if(data.secrets !== undefined){
44737
+ let data9 = data.secrets;
44738
+ if(Array.isArray(data9)){
44739
+ const len3 = data9.length;
44740
+ for(let i4=0; i4<len3; i4++){
44741
+ let data10 = data9[i4];
44742
+ if(typeof data10 !== "string"){
44743
+ const err22 = {instancePath:instancePath+"/secrets/" + i4,schemaPath:"#/$defs/SecretName/type",keyword:"type",params:{type: "string"},message:"must be string"};
44744
+ if(vErrors === null){
44745
+ vErrors = [err22];
44746
+ }
44747
+ else {
44748
+ vErrors.push(err22);
44749
+ }
44750
+ errors++;
44751
+ }
44752
+ if(!(((((((data10 === "BETTER_AUTH_SECRET") || (data10 === "MCP_STATE_KEY")) || (data10 === "CLOUDHAL_PREVIEW_SECRET")) || (data10 === "CLOUDHAL_PURGE_TOKEN")) || (data10 === "CLOUDHAL_DEPLOY_TOKEN")) || (data10 === "CLOUDHAL_SETUP_TOKEN")) || (data10 === "CLOUDHAL_COMMENTS_KEY"))){
44753
+ const err23 = {instancePath:instancePath+"/secrets/" + i4,schemaPath:"#/$defs/SecretName/enum",keyword:"enum",params:{allowedValues: schema591.enum},message:"must be equal to one of the allowed values"};
44754
+ if(vErrors === null){
44755
+ vErrors = [err23];
44756
+ }
44757
+ else {
44758
+ vErrors.push(err23);
44759
+ }
44760
+ errors++;
44761
+ }
44762
+ }
44763
+ let i5 = data9.length;
44764
+ let j1;
44765
+ if(i5 > 1){
44766
+ outer1:
44767
+ for(;i5--;){
44768
+ for(j1 = i5; j1--;){
44769
+ if(func0(data9[i5], data9[j1])){
44770
+ const err24 = {instancePath:instancePath+"/secrets",schemaPath:"#/properties/secrets/uniqueItems",keyword:"uniqueItems",params:{i: i5, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i5+" are identical)"};
44771
+ if(vErrors === null){
44772
+ vErrors = [err24];
44773
+ }
44774
+ else {
44775
+ vErrors.push(err24);
44776
+ }
44777
+ errors++;
44778
+ break outer1;
44779
+ }
44780
+ }
44781
+ }
44782
+ }
44783
+ }
44784
+ else {
44785
+ const err25 = {instancePath:instancePath+"/secrets",schemaPath:"#/properties/secrets/type",keyword:"type",params:{type: "array"},message:"must be array"};
44786
+ if(vErrors === null){
44787
+ vErrors = [err25];
44788
+ }
44789
+ else {
44790
+ vErrors.push(err25);
44791
+ }
44792
+ errors++;
44793
+ }
44794
+ }
44795
+ if(data.cache !== undefined){
44796
+ if(typeof data.cache !== "boolean"){
44797
+ const err26 = {instancePath:instancePath+"/cache",schemaPath:"#/properties/cache/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
44798
+ if(vErrors === null){
44799
+ vErrors = [err26];
44800
+ }
44801
+ else {
44802
+ vErrors.push(err26);
44803
+ }
44804
+ errors++;
44805
+ }
44806
+ }
44807
+ if(data.cron !== undefined){
44808
+ let data12 = data.cron;
44809
+ if(typeof data12 === "string"){
44810
+ if(!pattern330.test(data12)){
44811
+ const err27 = {instancePath:instancePath+"/cron",schemaPath:"#/properties/cron/pattern",keyword:"pattern",params:{pattern: "^[0-9*/,\\- ]+$"},message:"must match pattern \""+"^[0-9*/,\\- ]+$"+"\""};
44812
+ if(vErrors === null){
44813
+ vErrors = [err27];
44814
+ }
44815
+ else {
44816
+ vErrors.push(err27);
44817
+ }
44818
+ errors++;
44819
+ }
44820
+ }
44821
+ else {
44822
+ const err28 = {instancePath:instancePath+"/cron",schemaPath:"#/properties/cron/type",keyword:"type",params:{type: "string"},message:"must be string"};
44823
+ if(vErrors === null){
44824
+ vErrors = [err28];
44825
+ }
44826
+ else {
44827
+ vErrors.push(err28);
44828
+ }
44829
+ errors++;
44830
+ }
44831
+ }
44832
+ }
44833
+ else {
44834
+ const err29 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
44835
+ if(vErrors === null){
44836
+ vErrors = [err29];
44837
+ }
44838
+ else {
44839
+ vErrors.push(err29);
44840
+ }
44841
+ errors++;
44842
+ }
44843
+ validate249.errors = vErrors;
44844
+ return errors === 0;
44845
+ }
44846
+ validate249.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
44847
+
44848
+
44849
+ function validate245(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){
44850
+ /*# sourceURL="https://cloudhal.dev/schemas/v1/release-manifest.schema.json" */;
44851
+ let vErrors = null;
44852
+ let errors = 0;
44853
+ const evaluated0 = validate245.evaluated;
44854
+ if(evaluated0.dynamicProps){
44855
+ evaluated0.props = undefined;
44856
+ }
44857
+ if(evaluated0.dynamicItems){
44858
+ evaluated0.items = undefined;
44859
+ }
44860
+ if(data && typeof data == "object" && !Array.isArray(data)){
44861
+ if(data.schemaVersion === undefined){
44862
+ const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schemaVersion"},message:"must have required property '"+"schemaVersion"+"'"};
44863
+ if(vErrors === null){
44864
+ vErrors = [err0];
44865
+ }
44866
+ else {
44867
+ vErrors.push(err0);
44868
+ }
44869
+ errors++;
44870
+ }
44871
+ if(data.format === undefined){
44872
+ const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};
44873
+ if(vErrors === null){
44874
+ vErrors = [err1];
44875
+ }
44876
+ else {
44877
+ vErrors.push(err1);
44878
+ }
44879
+ errors++;
44880
+ }
44881
+ if(data.version === undefined){
44882
+ const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};
44883
+ if(vErrors === null){
44884
+ vErrors = [err2];
44885
+ }
44886
+ else {
44887
+ vErrors.push(err2);
44888
+ }
44889
+ errors++;
44890
+ }
44891
+ if(data.channel === undefined){
44892
+ const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "channel"},message:"must have required property '"+"channel"+"'"};
44893
+ if(vErrors === null){
44894
+ vErrors = [err3];
44895
+ }
44896
+ else {
44897
+ vErrors.push(err3);
44898
+ }
44899
+ errors++;
44900
+ }
44901
+ if(data.securityRelease === undefined){
44902
+ const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "securityRelease"},message:"must have required property '"+"securityRelease"+"'"};
44903
+ if(vErrors === null){
44904
+ vErrors = [err4];
44905
+ }
44906
+ else {
44907
+ vErrors.push(err4);
44908
+ }
44909
+ errors++;
44910
+ }
44911
+ if(data.commit === undefined){
44912
+ const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "commit"},message:"must have required property '"+"commit"+"'"};
44913
+ if(vErrors === null){
44914
+ vErrors = [err5];
44915
+ }
44916
+ else {
44917
+ vErrors.push(err5);
44918
+ }
44919
+ errors++;
44920
+ }
44921
+ if(data.createdAt === undefined){
44922
+ const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "createdAt"},message:"must have required property '"+"createdAt"+"'"};
44923
+ if(vErrors === null){
44924
+ vErrors = [err6];
44925
+ }
44926
+ else {
44927
+ vErrors.push(err6);
44928
+ }
44929
+ errors++;
44930
+ }
44931
+ if(data.contracts === undefined){
44932
+ const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "contracts"},message:"must have required property '"+"contracts"+"'"};
44933
+ if(vErrors === null){
44934
+ vErrors = [err7];
44935
+ }
44936
+ else {
44937
+ vErrors.push(err7);
44938
+ }
44939
+ errors++;
44940
+ }
44941
+ if(data.levels === undefined){
44942
+ const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "levels"},message:"must have required property '"+"levels"+"'"};
44943
+ if(vErrors === null){
44944
+ vErrors = [err8];
44945
+ }
44946
+ else {
44947
+ vErrors.push(err8);
44948
+ }
44949
+ errors++;
44950
+ }
44951
+ if(data.migrations === undefined){
44952
+ const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "migrations"},message:"must have required property '"+"migrations"+"'"};
44953
+ if(vErrors === null){
44954
+ vErrors = [err9];
44955
+ }
44956
+ else {
44957
+ vErrors.push(err9);
44958
+ }
44959
+ errors++;
44960
+ }
44961
+ if(data.durableObjects === undefined){
44962
+ const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "durableObjects"},message:"must have required property '"+"durableObjects"+"'"};
44963
+ if(vErrors === null){
44964
+ vErrors = [err10];
44965
+ }
44966
+ else {
44967
+ vErrors.push(err10);
44968
+ }
44969
+ errors++;
44970
+ }
44971
+ if(data.runtime === undefined){
44972
+ const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "runtime"},message:"must have required property '"+"runtime"+"'"};
44973
+ if(vErrors === null){
44974
+ vErrors = [err11];
44975
+ }
44976
+ else {
44977
+ vErrors.push(err11);
44978
+ }
44979
+ errors++;
44980
+ }
44981
+ if(data.toolchain === undefined){
44982
+ const err12 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "toolchain"},message:"must have required property '"+"toolchain"+"'"};
44983
+ if(vErrors === null){
44984
+ vErrors = [err12];
44985
+ }
44986
+ else {
44987
+ vErrors.push(err12);
44988
+ }
44989
+ errors++;
44990
+ }
44991
+ if(data.theme === undefined){
44992
+ const err13 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "theme"},message:"must have required property '"+"theme"+"'"};
44993
+ if(vErrors === null){
44994
+ vErrors = [err13];
44995
+ }
44996
+ else {
44997
+ vErrors.push(err13);
44998
+ }
44999
+ errors++;
45000
+ }
45001
+ if(data.skills === undefined){
45002
+ const err14 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "skills"},message:"must have required property '"+"skills"+"'"};
45003
+ if(vErrors === null){
45004
+ vErrors = [err14];
45005
+ }
45006
+ else {
45007
+ vErrors.push(err14);
45008
+ }
45009
+ errors++;
45010
+ }
45011
+ if(data.workers === undefined){
45012
+ const err15 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "workers"},message:"must have required property '"+"workers"+"'"};
45013
+ if(vErrors === null){
45014
+ vErrors = [err15];
45015
+ }
45016
+ else {
45017
+ vErrors.push(err15);
45018
+ }
45019
+ errors++;
45020
+ }
45021
+ if(data.bindingTemplates === undefined){
45022
+ const err16 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "bindingTemplates"},message:"must have required property '"+"bindingTemplates"+"'"};
45023
+ if(vErrors === null){
45024
+ vErrors = [err16];
45025
+ }
45026
+ else {
45027
+ vErrors.push(err16);
45028
+ }
45029
+ errors++;
45030
+ }
45031
+ if(data.requiredScopes === undefined){
45032
+ const err17 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requiredScopes"},message:"must have required property '"+"requiredScopes"+"'"};
45033
+ if(vErrors === null){
45034
+ vErrors = [err17];
45035
+ }
45036
+ else {
45037
+ vErrors.push(err17);
45038
+ }
45039
+ errors++;
45040
+ }
45041
+ if(data.optionalScopes === undefined){
45042
+ const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "optionalScopes"},message:"must have required property '"+"optionalScopes"+"'"};
45043
+ if(vErrors === null){
45044
+ vErrors = [err18];
45045
+ }
45046
+ else {
45047
+ vErrors.push(err18);
45048
+ }
45049
+ errors++;
45050
+ }
45051
+ if(data.requiredCapabilities === undefined){
45052
+ const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requiredCapabilities"},message:"must have required property '"+"requiredCapabilities"+"'"};
45053
+ if(vErrors === null){
45054
+ vErrors = [err19];
45055
+ }
45056
+ else {
45057
+ vErrors.push(err19);
45058
+ }
45059
+ errors++;
45060
+ }
45061
+ if(data.optionalCapabilities === undefined){
45062
+ const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "optionalCapabilities"},message:"must have required property '"+"optionalCapabilities"+"'"};
45063
+ if(vErrors === null){
45064
+ vErrors = [err20];
45065
+ }
45066
+ else {
45067
+ vErrors.push(err20);
45068
+ }
45069
+ errors++;
45070
+ }
45071
+ if(data.starter === undefined){
45072
+ const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "starter"},message:"must have required property '"+"starter"+"'"};
45073
+ if(vErrors === null){
45074
+ vErrors = [err21];
45075
+ }
45076
+ else {
45077
+ vErrors.push(err21);
45078
+ }
45079
+ errors++;
45080
+ }
45081
+ if(data.features === undefined){
45082
+ const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "features"},message:"must have required property '"+"features"+"'"};
45083
+ if(vErrors === null){
45084
+ vErrors = [err22];
45085
+ }
45086
+ else {
45087
+ vErrors.push(err22);
45088
+ }
45089
+ errors++;
45090
+ }
45091
+ if(data.planVersion === undefined){
45092
+ const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "planVersion"},message:"must have required property '"+"planVersion"+"'"};
45093
+ if(vErrors === null){
45094
+ vErrors = [err23];
45095
+ }
45096
+ else {
45097
+ vErrors.push(err23);
45098
+ }
45099
+ errors++;
45100
+ }
45101
+ if(data.signing === undefined){
45102
+ const err24 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "signing"},message:"must have required property '"+"signing"+"'"};
45103
+ if(vErrors === null){
45104
+ vErrors = [err24];
45105
+ }
45106
+ else {
45107
+ vErrors.push(err24);
45108
+ }
45109
+ errors++;
45110
+ }
45111
+ for(const key0 in data){
45112
+ if(!(func1.call(schema573.properties, key0))){
45113
+ const err25 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};
45114
+ if(vErrors === null){
45115
+ vErrors = [err25];
45116
+ }
45117
+ else {
45118
+ vErrors.push(err25);
45119
+ }
45120
+ errors++;
45121
+ }
45122
+ }
45123
+ if(data.schemaVersion !== undefined){
45124
+ let data0 = data.schemaVersion;
45125
+ if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){
45126
+ const err26 = {instancePath:instancePath+"/schemaVersion",schemaPath:"#/$defs/SchemaVersion/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
45127
+ if(vErrors === null){
45128
+ vErrors = [err26];
45129
+ }
45130
+ else {
45131
+ vErrors.push(err26);
45132
+ }
45133
+ errors++;
45134
+ }
45135
+ if(!(data0 === 1)){
45136
+ const err27 = {instancePath:instancePath+"/schemaVersion",schemaPath:"#/$defs/SchemaVersion/enum",keyword:"enum",params:{allowedValues: schema574.enum},message:"must be equal to one of the allowed values"};
45137
+ if(vErrors === null){
45138
+ vErrors = [err27];
45139
+ }
45140
+ else {
45141
+ vErrors.push(err27);
45142
+ }
45143
+ errors++;
45144
+ }
45145
+ }
45146
+ if(data.format !== undefined){
45147
+ let data1 = data.format;
45148
+ if(typeof data1 !== "string"){
45149
+ const err28 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"};
45150
+ if(vErrors === null){
45151
+ vErrors = [err28];
45152
+ }
45153
+ else {
45154
+ vErrors.push(err28);
45155
+ }
45156
+ errors++;
45157
+ }
45158
+ if(!(data1 === "cloudhal.release-manifest@1")){
45159
+ const err29 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues: schema573.properties.format.enum},message:"must be equal to one of the allowed values"};
45160
+ if(vErrors === null){
45161
+ vErrors = [err29];
45162
+ }
45163
+ else {
45164
+ vErrors.push(err29);
45165
+ }
45166
+ errors++;
45167
+ }
45168
+ }
45169
+ if(data.version !== undefined){
45170
+ let data2 = data.version;
45171
+ if(typeof data2 === "string"){
45172
+ if(!pattern305.test(data2)){
45173
+ const err30 = {instancePath:instancePath+"/version",schemaPath:"#/$defs/CloudhalVersion/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"+"\""};
45174
+ if(vErrors === null){
45175
+ vErrors = [err30];
45176
+ }
45177
+ else {
45178
+ vErrors.push(err30);
45179
+ }
45180
+ errors++;
45181
+ }
45182
+ }
45183
+ else {
45184
+ const err31 = {instancePath:instancePath+"/version",schemaPath:"#/$defs/CloudhalVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};
45185
+ if(vErrors === null){
45186
+ vErrors = [err31];
45187
+ }
45188
+ else {
45189
+ vErrors.push(err31);
45190
+ }
45191
+ errors++;
45192
+ }
45193
+ }
45194
+ if(data.channel !== undefined){
45195
+ let data3 = data.channel;
45196
+ if(typeof data3 !== "string"){
45197
+ const err32 = {instancePath:instancePath+"/channel",schemaPath:"#/properties/channel/type",keyword:"type",params:{type: "string"},message:"must be string"};
45198
+ if(vErrors === null){
45199
+ vErrors = [err32];
45200
+ }
45201
+ else {
45202
+ vErrors.push(err32);
45203
+ }
45204
+ errors++;
45205
+ }
45206
+ if(!((data3 === "stable") || (data3 === "next"))){
45207
+ const err33 = {instancePath:instancePath+"/channel",schemaPath:"#/properties/channel/enum",keyword:"enum",params:{allowedValues: schema573.properties.channel.enum},message:"must be equal to one of the allowed values"};
45208
+ if(vErrors === null){
45209
+ vErrors = [err33];
45210
+ }
45211
+ else {
45212
+ vErrors.push(err33);
45213
+ }
45214
+ errors++;
45215
+ }
45216
+ }
45217
+ if(data.securityRelease !== undefined){
45218
+ if(typeof data.securityRelease !== "boolean"){
45219
+ const err34 = {instancePath:instancePath+"/securityRelease",schemaPath:"#/properties/securityRelease/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
45220
+ if(vErrors === null){
45221
+ vErrors = [err34];
45222
+ }
45223
+ else {
45224
+ vErrors.push(err34);
45225
+ }
45226
+ errors++;
45227
+ }
45228
+ }
45229
+ if(data.commit !== undefined){
45230
+ let data5 = data.commit;
45231
+ if(typeof data5 === "string"){
45232
+ if(!pattern306.test(data5)){
45233
+ const err35 = {instancePath:instancePath+"/commit",schemaPath:"#/properties/commit/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{40}$"},message:"must match pattern \""+"^[0-9a-f]{40}$"+"\""};
45234
+ if(vErrors === null){
45235
+ vErrors = [err35];
45236
+ }
45237
+ else {
45238
+ vErrors.push(err35);
45239
+ }
45240
+ errors++;
45241
+ }
45242
+ }
45243
+ else {
45244
+ const err36 = {instancePath:instancePath+"/commit",schemaPath:"#/properties/commit/type",keyword:"type",params:{type: "string"},message:"must be string"};
45245
+ if(vErrors === null){
45246
+ vErrors = [err36];
45247
+ }
45248
+ else {
45249
+ vErrors.push(err36);
45250
+ }
45251
+ errors++;
45252
+ }
45253
+ }
45254
+ if(data.createdAt !== undefined){
45255
+ let data6 = data.createdAt;
45256
+ if(typeof data6 === "string"){
45257
+ if(!(formats0.validate(data6))){
45258
+ const err37 = {instancePath:instancePath+"/createdAt",schemaPath:"#/$defs/Timestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};
45259
+ if(vErrors === null){
45260
+ vErrors = [err37];
45261
+ }
45262
+ else {
45263
+ vErrors.push(err37);
45264
+ }
45265
+ errors++;
45266
+ }
45267
+ }
45268
+ else {
45269
+ const err38 = {instancePath:instancePath+"/createdAt",schemaPath:"#/$defs/Timestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};
45270
+ if(vErrors === null){
45271
+ vErrors = [err38];
45272
+ }
45273
+ else {
45274
+ vErrors.push(err38);
45275
+ }
45276
+ errors++;
45277
+ }
45278
+ }
45279
+ if(data.contracts !== undefined){
45280
+ let data7 = data.contracts;
45281
+ if(data7 && typeof data7 == "object" && !Array.isArray(data7)){
45282
+ if(data7.schemaVersion === undefined){
45283
+ const err39 = {instancePath:instancePath+"/contracts",schemaPath:"#/properties/contracts/required",keyword:"required",params:{missingProperty: "schemaVersion"},message:"must have required property '"+"schemaVersion"+"'"};
45284
+ if(vErrors === null){
45285
+ vErrors = [err39];
45286
+ }
45287
+ else {
45288
+ vErrors.push(err39);
45289
+ }
45290
+ errors++;
45291
+ }
45292
+ for(const key1 in data7){
45293
+ if(!(key1 === "schemaVersion")){
45294
+ const err40 = {instancePath:instancePath+"/contracts",schemaPath:"#/properties/contracts/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};
45295
+ if(vErrors === null){
45296
+ vErrors = [err40];
45297
+ }
45298
+ else {
45299
+ vErrors.push(err40);
45300
+ }
45301
+ errors++;
45302
+ }
45303
+ }
45304
+ if(data7.schemaVersion !== undefined){
45305
+ let data8 = data7.schemaVersion;
45306
+ if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){
45307
+ const err41 = {instancePath:instancePath+"/contracts/schemaVersion",schemaPath:"#/properties/contracts/properties/schemaVersion/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
45308
+ if(vErrors === null){
45309
+ vErrors = [err41];
45310
+ }
45311
+ else {
45312
+ vErrors.push(err41);
45313
+ }
45314
+ errors++;
45315
+ }
45316
+ if(!(data8 === 1)){
45317
+ const err42 = {instancePath:instancePath+"/contracts/schemaVersion",schemaPath:"#/properties/contracts/properties/schemaVersion/enum",keyword:"enum",params:{allowedValues: schema573.properties.contracts.properties.schemaVersion.enum},message:"must be equal to one of the allowed values"};
45318
+ if(vErrors === null){
45319
+ vErrors = [err42];
45320
+ }
45321
+ else {
45322
+ vErrors.push(err42);
45323
+ }
45324
+ errors++;
45325
+ }
45326
+ }
45327
+ }
45328
+ else {
45329
+ const err43 = {instancePath:instancePath+"/contracts",schemaPath:"#/properties/contracts/type",keyword:"type",params:{type: "object"},message:"must be object"};
45330
+ if(vErrors === null){
45331
+ vErrors = [err43];
45332
+ }
45333
+ else {
45334
+ vErrors.push(err43);
45335
+ }
45336
+ errors++;
45337
+ }
45338
+ }
45339
+ if(data.levels !== undefined){
45340
+ let data9 = data.levels;
45341
+ if(data9 && typeof data9 == "object" && !Array.isArray(data9)){
45342
+ if(data9.schedules === undefined){
45343
+ const err44 = {instancePath:instancePath+"/levels",schemaPath:"#/properties/levels/required",keyword:"required",params:{missingProperty: "schedules"},message:"must have required property '"+"schedules"+"'"};
45344
+ if(vErrors === null){
45345
+ vErrors = [err44];
45346
+ }
45347
+ else {
45348
+ vErrors.push(err44);
45349
+ }
45350
+ errors++;
45351
+ }
45352
+ if(data9.gates === undefined){
45353
+ const err45 = {instancePath:instancePath+"/levels",schemaPath:"#/properties/levels/required",keyword:"required",params:{missingProperty: "gates"},message:"must have required property '"+"gates"+"'"};
45354
+ if(vErrors === null){
45355
+ vErrors = [err45];
45356
+ }
45357
+ else {
45358
+ vErrors.push(err45);
45359
+ }
45360
+ errors++;
45361
+ }
45362
+ for(const key2 in data9){
45363
+ if(!((key2 === "schedules") || (key2 === "gates"))){
45364
+ const err46 = {instancePath:instancePath+"/levels",schemaPath:"#/properties/levels/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};
45365
+ if(vErrors === null){
45366
+ vErrors = [err46];
45367
+ }
45368
+ else {
45369
+ vErrors.push(err46);
45370
+ }
45371
+ errors++;
45372
+ }
45373
+ }
45374
+ if(data9.schedules !== undefined){
45375
+ let data10 = data9.schedules;
45376
+ if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){
45377
+ const err47 = {instancePath:instancePath+"/levels/schedules",schemaPath:"#/properties/levels/properties/schedules/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
45378
+ if(vErrors === null){
45379
+ vErrors = [err47];
45380
+ }
45381
+ else {
45382
+ vErrors.push(err47);
45383
+ }
45384
+ errors++;
45385
+ }
45386
+ if((typeof data10 == "number") && (isFinite(data10))){
45387
+ if(data10 < 0 || isNaN(data10)){
45388
+ const err48 = {instancePath:instancePath+"/levels/schedules",schemaPath:"#/properties/levels/properties/schedules/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};
45389
+ if(vErrors === null){
45390
+ vErrors = [err48];
45391
+ }
45392
+ else {
45393
+ vErrors.push(err48);
45394
+ }
45395
+ errors++;
45396
+ }
45397
+ }
45398
+ }
45399
+ if(data9.gates !== undefined){
45400
+ let data11 = data9.gates;
45401
+ if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){
45402
+ const err49 = {instancePath:instancePath+"/levels/gates",schemaPath:"#/properties/levels/properties/gates/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
45403
+ if(vErrors === null){
45404
+ vErrors = [err49];
45405
+ }
45406
+ else {
45407
+ vErrors.push(err49);
45408
+ }
45409
+ errors++;
45410
+ }
45411
+ if((typeof data11 == "number") && (isFinite(data11))){
45412
+ if(data11 < 0 || isNaN(data11)){
45413
+ const err50 = {instancePath:instancePath+"/levels/gates",schemaPath:"#/properties/levels/properties/gates/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};
45414
+ if(vErrors === null){
45415
+ vErrors = [err50];
45416
+ }
45417
+ else {
45418
+ vErrors.push(err50);
45419
+ }
45420
+ errors++;
45421
+ }
45422
+ }
45423
+ }
45424
+ }
45425
+ else {
45426
+ const err51 = {instancePath:instancePath+"/levels",schemaPath:"#/properties/levels/type",keyword:"type",params:{type: "object"},message:"must be object"};
45427
+ if(vErrors === null){
45428
+ vErrors = [err51];
45429
+ }
45430
+ else {
45431
+ vErrors.push(err51);
45432
+ }
45433
+ errors++;
45434
+ }
45435
+ }
45436
+ if(data.migrations !== undefined){
45437
+ let data12 = data.migrations;
45438
+ if(data12 && typeof data12 == "object" && !Array.isArray(data12)){
45439
+ if(data12.first === undefined){
45440
+ const err52 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/required",keyword:"required",params:{missingProperty: "first"},message:"must have required property '"+"first"+"'"};
45441
+ if(vErrors === null){
45442
+ vErrors = [err52];
45443
+ }
45444
+ else {
45445
+ vErrors.push(err52);
45446
+ }
45447
+ errors++;
45448
+ }
45449
+ if(data12.last === undefined){
45450
+ const err53 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/required",keyword:"required",params:{missingProperty: "last"},message:"must have required property '"+"last"+"'"};
45451
+ if(vErrors === null){
45452
+ vErrors = [err53];
45453
+ }
45454
+ else {
45455
+ vErrors.push(err53);
45456
+ }
45457
+ errors++;
45458
+ }
45459
+ if(data12.count === undefined){
45460
+ const err54 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/required",keyword:"required",params:{missingProperty: "count"},message:"must have required property '"+"count"+"'"};
45461
+ if(vErrors === null){
45462
+ vErrors = [err54];
45463
+ }
45464
+ else {
45465
+ vErrors.push(err54);
45466
+ }
45467
+ errors++;
45468
+ }
45469
+ if(data12.names === undefined){
45470
+ const err55 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/required",keyword:"required",params:{missingProperty: "names"},message:"must have required property '"+"names"+"'"};
45471
+ if(vErrors === null){
45472
+ vErrors = [err55];
45473
+ }
45474
+ else {
45475
+ vErrors.push(err55);
45476
+ }
45477
+ errors++;
45478
+ }
45479
+ if(data12.compatibleWithPrevious === undefined){
45480
+ const err56 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/required",keyword:"required",params:{missingProperty: "compatibleWithPrevious"},message:"must have required property '"+"compatibleWithPrevious"+"'"};
45481
+ if(vErrors === null){
45482
+ vErrors = [err56];
45483
+ }
45484
+ else {
45485
+ vErrors.push(err56);
45486
+ }
45487
+ errors++;
45488
+ }
45489
+ for(const key3 in data12){
45490
+ if(!(((((key3 === "first") || (key3 === "last")) || (key3 === "count")) || (key3 === "names")) || (key3 === "compatibleWithPrevious"))){
45491
+ const err57 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};
45492
+ if(vErrors === null){
45493
+ vErrors = [err57];
45494
+ }
45495
+ else {
45496
+ vErrors.push(err57);
45497
+ }
45498
+ errors++;
45499
+ }
45500
+ }
45501
+ if(data12.first !== undefined){
45502
+ let data13 = data12.first;
45503
+ if(typeof data13 === "string"){
45504
+ if(!pattern307.test(data13)){
45505
+ const err58 = {instancePath:instancePath+"/migrations/first",schemaPath:"#/$defs/MigrationName/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}_[a-z0-9_]+$"},message:"must match pattern \""+"^[0-9]{4}_[a-z0-9_]+$"+"\""};
45506
+ if(vErrors === null){
45507
+ vErrors = [err58];
45508
+ }
45509
+ else {
45510
+ vErrors.push(err58);
45511
+ }
45512
+ errors++;
45513
+ }
45514
+ }
45515
+ else {
45516
+ const err59 = {instancePath:instancePath+"/migrations/first",schemaPath:"#/$defs/MigrationName/type",keyword:"type",params:{type: "string"},message:"must be string"};
45517
+ if(vErrors === null){
45518
+ vErrors = [err59];
45519
+ }
45520
+ else {
45521
+ vErrors.push(err59);
45522
+ }
45523
+ errors++;
45524
+ }
45525
+ }
45526
+ if(data12.last !== undefined){
45527
+ let data14 = data12.last;
45528
+ if(typeof data14 === "string"){
45529
+ if(!pattern307.test(data14)){
45530
+ const err60 = {instancePath:instancePath+"/migrations/last",schemaPath:"#/$defs/MigrationName/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}_[a-z0-9_]+$"},message:"must match pattern \""+"^[0-9]{4}_[a-z0-9_]+$"+"\""};
45531
+ if(vErrors === null){
45532
+ vErrors = [err60];
45533
+ }
45534
+ else {
45535
+ vErrors.push(err60);
45536
+ }
45537
+ errors++;
45538
+ }
45539
+ }
45540
+ else {
45541
+ const err61 = {instancePath:instancePath+"/migrations/last",schemaPath:"#/$defs/MigrationName/type",keyword:"type",params:{type: "string"},message:"must be string"};
45542
+ if(vErrors === null){
45543
+ vErrors = [err61];
45544
+ }
45545
+ else {
45546
+ vErrors.push(err61);
45547
+ }
45548
+ errors++;
45549
+ }
45550
+ }
45551
+ if(data12.count !== undefined){
45552
+ let data15 = data12.count;
45553
+ if(!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))){
45554
+ const err62 = {instancePath:instancePath+"/migrations/count",schemaPath:"#/properties/migrations/properties/count/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
45555
+ if(vErrors === null){
45556
+ vErrors = [err62];
45557
+ }
45558
+ else {
45559
+ vErrors.push(err62);
45560
+ }
45561
+ errors++;
45562
+ }
45563
+ if((typeof data15 == "number") && (isFinite(data15))){
45564
+ if(data15 < 1 || isNaN(data15)){
45565
+ const err63 = {instancePath:instancePath+"/migrations/count",schemaPath:"#/properties/migrations/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};
45566
+ if(vErrors === null){
45567
+ vErrors = [err63];
45568
+ }
45569
+ else {
45570
+ vErrors.push(err63);
45571
+ }
45572
+ errors++;
45573
+ }
45574
+ }
45575
+ }
45576
+ if(data12.names !== undefined){
45577
+ let data16 = data12.names;
45578
+ if(Array.isArray(data16)){
45579
+ if(data16.length < 1){
45580
+ const err64 = {instancePath:instancePath+"/migrations/names",schemaPath:"#/properties/migrations/properties/names/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};
45581
+ if(vErrors === null){
45582
+ vErrors = [err64];
45583
+ }
45584
+ else {
45585
+ vErrors.push(err64);
45586
+ }
45587
+ errors++;
45588
+ }
45589
+ const len0 = data16.length;
45590
+ for(let i0=0; i0<len0; i0++){
45591
+ let data17 = data16[i0];
45592
+ if(typeof data17 === "string"){
45593
+ if(!pattern307.test(data17)){
45594
+ const err65 = {instancePath:instancePath+"/migrations/names/" + i0,schemaPath:"#/$defs/MigrationName/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}_[a-z0-9_]+$"},message:"must match pattern \""+"^[0-9]{4}_[a-z0-9_]+$"+"\""};
45595
+ if(vErrors === null){
45596
+ vErrors = [err65];
45597
+ }
45598
+ else {
45599
+ vErrors.push(err65);
45600
+ }
45601
+ errors++;
45602
+ }
45603
+ }
45604
+ else {
45605
+ const err66 = {instancePath:instancePath+"/migrations/names/" + i0,schemaPath:"#/$defs/MigrationName/type",keyword:"type",params:{type: "string"},message:"must be string"};
45606
+ if(vErrors === null){
45607
+ vErrors = [err66];
45608
+ }
45609
+ else {
45610
+ vErrors.push(err66);
45611
+ }
45612
+ errors++;
45613
+ }
45614
+ }
45615
+ let i1 = data16.length;
45616
+ let j0;
45617
+ if(i1 > 1){
45618
+ outer0:
45619
+ for(;i1--;){
45620
+ for(j0 = i1; j0--;){
45621
+ if(func0(data16[i1], data16[j0])){
45622
+ const err67 = {instancePath:instancePath+"/migrations/names",schemaPath:"#/properties/migrations/properties/names/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"};
45623
+ if(vErrors === null){
45624
+ vErrors = [err67];
45625
+ }
45626
+ else {
45627
+ vErrors.push(err67);
45628
+ }
45629
+ errors++;
45630
+ break outer0;
45631
+ }
45632
+ }
45633
+ }
45634
+ }
45635
+ }
45636
+ else {
45637
+ const err68 = {instancePath:instancePath+"/migrations/names",schemaPath:"#/properties/migrations/properties/names/type",keyword:"type",params:{type: "array"},message:"must be array"};
45638
+ if(vErrors === null){
45639
+ vErrors = [err68];
45640
+ }
45641
+ else {
45642
+ vErrors.push(err68);
45643
+ }
45644
+ errors++;
45645
+ }
45646
+ }
45647
+ if(data12.compatibleWithPrevious !== undefined){
45648
+ if(typeof data12.compatibleWithPrevious !== "boolean"){
45649
+ const err69 = {instancePath:instancePath+"/migrations/compatibleWithPrevious",schemaPath:"#/properties/migrations/properties/compatibleWithPrevious/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
45650
+ if(vErrors === null){
45651
+ vErrors = [err69];
45652
+ }
45653
+ else {
45654
+ vErrors.push(err69);
45655
+ }
45656
+ errors++;
45657
+ }
45658
+ }
45659
+ }
45660
+ else {
45661
+ const err70 = {instancePath:instancePath+"/migrations",schemaPath:"#/properties/migrations/type",keyword:"type",params:{type: "object"},message:"must be object"};
45662
+ if(vErrors === null){
45663
+ vErrors = [err70];
45664
+ }
45665
+ else {
45666
+ vErrors.push(err70);
45667
+ }
45668
+ errors++;
45669
+ }
45670
+ }
45671
+ if(data.durableObjects !== undefined){
45672
+ let data19 = data.durableObjects;
45673
+ if(data19 && typeof data19 == "object" && !Array.isArray(data19)){
45674
+ if(data19.bindings === undefined){
45675
+ const err71 = {instancePath:instancePath+"/durableObjects",schemaPath:"#/properties/durableObjects/required",keyword:"required",params:{missingProperty: "bindings"},message:"must have required property '"+"bindings"+"'"};
45676
+ if(vErrors === null){
45677
+ vErrors = [err71];
45678
+ }
45679
+ else {
45680
+ vErrors.push(err71);
45681
+ }
45682
+ errors++;
45683
+ }
45684
+ if(data19.lifecycleChange === undefined){
45685
+ const err72 = {instancePath:instancePath+"/durableObjects",schemaPath:"#/properties/durableObjects/required",keyword:"required",params:{missingProperty: "lifecycleChange"},message:"must have required property '"+"lifecycleChange"+"'"};
45686
+ if(vErrors === null){
45687
+ vErrors = [err72];
45688
+ }
45689
+ else {
45690
+ vErrors.push(err72);
45691
+ }
45692
+ errors++;
45693
+ }
45694
+ for(const key4 in data19){
45695
+ if(!((key4 === "bindings") || (key4 === "lifecycleChange"))){
45696
+ const err73 = {instancePath:instancePath+"/durableObjects",schemaPath:"#/properties/durableObjects/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};
45697
+ if(vErrors === null){
45698
+ vErrors = [err73];
45699
+ }
45700
+ else {
45701
+ vErrors.push(err73);
45702
+ }
45703
+ errors++;
45704
+ }
45705
+ }
45706
+ if(data19.bindings !== undefined){
45707
+ let data20 = data19.bindings;
45708
+ if(Array.isArray(data20)){
45709
+ const len1 = data20.length;
45710
+ for(let i2=0; i2<len1; i2++){
45711
+ let data21 = data20[i2];
45712
+ if(data21 && typeof data21 == "object" && !Array.isArray(data21)){
45713
+ if(data21.name === undefined){
45714
+ const err74 = {instancePath:instancePath+"/durableObjects/bindings/" + i2,schemaPath:"#/properties/durableObjects/properties/bindings/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
45715
+ if(vErrors === null){
45716
+ vErrors = [err74];
45717
+ }
45718
+ else {
45719
+ vErrors.push(err74);
45720
+ }
45721
+ errors++;
45722
+ }
45723
+ if(data21.className === undefined){
45724
+ const err75 = {instancePath:instancePath+"/durableObjects/bindings/" + i2,schemaPath:"#/properties/durableObjects/properties/bindings/items/required",keyword:"required",params:{missingProperty: "className"},message:"must have required property '"+"className"+"'"};
45725
+ if(vErrors === null){
45726
+ vErrors = [err75];
45727
+ }
45728
+ else {
45729
+ vErrors.push(err75);
45730
+ }
45731
+ errors++;
45732
+ }
45733
+ if(data21.migration === undefined){
45734
+ const err76 = {instancePath:instancePath+"/durableObjects/bindings/" + i2,schemaPath:"#/properties/durableObjects/properties/bindings/items/required",keyword:"required",params:{missingProperty: "migration"},message:"must have required property '"+"migration"+"'"};
45735
+ if(vErrors === null){
45736
+ vErrors = [err76];
45737
+ }
45738
+ else {
45739
+ vErrors.push(err76);
45740
+ }
45741
+ errors++;
45742
+ }
45743
+ for(const key5 in data21){
45744
+ if(!(((key5 === "name") || (key5 === "className")) || (key5 === "migration"))){
45745
+ const err77 = {instancePath:instancePath+"/durableObjects/bindings/" + i2,schemaPath:"#/properties/durableObjects/properties/bindings/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};
45746
+ if(vErrors === null){
45747
+ vErrors = [err77];
45748
+ }
45749
+ else {
45750
+ vErrors.push(err77);
45751
+ }
45752
+ errors++;
45753
+ }
45754
+ }
45755
+ if(data21.name !== undefined){
45756
+ let data22 = data21.name;
45757
+ if(typeof data22 === "string"){
45758
+ if(!pattern310.test(data22)){
45759
+ const err78 = {instancePath:instancePath+"/durableObjects/bindings/" + i2+"/name",schemaPath:"#/$defs/BindingName/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Z0-9_]*(_\\*)?$"},message:"must match pattern \""+"^[A-Z][A-Z0-9_]*(_\\*)?$"+"\""};
45760
+ if(vErrors === null){
45761
+ vErrors = [err78];
45762
+ }
45763
+ else {
45764
+ vErrors.push(err78);
45765
+ }
45766
+ errors++;
45767
+ }
45768
+ }
45769
+ else {
45770
+ const err79 = {instancePath:instancePath+"/durableObjects/bindings/" + i2+"/name",schemaPath:"#/$defs/BindingName/type",keyword:"type",params:{type: "string"},message:"must be string"};
45771
+ if(vErrors === null){
45772
+ vErrors = [err79];
45773
+ }
45774
+ else {
45775
+ vErrors.push(err79);
45776
+ }
45777
+ errors++;
45778
+ }
45779
+ }
45780
+ if(data21.className !== undefined){
45781
+ let data23 = data21.className;
45782
+ if(typeof data23 === "string"){
45783
+ if(!pattern311.test(data23)){
45784
+ const err80 = {instancePath:instancePath+"/durableObjects/bindings/" + i2+"/className",schemaPath:"#/properties/durableObjects/properties/bindings/items/properties/className/pattern",keyword:"pattern",params:{pattern: "^[A-Z][A-Za-z0-9]*$"},message:"must match pattern \""+"^[A-Z][A-Za-z0-9]*$"+"\""};
45785
+ if(vErrors === null){
45786
+ vErrors = [err80];
45787
+ }
45788
+ else {
45789
+ vErrors.push(err80);
45790
+ }
45791
+ errors++;
45792
+ }
45793
+ }
45794
+ else {
45795
+ const err81 = {instancePath:instancePath+"/durableObjects/bindings/" + i2+"/className",schemaPath:"#/properties/durableObjects/properties/bindings/items/properties/className/type",keyword:"type",params:{type: "string"},message:"must be string"};
45796
+ if(vErrors === null){
45797
+ vErrors = [err81];
45798
+ }
45799
+ else {
45800
+ vErrors.push(err81);
45801
+ }
45802
+ errors++;
45803
+ }
45804
+ }
45805
+ if(data21.migration !== undefined){
45806
+ let data24 = data21.migration;
45807
+ if(typeof data24 === "string"){
45808
+ if(!pattern312.test(data24)){
45809
+ const err82 = {instancePath:instancePath+"/durableObjects/bindings/" + i2+"/migration",schemaPath:"#/properties/durableObjects/properties/bindings/items/properties/migration/pattern",keyword:"pattern",params:{pattern: "^v[1-9][0-9]*$"},message:"must match pattern \""+"^v[1-9][0-9]*$"+"\""};
45810
+ if(vErrors === null){
45811
+ vErrors = [err82];
45812
+ }
45813
+ else {
45814
+ vErrors.push(err82);
45815
+ }
45816
+ errors++;
45817
+ }
45818
+ }
45819
+ else {
45820
+ const err83 = {instancePath:instancePath+"/durableObjects/bindings/" + i2+"/migration",schemaPath:"#/properties/durableObjects/properties/bindings/items/properties/migration/type",keyword:"type",params:{type: "string"},message:"must be string"};
45821
+ if(vErrors === null){
45822
+ vErrors = [err83];
45823
+ }
45824
+ else {
45825
+ vErrors.push(err83);
45826
+ }
45827
+ errors++;
45828
+ }
45829
+ }
45830
+ }
45831
+ else {
45832
+ const err84 = {instancePath:instancePath+"/durableObjects/bindings/" + i2,schemaPath:"#/properties/durableObjects/properties/bindings/items/type",keyword:"type",params:{type: "object"},message:"must be object"};
45833
+ if(vErrors === null){
45834
+ vErrors = [err84];
45835
+ }
45836
+ else {
45837
+ vErrors.push(err84);
45838
+ }
45839
+ errors++;
45840
+ }
45841
+ }
45842
+ }
45843
+ else {
45844
+ const err85 = {instancePath:instancePath+"/durableObjects/bindings",schemaPath:"#/properties/durableObjects/properties/bindings/type",keyword:"type",params:{type: "array"},message:"must be array"};
45845
+ if(vErrors === null){
45846
+ vErrors = [err85];
45847
+ }
45848
+ else {
45849
+ vErrors.push(err85);
45850
+ }
45851
+ errors++;
45852
+ }
45853
+ }
45854
+ if(data19.lifecycleChange !== undefined){
45855
+ if(typeof data19.lifecycleChange !== "boolean"){
45856
+ const err86 = {instancePath:instancePath+"/durableObjects/lifecycleChange",schemaPath:"#/properties/durableObjects/properties/lifecycleChange/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
45857
+ if(vErrors === null){
45858
+ vErrors = [err86];
45859
+ }
45860
+ else {
45861
+ vErrors.push(err86);
45862
+ }
45863
+ errors++;
45864
+ }
45865
+ }
45866
+ }
45867
+ else {
45868
+ const err87 = {instancePath:instancePath+"/durableObjects",schemaPath:"#/properties/durableObjects/type",keyword:"type",params:{type: "object"},message:"must be object"};
45869
+ if(vErrors === null){
45870
+ vErrors = [err87];
45871
+ }
45872
+ else {
45873
+ vErrors.push(err87);
45874
+ }
45875
+ errors++;
45876
+ }
45877
+ }
45878
+ if(data.runtime !== undefined){
45879
+ let data26 = data.runtime;
45880
+ if(data26 && typeof data26 == "object" && !Array.isArray(data26)){
45881
+ if(data26.compatibilityDate === undefined){
45882
+ const err88 = {instancePath:instancePath+"/runtime",schemaPath:"#/properties/runtime/required",keyword:"required",params:{missingProperty: "compatibilityDate"},message:"must have required property '"+"compatibilityDate"+"'"};
45883
+ if(vErrors === null){
45884
+ vErrors = [err88];
45885
+ }
45886
+ else {
45887
+ vErrors.push(err88);
45888
+ }
45889
+ errors++;
45890
+ }
45891
+ if(data26.compatibilityFlags === undefined){
45892
+ const err89 = {instancePath:instancePath+"/runtime",schemaPath:"#/properties/runtime/required",keyword:"required",params:{missingProperty: "compatibilityFlags"},message:"must have required property '"+"compatibilityFlags"+"'"};
45893
+ if(vErrors === null){
45894
+ vErrors = [err89];
45895
+ }
45896
+ else {
45897
+ vErrors.push(err89);
45898
+ }
45899
+ errors++;
45900
+ }
45901
+ for(const key6 in data26){
45902
+ if(!((key6 === "compatibilityDate") || (key6 === "compatibilityFlags"))){
45903
+ const err90 = {instancePath:instancePath+"/runtime",schemaPath:"#/properties/runtime/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};
45904
+ if(vErrors === null){
45905
+ vErrors = [err90];
45906
+ }
45907
+ else {
45908
+ vErrors.push(err90);
45909
+ }
45910
+ errors++;
45911
+ }
45912
+ }
45913
+ if(data26.compatibilityDate !== undefined){
45914
+ let data27 = data26.compatibilityDate;
45915
+ if(typeof data27 === "string"){
45916
+ if(!pattern313.test(data27)){
45917
+ const err91 = {instancePath:instancePath+"/runtime/compatibilityDate",schemaPath:"#/properties/runtime/properties/compatibilityDate/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},message:"must match pattern \""+"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"+"\""};
45918
+ if(vErrors === null){
45919
+ vErrors = [err91];
45920
+ }
45921
+ else {
45922
+ vErrors.push(err91);
45923
+ }
45924
+ errors++;
45925
+ }
45926
+ }
45927
+ else {
45928
+ const err92 = {instancePath:instancePath+"/runtime/compatibilityDate",schemaPath:"#/properties/runtime/properties/compatibilityDate/type",keyword:"type",params:{type: "string"},message:"must be string"};
45929
+ if(vErrors === null){
45930
+ vErrors = [err92];
45931
+ }
45932
+ else {
45933
+ vErrors.push(err92);
45934
+ }
45935
+ errors++;
45936
+ }
45937
+ }
45938
+ if(data26.compatibilityFlags !== undefined){
45939
+ let data28 = data26.compatibilityFlags;
45940
+ if(Array.isArray(data28)){
45941
+ const len2 = data28.length;
45942
+ for(let i3=0; i3<len2; i3++){
45943
+ let data29 = data28[i3];
45944
+ if(typeof data29 === "string"){
45945
+ if(!pattern314.test(data29)){
45946
+ const err93 = {instancePath:instancePath+"/runtime/compatibilityFlags/" + i3,schemaPath:"#/properties/runtime/properties/compatibilityFlags/items/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9_]+$"},message:"must match pattern \""+"^[a-z0-9_]+$"+"\""};
45947
+ if(vErrors === null){
45948
+ vErrors = [err93];
45949
+ }
45950
+ else {
45951
+ vErrors.push(err93);
45952
+ }
45953
+ errors++;
45954
+ }
45955
+ }
45956
+ else {
45957
+ const err94 = {instancePath:instancePath+"/runtime/compatibilityFlags/" + i3,schemaPath:"#/properties/runtime/properties/compatibilityFlags/items/type",keyword:"type",params:{type: "string"},message:"must be string"};
45958
+ if(vErrors === null){
45959
+ vErrors = [err94];
45960
+ }
45961
+ else {
45962
+ vErrors.push(err94);
45963
+ }
45964
+ errors++;
45965
+ }
45966
+ }
45967
+ let i4 = data28.length;
45968
+ let j1;
45969
+ if(i4 > 1){
45970
+ const indices0 = {};
45971
+ for(;i4--;){
45972
+ let item0 = data28[i4];
45973
+ if(typeof item0 !== "string"){
45974
+ continue;
45975
+ }
45976
+ if(typeof indices0[item0] == "number"){
45977
+ j1 = indices0[item0];
45978
+ const err95 = {instancePath:instancePath+"/runtime/compatibilityFlags",schemaPath:"#/properties/runtime/properties/compatibilityFlags/uniqueItems",keyword:"uniqueItems",params:{i: i4, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i4+" are identical)"};
45979
+ if(vErrors === null){
45980
+ vErrors = [err95];
45981
+ }
45982
+ else {
45983
+ vErrors.push(err95);
45984
+ }
45985
+ errors++;
45986
+ break;
45987
+ }
45988
+ indices0[item0] = i4;
45989
+ }
45990
+ }
45991
+ }
45992
+ else {
45993
+ const err96 = {instancePath:instancePath+"/runtime/compatibilityFlags",schemaPath:"#/properties/runtime/properties/compatibilityFlags/type",keyword:"type",params:{type: "array"},message:"must be array"};
45994
+ if(vErrors === null){
45995
+ vErrors = [err96];
45996
+ }
45997
+ else {
45998
+ vErrors.push(err96);
45999
+ }
46000
+ errors++;
46001
+ }
46002
+ }
46003
+ }
46004
+ else {
46005
+ const err97 = {instancePath:instancePath+"/runtime",schemaPath:"#/properties/runtime/type",keyword:"type",params:{type: "object"},message:"must be object"};
46006
+ if(vErrors === null){
46007
+ vErrors = [err97];
46008
+ }
46009
+ else {
46010
+ vErrors.push(err97);
46011
+ }
46012
+ errors++;
46013
+ }
46014
+ }
46015
+ if(data.toolchain !== undefined){
46016
+ let data30 = data.toolchain;
46017
+ if(data30 && typeof data30 == "object" && !Array.isArray(data30)){
46018
+ for(const key7 in data30){
46019
+ let data31 = data30[key7];
46020
+ if(typeof data31 === "string"){
46021
+ if(func2(data31) > 64){
46022
+ const err98 = {instancePath:instancePath+"/toolchain/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/toolchain/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};
46023
+ if(vErrors === null){
46024
+ vErrors = [err98];
46025
+ }
46026
+ else {
46027
+ vErrors.push(err98);
46028
+ }
46029
+ errors++;
46030
+ }
46031
+ }
46032
+ else {
46033
+ const err99 = {instancePath:instancePath+"/toolchain/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/toolchain/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};
46034
+ if(vErrors === null){
46035
+ vErrors = [err99];
46036
+ }
46037
+ else {
46038
+ vErrors.push(err99);
46039
+ }
46040
+ errors++;
46041
+ }
46042
+ }
46043
+ }
46044
+ else {
46045
+ const err100 = {instancePath:instancePath+"/toolchain",schemaPath:"#/properties/toolchain/type",keyword:"type",params:{type: "object"},message:"must be object"};
46046
+ if(vErrors === null){
46047
+ vErrors = [err100];
46048
+ }
46049
+ else {
46050
+ vErrors.push(err100);
46051
+ }
46052
+ errors++;
46053
+ }
46054
+ }
46055
+ if(data.theme !== undefined){
46056
+ let data32 = data.theme;
46057
+ if(data32 && typeof data32 == "object" && !Array.isArray(data32)){
46058
+ if(data32.name === undefined){
46059
+ const err101 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
46060
+ if(vErrors === null){
46061
+ vErrors = [err101];
46062
+ }
46063
+ else {
46064
+ vErrors.push(err101);
46065
+ }
46066
+ errors++;
46067
+ }
46068
+ if(data32.version === undefined){
46069
+ const err102 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};
46070
+ if(vErrors === null){
46071
+ vErrors = [err102];
46072
+ }
46073
+ else {
46074
+ vErrors.push(err102);
46075
+ }
46076
+ errors++;
46077
+ }
46078
+ if(data32.blockTypes === undefined){
46079
+ const err103 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/required",keyword:"required",params:{missingProperty: "blockTypes"},message:"must have required property '"+"blockTypes"+"'"};
46080
+ if(vErrors === null){
46081
+ vErrors = [err103];
46082
+ }
46083
+ else {
46084
+ vErrors.push(err103);
46085
+ }
46086
+ errors++;
46087
+ }
46088
+ if(data32.settingsSha256 === undefined){
46089
+ const err104 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/required",keyword:"required",params:{missingProperty: "settingsSha256"},message:"must have required property '"+"settingsSha256"+"'"};
46090
+ if(vErrors === null){
46091
+ vErrors = [err104];
46092
+ }
46093
+ else {
46094
+ vErrors.push(err104);
46095
+ }
46096
+ errors++;
46097
+ }
46098
+ if(data32.designSha256 === undefined){
46099
+ const err105 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/required",keyword:"required",params:{missingProperty: "designSha256"},message:"must have required property '"+"designSha256"+"'"};
46100
+ if(vErrors === null){
46101
+ vErrors = [err105];
46102
+ }
46103
+ else {
46104
+ vErrors.push(err105);
46105
+ }
46106
+ errors++;
46107
+ }
46108
+ for(const key8 in data32){
46109
+ if(!(((((key8 === "name") || (key8 === "version")) || (key8 === "blockTypes")) || (key8 === "settingsSha256")) || (key8 === "designSha256"))){
46110
+ const err106 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};
46111
+ if(vErrors === null){
46112
+ vErrors = [err106];
46113
+ }
46114
+ else {
46115
+ vErrors.push(err106);
46116
+ }
46117
+ errors++;
46118
+ }
46119
+ }
46120
+ if(data32.name !== undefined){
46121
+ let data33 = data32.name;
46122
+ if(typeof data33 === "string"){
46123
+ if(!pattern315.test(data33)){
46124
+ const err107 = {instancePath:instancePath+"/theme/name",schemaPath:"#/properties/theme/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]{0,63}$"},message:"must match pattern \""+"^[a-z][a-z0-9-]{0,63}$"+"\""};
46125
+ if(vErrors === null){
46126
+ vErrors = [err107];
46127
+ }
46128
+ else {
46129
+ vErrors.push(err107);
46130
+ }
46131
+ errors++;
46132
+ }
46133
+ }
46134
+ else {
46135
+ const err108 = {instancePath:instancePath+"/theme/name",schemaPath:"#/properties/theme/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};
46136
+ if(vErrors === null){
46137
+ vErrors = [err108];
46138
+ }
46139
+ else {
46140
+ vErrors.push(err108);
46141
+ }
46142
+ errors++;
46143
+ }
46144
+ }
46145
+ if(data32.version !== undefined){
46146
+ let data34 = data32.version;
46147
+ if(typeof data34 === "string"){
46148
+ if(func2(data34) > 64){
46149
+ const err109 = {instancePath:instancePath+"/theme/version",schemaPath:"#/properties/theme/properties/version/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};
46150
+ if(vErrors === null){
46151
+ vErrors = [err109];
46152
+ }
46153
+ else {
46154
+ vErrors.push(err109);
46155
+ }
46156
+ errors++;
46157
+ }
46158
+ }
46159
+ else {
46160
+ const err110 = {instancePath:instancePath+"/theme/version",schemaPath:"#/properties/theme/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string"};
46161
+ if(vErrors === null){
46162
+ vErrors = [err110];
46163
+ }
46164
+ else {
46165
+ vErrors.push(err110);
46166
+ }
46167
+ errors++;
46168
+ }
46169
+ }
46170
+ if(data32.blockTypes !== undefined){
46171
+ let data35 = data32.blockTypes;
46172
+ if(Array.isArray(data35)){
46173
+ const len3 = data35.length;
46174
+ for(let i5=0; i5<len3; i5++){
46175
+ if(typeof data35[i5] !== "string"){
46176
+ const err111 = {instancePath:instancePath+"/theme/blockTypes/" + i5,schemaPath:"#/properties/theme/properties/blockTypes/items/type",keyword:"type",params:{type: "string"},message:"must be string"};
46177
+ if(vErrors === null){
46178
+ vErrors = [err111];
46179
+ }
46180
+ else {
46181
+ vErrors.push(err111);
46182
+ }
46183
+ errors++;
46184
+ }
46185
+ }
46186
+ let i6 = data35.length;
46187
+ let j2;
46188
+ if(i6 > 1){
46189
+ const indices1 = {};
46190
+ for(;i6--;){
46191
+ let item1 = data35[i6];
46192
+ if(typeof item1 !== "string"){
46193
+ continue;
46194
+ }
46195
+ if(typeof indices1[item1] == "number"){
46196
+ j2 = indices1[item1];
46197
+ const err112 = {instancePath:instancePath+"/theme/blockTypes",schemaPath:"#/properties/theme/properties/blockTypes/uniqueItems",keyword:"uniqueItems",params:{i: i6, j: j2},message:"must NOT have duplicate items (items ## "+j2+" and "+i6+" are identical)"};
46198
+ if(vErrors === null){
46199
+ vErrors = [err112];
46200
+ }
46201
+ else {
46202
+ vErrors.push(err112);
46203
+ }
46204
+ errors++;
46205
+ break;
46206
+ }
46207
+ indices1[item1] = i6;
46208
+ }
46209
+ }
46210
+ }
46211
+ else {
46212
+ const err113 = {instancePath:instancePath+"/theme/blockTypes",schemaPath:"#/properties/theme/properties/blockTypes/type",keyword:"type",params:{type: "array"},message:"must be array"};
46213
+ if(vErrors === null){
46214
+ vErrors = [err113];
46215
+ }
46216
+ else {
46217
+ vErrors.push(err113);
46218
+ }
46219
+ errors++;
46220
+ }
46221
+ }
46222
+ if(data32.settingsSha256 !== undefined){
46223
+ let data37 = data32.settingsSha256;
46224
+ if(typeof data37 === "string"){
46225
+ if(!pattern66.test(data37)){
46226
+ const err114 = {instancePath:instancePath+"/theme/settingsSha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
46227
+ if(vErrors === null){
46228
+ vErrors = [err114];
46229
+ }
46230
+ else {
46231
+ vErrors.push(err114);
46232
+ }
46233
+ errors++;
46234
+ }
46235
+ }
46236
+ else {
46237
+ const err115 = {instancePath:instancePath+"/theme/settingsSha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
46238
+ if(vErrors === null){
46239
+ vErrors = [err115];
46240
+ }
46241
+ else {
46242
+ vErrors.push(err115);
46243
+ }
46244
+ errors++;
46245
+ }
46246
+ }
46247
+ if(data32.designSha256 !== undefined){
46248
+ let data38 = data32.designSha256;
46249
+ if(typeof data38 === "string"){
46250
+ if(!pattern66.test(data38)){
46251
+ const err116 = {instancePath:instancePath+"/theme/designSha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
46252
+ if(vErrors === null){
46253
+ vErrors = [err116];
46254
+ }
46255
+ else {
46256
+ vErrors.push(err116);
46257
+ }
46258
+ errors++;
46259
+ }
46260
+ }
46261
+ else {
46262
+ const err117 = {instancePath:instancePath+"/theme/designSha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
46263
+ if(vErrors === null){
46264
+ vErrors = [err117];
46265
+ }
46266
+ else {
46267
+ vErrors.push(err117);
46268
+ }
46269
+ errors++;
46270
+ }
46271
+ }
46272
+ }
46273
+ else {
46274
+ const err118 = {instancePath:instancePath+"/theme",schemaPath:"#/properties/theme/type",keyword:"type",params:{type: "object"},message:"must be object"};
46275
+ if(vErrors === null){
46276
+ vErrors = [err118];
46277
+ }
46278
+ else {
46279
+ vErrors.push(err118);
46280
+ }
46281
+ errors++;
46282
+ }
46283
+ }
46284
+ if(data.skills !== undefined){
46285
+ let data39 = data.skills;
46286
+ if(Array.isArray(data39)){
46287
+ const len4 = data39.length;
46288
+ for(let i7=0; i7<len4; i7++){
46289
+ let data40 = data39[i7];
46290
+ if(data40 && typeof data40 == "object" && !Array.isArray(data40)){
46291
+ if(data40.name === undefined){
46292
+ const err119 = {instancePath:instancePath+"/skills/" + i7,schemaPath:"#/properties/skills/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
46293
+ if(vErrors === null){
46294
+ vErrors = [err119];
46295
+ }
46296
+ else {
46297
+ vErrors.push(err119);
46298
+ }
46299
+ errors++;
46300
+ }
46301
+ if(data40.sha256 === undefined){
46302
+ const err120 = {instancePath:instancePath+"/skills/" + i7,schemaPath:"#/properties/skills/items/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};
46303
+ if(vErrors === null){
46304
+ vErrors = [err120];
46305
+ }
46306
+ else {
46307
+ vErrors.push(err120);
46308
+ }
46309
+ errors++;
46310
+ }
46311
+ for(const key9 in data40){
46312
+ if(!((key9 === "name") || (key9 === "sha256"))){
46313
+ const err121 = {instancePath:instancePath+"/skills/" + i7,schemaPath:"#/properties/skills/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};
46314
+ if(vErrors === null){
46315
+ vErrors = [err121];
46316
+ }
46317
+ else {
46318
+ vErrors.push(err121);
46319
+ }
46320
+ errors++;
46321
+ }
46322
+ }
46323
+ if(data40.name !== undefined){
46324
+ let data41 = data40.name;
46325
+ if(typeof data41 === "string"){
46326
+ if(!pattern315.test(data41)){
46327
+ const err122 = {instancePath:instancePath+"/skills/" + i7+"/name",schemaPath:"#/properties/skills/items/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]{0,63}$"},message:"must match pattern \""+"^[a-z][a-z0-9-]{0,63}$"+"\""};
46328
+ if(vErrors === null){
46329
+ vErrors = [err122];
46330
+ }
46331
+ else {
46332
+ vErrors.push(err122);
46333
+ }
46334
+ errors++;
46335
+ }
46336
+ }
46337
+ else {
46338
+ const err123 = {instancePath:instancePath+"/skills/" + i7+"/name",schemaPath:"#/properties/skills/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};
46339
+ if(vErrors === null){
46340
+ vErrors = [err123];
46341
+ }
46342
+ else {
46343
+ vErrors.push(err123);
46344
+ }
46345
+ errors++;
46346
+ }
46347
+ }
46348
+ if(data40.sha256 !== undefined){
46349
+ let data42 = data40.sha256;
46350
+ if(typeof data42 === "string"){
46351
+ if(!pattern66.test(data42)){
46352
+ const err124 = {instancePath:instancePath+"/skills/" + i7+"/sha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
46353
+ if(vErrors === null){
46354
+ vErrors = [err124];
46355
+ }
46356
+ else {
46357
+ vErrors.push(err124);
46358
+ }
46359
+ errors++;
46360
+ }
46361
+ }
46362
+ else {
46363
+ const err125 = {instancePath:instancePath+"/skills/" + i7+"/sha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
46364
+ if(vErrors === null){
46365
+ vErrors = [err125];
46366
+ }
46367
+ else {
46368
+ vErrors.push(err125);
46369
+ }
46370
+ errors++;
46371
+ }
46372
+ }
46373
+ }
46374
+ else {
46375
+ const err126 = {instancePath:instancePath+"/skills/" + i7,schemaPath:"#/properties/skills/items/type",keyword:"type",params:{type: "object"},message:"must be object"};
46376
+ if(vErrors === null){
46377
+ vErrors = [err126];
46378
+ }
46379
+ else {
46380
+ vErrors.push(err126);
46381
+ }
46382
+ errors++;
46383
+ }
46384
+ }
46385
+ }
46386
+ else {
46387
+ const err127 = {instancePath:instancePath+"/skills",schemaPath:"#/properties/skills/type",keyword:"type",params:{type: "array"},message:"must be array"};
46388
+ if(vErrors === null){
46389
+ vErrors = [err127];
46390
+ }
46391
+ else {
46392
+ vErrors.push(err127);
46393
+ }
46394
+ errors++;
46395
+ }
46396
+ }
46397
+ if(data.workers !== undefined){
46398
+ let data43 = data.workers;
46399
+ if(data43 && typeof data43 == "object" && !Array.isArray(data43)){
46400
+ if(data43.site === undefined){
46401
+ const err128 = {instancePath:instancePath+"/workers",schemaPath:"#/properties/workers/required",keyword:"required",params:{missingProperty: "site"},message:"must have required property '"+"site"+"'"};
46402
+ if(vErrors === null){
46403
+ vErrors = [err128];
46404
+ }
46405
+ else {
46406
+ vErrors.push(err128);
46407
+ }
46408
+ errors++;
46409
+ }
46410
+ if(data43.admin === undefined){
46411
+ const err129 = {instancePath:instancePath+"/workers",schemaPath:"#/properties/workers/required",keyword:"required",params:{missingProperty: "admin"},message:"must have required property '"+"admin"+"'"};
46412
+ if(vErrors === null){
46413
+ vErrors = [err129];
46414
+ }
46415
+ else {
46416
+ vErrors.push(err129);
46417
+ }
46418
+ errors++;
46419
+ }
46420
+ for(const key10 in data43){
46421
+ if(!((key10 === "site") || (key10 === "admin"))){
46422
+ const err130 = {instancePath:instancePath+"/workers",schemaPath:"#/properties/workers/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};
46423
+ if(vErrors === null){
46424
+ vErrors = [err130];
46425
+ }
46426
+ else {
46427
+ vErrors.push(err130);
46428
+ }
46429
+ errors++;
46430
+ }
46431
+ }
46432
+ if(data43.site !== undefined){
46433
+ if(!(validate246(data43.site, {instancePath:instancePath+"/workers/site",parentData:data43,parentDataProperty:"site",rootData,dynamicAnchors}))){
46434
+ vErrors = vErrors === null ? validate246.errors : vErrors.concat(validate246.errors);
46435
+ errors = vErrors.length;
46436
+ }
46437
+ }
46438
+ if(data43.admin !== undefined){
46439
+ if(!(validate246(data43.admin, {instancePath:instancePath+"/workers/admin",parentData:data43,parentDataProperty:"admin",rootData,dynamicAnchors}))){
46440
+ vErrors = vErrors === null ? validate246.errors : vErrors.concat(validate246.errors);
46441
+ errors = vErrors.length;
46442
+ }
46443
+ }
46444
+ }
46445
+ else {
46446
+ const err131 = {instancePath:instancePath+"/workers",schemaPath:"#/properties/workers/type",keyword:"type",params:{type: "object"},message:"must be object"};
46447
+ if(vErrors === null){
46448
+ vErrors = [err131];
46449
+ }
46450
+ else {
46451
+ vErrors.push(err131);
46452
+ }
46453
+ errors++;
46454
+ }
46455
+ }
46456
+ if(data.bindingTemplates !== undefined){
46457
+ let data46 = data.bindingTemplates;
46458
+ if(data46 && typeof data46 == "object" && !Array.isArray(data46)){
46459
+ if(data46.site === undefined){
46460
+ const err132 = {instancePath:instancePath+"/bindingTemplates",schemaPath:"#/properties/bindingTemplates/required",keyword:"required",params:{missingProperty: "site"},message:"must have required property '"+"site"+"'"};
46461
+ if(vErrors === null){
46462
+ vErrors = [err132];
46463
+ }
46464
+ else {
46465
+ vErrors.push(err132);
46466
+ }
46467
+ errors++;
46468
+ }
46469
+ if(data46.admin === undefined){
46470
+ const err133 = {instancePath:instancePath+"/bindingTemplates",schemaPath:"#/properties/bindingTemplates/required",keyword:"required",params:{missingProperty: "admin"},message:"must have required property '"+"admin"+"'"};
46471
+ if(vErrors === null){
46472
+ vErrors = [err133];
46473
+ }
46474
+ else {
46475
+ vErrors.push(err133);
46476
+ }
46477
+ errors++;
46478
+ }
46479
+ for(const key11 in data46){
46480
+ if(!((key11 === "site") || (key11 === "admin"))){
46481
+ const err134 = {instancePath:instancePath+"/bindingTemplates",schemaPath:"#/properties/bindingTemplates/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};
46482
+ if(vErrors === null){
46483
+ vErrors = [err134];
46484
+ }
46485
+ else {
46486
+ vErrors.push(err134);
46487
+ }
46488
+ errors++;
46489
+ }
46490
+ }
46491
+ if(data46.site !== undefined){
46492
+ if(!(validate249(data46.site, {instancePath:instancePath+"/bindingTemplates/site",parentData:data46,parentDataProperty:"site",rootData,dynamicAnchors}))){
46493
+ vErrors = vErrors === null ? validate249.errors : vErrors.concat(validate249.errors);
46494
+ errors = vErrors.length;
46495
+ }
46496
+ }
46497
+ if(data46.admin !== undefined){
46498
+ if(!(validate249(data46.admin, {instancePath:instancePath+"/bindingTemplates/admin",parentData:data46,parentDataProperty:"admin",rootData,dynamicAnchors}))){
46499
+ vErrors = vErrors === null ? validate249.errors : vErrors.concat(validate249.errors);
46500
+ errors = vErrors.length;
46501
+ }
46502
+ }
46503
+ }
46504
+ else {
46505
+ const err135 = {instancePath:instancePath+"/bindingTemplates",schemaPath:"#/properties/bindingTemplates/type",keyword:"type",params:{type: "object"},message:"must be object"};
46506
+ if(vErrors === null){
46507
+ vErrors = [err135];
46508
+ }
46509
+ else {
46510
+ vErrors.push(err135);
46511
+ }
46512
+ errors++;
46513
+ }
46514
+ }
46515
+ if(data.requiredScopes !== undefined){
46516
+ let data49 = data.requiredScopes;
46517
+ if(Array.isArray(data49)){
46518
+ const len5 = data49.length;
46519
+ for(let i8=0; i8<len5; i8++){
46520
+ let data50 = data49[i8];
46521
+ if(typeof data50 === "string"){
46522
+ if(!pattern331.test(data50)){
46523
+ const err136 = {instancePath:instancePath+"/requiredScopes/" + i8,schemaPath:"#/$defs/ScopeId/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9-]+(\\.[a-z0-9-]+)+$"},message:"must match pattern \""+"^[a-z0-9-]+(\\.[a-z0-9-]+)+$"+"\""};
46524
+ if(vErrors === null){
46525
+ vErrors = [err136];
46526
+ }
46527
+ else {
46528
+ vErrors.push(err136);
46529
+ }
46530
+ errors++;
46531
+ }
46532
+ }
46533
+ else {
46534
+ const err137 = {instancePath:instancePath+"/requiredScopes/" + i8,schemaPath:"#/$defs/ScopeId/type",keyword:"type",params:{type: "string"},message:"must be string"};
46535
+ if(vErrors === null){
46536
+ vErrors = [err137];
46537
+ }
46538
+ else {
46539
+ vErrors.push(err137);
46540
+ }
46541
+ errors++;
46542
+ }
46543
+ }
46544
+ let i9 = data49.length;
46545
+ let j3;
46546
+ if(i9 > 1){
46547
+ outer1:
46548
+ for(;i9--;){
46549
+ for(j3 = i9; j3--;){
46550
+ if(func0(data49[i9], data49[j3])){
46551
+ const err138 = {instancePath:instancePath+"/requiredScopes",schemaPath:"#/properties/requiredScopes/uniqueItems",keyword:"uniqueItems",params:{i: i9, j: j3},message:"must NOT have duplicate items (items ## "+j3+" and "+i9+" are identical)"};
46552
+ if(vErrors === null){
46553
+ vErrors = [err138];
46554
+ }
46555
+ else {
46556
+ vErrors.push(err138);
46557
+ }
46558
+ errors++;
46559
+ break outer1;
46560
+ }
46561
+ }
46562
+ }
46563
+ }
46564
+ }
46565
+ else {
46566
+ const err139 = {instancePath:instancePath+"/requiredScopes",schemaPath:"#/properties/requiredScopes/type",keyword:"type",params:{type: "array"},message:"must be array"};
46567
+ if(vErrors === null){
46568
+ vErrors = [err139];
46569
+ }
46570
+ else {
46571
+ vErrors.push(err139);
46572
+ }
46573
+ errors++;
46574
+ }
46575
+ }
46576
+ if(data.optionalScopes !== undefined){
46577
+ let data51 = data.optionalScopes;
46578
+ if(Array.isArray(data51)){
46579
+ const len6 = data51.length;
46580
+ for(let i10=0; i10<len6; i10++){
46581
+ let data52 = data51[i10];
46582
+ if(typeof data52 === "string"){
46583
+ if(!pattern331.test(data52)){
46584
+ const err140 = {instancePath:instancePath+"/optionalScopes/" + i10,schemaPath:"#/$defs/ScopeId/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9-]+(\\.[a-z0-9-]+)+$"},message:"must match pattern \""+"^[a-z0-9-]+(\\.[a-z0-9-]+)+$"+"\""};
46585
+ if(vErrors === null){
46586
+ vErrors = [err140];
46587
+ }
46588
+ else {
46589
+ vErrors.push(err140);
46590
+ }
46591
+ errors++;
46592
+ }
46593
+ }
46594
+ else {
46595
+ const err141 = {instancePath:instancePath+"/optionalScopes/" + i10,schemaPath:"#/$defs/ScopeId/type",keyword:"type",params:{type: "string"},message:"must be string"};
46596
+ if(vErrors === null){
46597
+ vErrors = [err141];
46598
+ }
46599
+ else {
46600
+ vErrors.push(err141);
46601
+ }
46602
+ errors++;
46603
+ }
46604
+ }
46605
+ let i11 = data51.length;
46606
+ let j4;
46607
+ if(i11 > 1){
46608
+ outer2:
46609
+ for(;i11--;){
46610
+ for(j4 = i11; j4--;){
46611
+ if(func0(data51[i11], data51[j4])){
46612
+ const err142 = {instancePath:instancePath+"/optionalScopes",schemaPath:"#/properties/optionalScopes/uniqueItems",keyword:"uniqueItems",params:{i: i11, j: j4},message:"must NOT have duplicate items (items ## "+j4+" and "+i11+" are identical)"};
46613
+ if(vErrors === null){
46614
+ vErrors = [err142];
46615
+ }
46616
+ else {
46617
+ vErrors.push(err142);
46618
+ }
46619
+ errors++;
46620
+ break outer2;
46621
+ }
46622
+ }
46623
+ }
46624
+ }
46625
+ }
46626
+ else {
46627
+ const err143 = {instancePath:instancePath+"/optionalScopes",schemaPath:"#/properties/optionalScopes/type",keyword:"type",params:{type: "array"},message:"must be array"};
46628
+ if(vErrors === null){
46629
+ vErrors = [err143];
46630
+ }
46631
+ else {
46632
+ vErrors.push(err143);
46633
+ }
46634
+ errors++;
46635
+ }
46636
+ }
46637
+ if(data.requiredCapabilities !== undefined){
46638
+ let data53 = data.requiredCapabilities;
46639
+ if(Array.isArray(data53)){
46640
+ const len7 = data53.length;
46641
+ for(let i12=0; i12<len7; i12++){
46642
+ let data54 = data53[i12];
46643
+ if(typeof data54 !== "string"){
46644
+ const err144 = {instancePath:instancePath+"/requiredCapabilities/" + i12,schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};
46645
+ if(vErrors === null){
46646
+ vErrors = [err144];
46647
+ }
46648
+ else {
46649
+ vErrors.push(err144);
46650
+ }
46651
+ errors++;
46652
+ }
46653
+ if(!((((((data54 === "account") || (data54 === "workers")) || (data54 === "d1")) || (data54 === "r2")) || (data54 === "analytics")) || (data54 === "domains"))){
46654
+ const err145 = {instancePath:instancePath+"/requiredCapabilities/" + i12,schemaPath:"#/$defs/Capability/enum",keyword:"enum",params:{allowedValues: schema594.enum},message:"must be equal to one of the allowed values"};
46655
+ if(vErrors === null){
46656
+ vErrors = [err145];
46657
+ }
46658
+ else {
46659
+ vErrors.push(err145);
46660
+ }
46661
+ errors++;
46662
+ }
46663
+ }
46664
+ let i13 = data53.length;
46665
+ let j5;
46666
+ if(i13 > 1){
46667
+ outer3:
46668
+ for(;i13--;){
46669
+ for(j5 = i13; j5--;){
46670
+ if(func0(data53[i13], data53[j5])){
46671
+ const err146 = {instancePath:instancePath+"/requiredCapabilities",schemaPath:"#/properties/requiredCapabilities/uniqueItems",keyword:"uniqueItems",params:{i: i13, j: j5},message:"must NOT have duplicate items (items ## "+j5+" and "+i13+" are identical)"};
46672
+ if(vErrors === null){
46673
+ vErrors = [err146];
46674
+ }
46675
+ else {
46676
+ vErrors.push(err146);
46677
+ }
46678
+ errors++;
46679
+ break outer3;
46680
+ }
46681
+ }
46682
+ }
46683
+ }
46684
+ }
46685
+ else {
46686
+ const err147 = {instancePath:instancePath+"/requiredCapabilities",schemaPath:"#/properties/requiredCapabilities/type",keyword:"type",params:{type: "array"},message:"must be array"};
46687
+ if(vErrors === null){
46688
+ vErrors = [err147];
46689
+ }
46690
+ else {
46691
+ vErrors.push(err147);
46692
+ }
46693
+ errors++;
46694
+ }
46695
+ }
46696
+ if(data.optionalCapabilities !== undefined){
46697
+ let data55 = data.optionalCapabilities;
46698
+ if(Array.isArray(data55)){
46699
+ const len8 = data55.length;
46700
+ for(let i14=0; i14<len8; i14++){
46701
+ let data56 = data55[i14];
46702
+ if(typeof data56 !== "string"){
46703
+ const err148 = {instancePath:instancePath+"/optionalCapabilities/" + i14,schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};
46704
+ if(vErrors === null){
46705
+ vErrors = [err148];
46706
+ }
46707
+ else {
46708
+ vErrors.push(err148);
46709
+ }
46710
+ errors++;
46711
+ }
46712
+ if(!((((((data56 === "account") || (data56 === "workers")) || (data56 === "d1")) || (data56 === "r2")) || (data56 === "analytics")) || (data56 === "domains"))){
46713
+ const err149 = {instancePath:instancePath+"/optionalCapabilities/" + i14,schemaPath:"#/$defs/Capability/enum",keyword:"enum",params:{allowedValues: schema594.enum},message:"must be equal to one of the allowed values"};
46714
+ if(vErrors === null){
46715
+ vErrors = [err149];
46716
+ }
46717
+ else {
46718
+ vErrors.push(err149);
46719
+ }
46720
+ errors++;
46721
+ }
46722
+ }
46723
+ let i15 = data55.length;
46724
+ let j6;
46725
+ if(i15 > 1){
46726
+ outer4:
46727
+ for(;i15--;){
46728
+ for(j6 = i15; j6--;){
46729
+ if(func0(data55[i15], data55[j6])){
46730
+ const err150 = {instancePath:instancePath+"/optionalCapabilities",schemaPath:"#/properties/optionalCapabilities/uniqueItems",keyword:"uniqueItems",params:{i: i15, j: j6},message:"must NOT have duplicate items (items ## "+j6+" and "+i15+" are identical)"};
46731
+ if(vErrors === null){
46732
+ vErrors = [err150];
46733
+ }
46734
+ else {
46735
+ vErrors.push(err150);
46736
+ }
46737
+ errors++;
46738
+ break outer4;
46739
+ }
46740
+ }
46741
+ }
46742
+ }
46743
+ }
46744
+ else {
46745
+ const err151 = {instancePath:instancePath+"/optionalCapabilities",schemaPath:"#/properties/optionalCapabilities/type",keyword:"type",params:{type: "array"},message:"must be array"};
46746
+ if(vErrors === null){
46747
+ vErrors = [err151];
46748
+ }
46749
+ else {
46750
+ vErrors.push(err151);
46751
+ }
46752
+ errors++;
46753
+ }
46754
+ }
46755
+ if(data.starter !== undefined){
46756
+ let data57 = data.starter;
46757
+ const _errs138 = errors;
46758
+ let valid51 = false;
46759
+ let passing0 = null;
46760
+ const _errs139 = errors;
46761
+ if(data57 && typeof data57 == "object" && !Array.isArray(data57)){
46762
+ if(data57.kind === undefined){
46763
+ const err152 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/0/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};
46764
+ if(vErrors === null){
46765
+ vErrors = [err152];
46766
+ }
46767
+ else {
46768
+ vErrors.push(err152);
46769
+ }
46770
+ errors++;
46771
+ }
46772
+ for(const key12 in data57){
46773
+ if(!(key12 === "kind")){
46774
+ const err153 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};
46775
+ if(vErrors === null){
46776
+ vErrors = [err153];
46777
+ }
46778
+ else {
46779
+ vErrors.push(err153);
46780
+ }
46781
+ errors++;
46782
+ }
46783
+ }
46784
+ if(data57.kind !== undefined){
46785
+ let data58 = data57.kind;
46786
+ if(typeof data58 !== "string"){
46787
+ const err154 = {instancePath:instancePath+"/starter/kind",schemaPath:"#/properties/starter/oneOf/0/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};
46788
+ if(vErrors === null){
46789
+ vErrors = [err154];
46790
+ }
46791
+ else {
46792
+ vErrors.push(err154);
46793
+ }
46794
+ errors++;
46795
+ }
46796
+ if(!(data58 === "admin-api")){
46797
+ const err155 = {instancePath:instancePath+"/starter/kind",schemaPath:"#/properties/starter/oneOf/0/properties/kind/enum",keyword:"enum",params:{allowedValues: schema573.properties.starter.oneOf[0].properties.kind.enum},message:"must be equal to one of the allowed values"};
46798
+ if(vErrors === null){
46799
+ vErrors = [err155];
46800
+ }
46801
+ else {
46802
+ vErrors.push(err155);
46803
+ }
46804
+ errors++;
46805
+ }
46806
+ }
46807
+ }
46808
+ else {
46809
+ const err156 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};
46810
+ if(vErrors === null){
46811
+ vErrors = [err156];
46812
+ }
46813
+ else {
46814
+ vErrors.push(err156);
46815
+ }
46816
+ errors++;
46817
+ }
46818
+ var _valid0 = _errs139 === errors;
46819
+ if(_valid0){
46820
+ valid51 = true;
46821
+ passing0 = 0;
46822
+ var props0 = true;
46823
+ }
46824
+ const _errs144 = errors;
46825
+ if(data57 && typeof data57 == "object" && !Array.isArray(data57)){
46826
+ if(data57.kind === undefined){
46827
+ const err157 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};
46828
+ if(vErrors === null){
46829
+ vErrors = [err157];
46830
+ }
46831
+ else {
46832
+ vErrors.push(err157);
46833
+ }
46834
+ errors++;
46835
+ }
46836
+ if(data57.path === undefined){
46837
+ const err158 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};
46838
+ if(vErrors === null){
46839
+ vErrors = [err158];
46840
+ }
46841
+ else {
46842
+ vErrors.push(err158);
46843
+ }
46844
+ errors++;
46845
+ }
46846
+ if(data57.bytes === undefined){
46847
+ const err159 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/required",keyword:"required",params:{missingProperty: "bytes"},message:"must have required property '"+"bytes"+"'"};
46848
+ if(vErrors === null){
46849
+ vErrors = [err159];
46850
+ }
46851
+ else {
46852
+ vErrors.push(err159);
46853
+ }
46854
+ errors++;
46855
+ }
46856
+ if(data57.sha256 === undefined){
46857
+ const err160 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};
46858
+ if(vErrors === null){
46859
+ vErrors = [err160];
46860
+ }
46861
+ else {
46862
+ vErrors.push(err160);
46863
+ }
46864
+ errors++;
46865
+ }
46866
+ if(data57.siteId === undefined){
46867
+ const err161 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/required",keyword:"required",params:{missingProperty: "siteId"},message:"must have required property '"+"siteId"+"'"};
46868
+ if(vErrors === null){
46869
+ vErrors = [err161];
46870
+ }
46871
+ else {
46872
+ vErrors.push(err161);
46873
+ }
46874
+ errors++;
46875
+ }
46876
+ for(const key13 in data57){
46877
+ if(!(((((key13 === "kind") || (key13 === "path")) || (key13 === "bytes")) || (key13 === "sha256")) || (key13 === "siteId"))){
46878
+ const err162 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};
46879
+ if(vErrors === null){
46880
+ vErrors = [err162];
46881
+ }
46882
+ else {
46883
+ vErrors.push(err162);
46884
+ }
46885
+ errors++;
46886
+ }
46887
+ }
46888
+ if(data57.kind !== undefined){
46889
+ let data59 = data57.kind;
46890
+ if(typeof data59 !== "string"){
46891
+ const err163 = {instancePath:instancePath+"/starter/kind",schemaPath:"#/properties/starter/oneOf/1/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};
46892
+ if(vErrors === null){
46893
+ vErrors = [err163];
46894
+ }
46895
+ else {
46896
+ vErrors.push(err163);
46897
+ }
46898
+ errors++;
46899
+ }
46900
+ if(!(data59 === "bundle")){
46901
+ const err164 = {instancePath:instancePath+"/starter/kind",schemaPath:"#/properties/starter/oneOf/1/properties/kind/enum",keyword:"enum",params:{allowedValues: schema573.properties.starter.oneOf[1].properties.kind.enum},message:"must be equal to one of the allowed values"};
46902
+ if(vErrors === null){
46903
+ vErrors = [err164];
46904
+ }
46905
+ else {
46906
+ vErrors.push(err164);
46907
+ }
46908
+ errors++;
46909
+ }
46910
+ }
46911
+ if(data57.path !== undefined){
46912
+ let data60 = data57.path;
46913
+ if(typeof data60 === "string"){
46914
+ if(!pattern333.test(data60)){
46915
+ const err165 = {instancePath:instancePath+"/starter/path",schemaPath:"#/properties/starter/oneOf/1/properties/path/pattern",keyword:"pattern",params:{pattern: "^starter/[A-Za-z0-9._-]+$"},message:"must match pattern \""+"^starter/[A-Za-z0-9._-]+$"+"\""};
46916
+ if(vErrors === null){
46917
+ vErrors = [err165];
46918
+ }
46919
+ else {
46920
+ vErrors.push(err165);
46921
+ }
46922
+ errors++;
46923
+ }
46924
+ }
46925
+ else {
46926
+ const err166 = {instancePath:instancePath+"/starter/path",schemaPath:"#/properties/starter/oneOf/1/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};
46927
+ if(vErrors === null){
46928
+ vErrors = [err166];
46929
+ }
46930
+ else {
46931
+ vErrors.push(err166);
46932
+ }
46933
+ errors++;
46934
+ }
46935
+ }
46936
+ if(data57.bytes !== undefined){
46937
+ let data61 = data57.bytes;
46938
+ if(!(((typeof data61 == "number") && (!(data61 % 1) && !isNaN(data61))) && (isFinite(data61)))){
46939
+ const err167 = {instancePath:instancePath+"/starter/bytes",schemaPath:"#/properties/starter/oneOf/1/properties/bytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
46940
+ if(vErrors === null){
46941
+ vErrors = [err167];
46942
+ }
46943
+ else {
46944
+ vErrors.push(err167);
46945
+ }
46946
+ errors++;
46947
+ }
46948
+ if((typeof data61 == "number") && (isFinite(data61))){
46949
+ if(data61 < 1 || isNaN(data61)){
46950
+ const err168 = {instancePath:instancePath+"/starter/bytes",schemaPath:"#/properties/starter/oneOf/1/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};
46951
+ if(vErrors === null){
46952
+ vErrors = [err168];
46953
+ }
46954
+ else {
46955
+ vErrors.push(err168);
46956
+ }
46957
+ errors++;
46958
+ }
46959
+ }
46960
+ }
46961
+ if(data57.sha256 !== undefined){
46962
+ let data62 = data57.sha256;
46963
+ if(typeof data62 === "string"){
46964
+ if(!pattern66.test(data62)){
46965
+ const err169 = {instancePath:instancePath+"/starter/sha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
46966
+ if(vErrors === null){
46967
+ vErrors = [err169];
46968
+ }
46969
+ else {
46970
+ vErrors.push(err169);
46971
+ }
46972
+ errors++;
46973
+ }
46974
+ }
46975
+ else {
46976
+ const err170 = {instancePath:instancePath+"/starter/sha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
46977
+ if(vErrors === null){
46978
+ vErrors = [err170];
46979
+ }
46980
+ else {
46981
+ vErrors.push(err170);
46982
+ }
46983
+ errors++;
46984
+ }
46985
+ }
46986
+ if(data57.siteId !== undefined){
46987
+ let data63 = data57.siteId;
46988
+ if(typeof data63 === "string"){
46989
+ if(!pattern335.test(data63)){
46990
+ const err171 = {instancePath:instancePath+"/starter/siteId",schemaPath:"#/$defs/SiteId/pattern",keyword:"pattern",params:{pattern: "^site_[A-Za-z0-9]{6,32}$"},message:"must match pattern \""+"^site_[A-Za-z0-9]{6,32}$"+"\""};
46991
+ if(vErrors === null){
46992
+ vErrors = [err171];
46993
+ }
46994
+ else {
46995
+ vErrors.push(err171);
46996
+ }
46997
+ errors++;
46998
+ }
46999
+ }
47000
+ else {
47001
+ const err172 = {instancePath:instancePath+"/starter/siteId",schemaPath:"#/$defs/SiteId/type",keyword:"type",params:{type: "string"},message:"must be string"};
47002
+ if(vErrors === null){
47003
+ vErrors = [err172];
47004
+ }
47005
+ else {
47006
+ vErrors.push(err172);
47007
+ }
47008
+ errors++;
47009
+ }
47010
+ }
47011
+ }
47012
+ else {
47013
+ const err173 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};
47014
+ if(vErrors === null){
47015
+ vErrors = [err173];
47016
+ }
47017
+ else {
47018
+ vErrors.push(err173);
47019
+ }
47020
+ errors++;
47021
+ }
47022
+ var _valid0 = _errs144 === errors;
47023
+ if(_valid0 && valid51){
47024
+ valid51 = false;
47025
+ passing0 = [passing0, 1];
47026
+ }
47027
+ else {
47028
+ if(_valid0){
47029
+ valid51 = true;
47030
+ passing0 = 1;
47031
+ if(props0 !== true){
47032
+ props0 = true;
47033
+ }
47034
+ }
47035
+ }
47036
+ if(!valid51){
47037
+ const err174 = {instancePath:instancePath+"/starter",schemaPath:"#/properties/starter/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};
47038
+ if(vErrors === null){
47039
+ vErrors = [err174];
47040
+ }
47041
+ else {
47042
+ vErrors.push(err174);
47043
+ }
47044
+ errors++;
47045
+ }
47046
+ else {
47047
+ errors = _errs138;
47048
+ if(vErrors !== null){
47049
+ if(_errs138){
47050
+ vErrors.length = _errs138;
47051
+ }
47052
+ else {
47053
+ vErrors = null;
47054
+ }
47055
+ }
47056
+ }
47057
+ }
47058
+ if(data.features !== undefined){
47059
+ let data64 = data.features;
47060
+ if(data64 && typeof data64 == "object" && !Array.isArray(data64)){
47061
+ if(data64.adminSitesAcceptsSiteId === undefined){
47062
+ const err175 = {instancePath:instancePath+"/features",schemaPath:"#/properties/features/required",keyword:"required",params:{missingProperty: "adminSitesAcceptsSiteId"},message:"must have required property '"+"adminSitesAcceptsSiteId"+"'"};
47063
+ if(vErrors === null){
47064
+ vErrors = [err175];
47065
+ }
47066
+ else {
47067
+ vErrors.push(err175);
47068
+ }
47069
+ errors++;
47070
+ }
47071
+ if(data64.healthReportsVersion === undefined){
47072
+ const err176 = {instancePath:instancePath+"/features",schemaPath:"#/properties/features/required",keyword:"required",params:{missingProperty: "healthReportsVersion"},message:"must have required property '"+"healthReportsVersion"+"'"};
47073
+ if(vErrors === null){
47074
+ vErrors = [err176];
47075
+ }
47076
+ else {
47077
+ vErrors.push(err176);
47078
+ }
47079
+ errors++;
47080
+ }
47081
+ if(data64.mediaTransformVar === undefined){
47082
+ const err177 = {instancePath:instancePath+"/features",schemaPath:"#/properties/features/required",keyword:"required",params:{missingProperty: "mediaTransformVar"},message:"must have required property '"+"mediaTransformVar"+"'"};
47083
+ if(vErrors === null){
47084
+ vErrors = [err177];
47085
+ }
47086
+ else {
47087
+ vErrors.push(err177);
47088
+ }
47089
+ errors++;
47090
+ }
47091
+ for(const key14 in data64){
47092
+ if(!(((key14 === "adminSitesAcceptsSiteId") || (key14 === "healthReportsVersion")) || (key14 === "mediaTransformVar"))){
47093
+ if(typeof data64[key14] !== "boolean"){
47094
+ const err178 = {instancePath:instancePath+"/features/" + key14.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/features/additionalProperties/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
47095
+ if(vErrors === null){
47096
+ vErrors = [err178];
47097
+ }
47098
+ else {
47099
+ vErrors.push(err178);
47100
+ }
47101
+ errors++;
47102
+ }
47103
+ }
47104
+ }
47105
+ if(data64.adminSitesAcceptsSiteId !== undefined){
47106
+ if(typeof data64.adminSitesAcceptsSiteId !== "boolean"){
47107
+ const err179 = {instancePath:instancePath+"/features/adminSitesAcceptsSiteId",schemaPath:"#/properties/features/properties/adminSitesAcceptsSiteId/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
47108
+ if(vErrors === null){
47109
+ vErrors = [err179];
47110
+ }
47111
+ else {
47112
+ vErrors.push(err179);
47113
+ }
47114
+ errors++;
47115
+ }
47116
+ }
47117
+ if(data64.healthReportsVersion !== undefined){
47118
+ if(typeof data64.healthReportsVersion !== "boolean"){
47119
+ const err180 = {instancePath:instancePath+"/features/healthReportsVersion",schemaPath:"#/properties/features/properties/healthReportsVersion/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
47120
+ if(vErrors === null){
47121
+ vErrors = [err180];
47122
+ }
47123
+ else {
47124
+ vErrors.push(err180);
47125
+ }
47126
+ errors++;
47127
+ }
47128
+ }
47129
+ if(data64.mediaTransformVar !== undefined){
47130
+ if(typeof data64.mediaTransformVar !== "boolean"){
47131
+ const err181 = {instancePath:instancePath+"/features/mediaTransformVar",schemaPath:"#/properties/features/properties/mediaTransformVar/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
47132
+ if(vErrors === null){
47133
+ vErrors = [err181];
47134
+ }
47135
+ else {
47136
+ vErrors.push(err181);
47137
+ }
47138
+ errors++;
47139
+ }
47140
+ }
47141
+ }
47142
+ else {
47143
+ const err182 = {instancePath:instancePath+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type: "object"},message:"must be object"};
47144
+ if(vErrors === null){
47145
+ vErrors = [err182];
47146
+ }
47147
+ else {
47148
+ vErrors.push(err182);
47149
+ }
47150
+ errors++;
47151
+ }
47152
+ }
47153
+ if(data.planVersion !== undefined){
47154
+ let data69 = data.planVersion;
47155
+ if(!(((typeof data69 == "number") && (!(data69 % 1) && !isNaN(data69))) && (isFinite(data69)))){
47156
+ const err183 = {instancePath:instancePath+"/planVersion",schemaPath:"#/properties/planVersion/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
47157
+ if(vErrors === null){
47158
+ vErrors = [err183];
47159
+ }
47160
+ else {
47161
+ vErrors.push(err183);
47162
+ }
47163
+ errors++;
47164
+ }
47165
+ if((typeof data69 == "number") && (isFinite(data69))){
47166
+ if(data69 < 1 || isNaN(data69)){
47167
+ const err184 = {instancePath:instancePath+"/planVersion",schemaPath:"#/properties/planVersion/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};
47168
+ if(vErrors === null){
47169
+ vErrors = [err184];
47170
+ }
47171
+ else {
47172
+ vErrors.push(err184);
47173
+ }
47174
+ errors++;
47175
+ }
47176
+ }
47177
+ }
47178
+ if(data.signing !== undefined){
47179
+ let data70 = data.signing;
47180
+ if(data70 && typeof data70 == "object" && !Array.isArray(data70)){
47181
+ if(data70.keyId === undefined){
47182
+ const err185 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/required",keyword:"required",params:{missingProperty: "keyId"},message:"must have required property '"+"keyId"+"'"};
47183
+ if(vErrors === null){
47184
+ vErrors = [err185];
47185
+ }
47186
+ else {
47187
+ vErrors.push(err185);
47188
+ }
47189
+ errors++;
47190
+ }
47191
+ if(data70.algorithm === undefined){
47192
+ const err186 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/required",keyword:"required",params:{missingProperty: "algorithm"},message:"must have required property '"+"algorithm"+"'"};
47193
+ if(vErrors === null){
47194
+ vErrors = [err186];
47195
+ }
47196
+ else {
47197
+ vErrors.push(err186);
47198
+ }
47199
+ errors++;
47200
+ }
47201
+ if(data70.signature === undefined){
47202
+ const err187 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/required",keyword:"required",params:{missingProperty: "signature"},message:"must have required property '"+"signature"+"'"};
47203
+ if(vErrors === null){
47204
+ vErrors = [err187];
47205
+ }
47206
+ else {
47207
+ vErrors.push(err187);
47208
+ }
47209
+ errors++;
47210
+ }
47211
+ for(const key15 in data70){
47212
+ if(!(((key15 === "keyId") || (key15 === "algorithm")) || (key15 === "signature"))){
47213
+ const err188 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};
47214
+ if(vErrors === null){
47215
+ vErrors = [err188];
47216
+ }
47217
+ else {
47218
+ vErrors.push(err188);
47219
+ }
47220
+ errors++;
47221
+ }
47222
+ }
47223
+ if(data70.keyId !== undefined){
47224
+ let data71 = data70.keyId;
47225
+ if(typeof data71 === "string"){
47226
+ if(!pattern336.test(data71)){
47227
+ const err189 = {instancePath:instancePath+"/signing/keyId",schemaPath:"#/properties/signing/properties/keyId/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9-]{2,63}$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9-]{2,63}$"+"\""};
47228
+ if(vErrors === null){
47229
+ vErrors = [err189];
47230
+ }
47231
+ else {
47232
+ vErrors.push(err189);
47233
+ }
47234
+ errors++;
47235
+ }
47236
+ }
47237
+ else {
47238
+ const err190 = {instancePath:instancePath+"/signing/keyId",schemaPath:"#/properties/signing/properties/keyId/type",keyword:"type",params:{type: "string"},message:"must be string"};
47239
+ if(vErrors === null){
47240
+ vErrors = [err190];
47241
+ }
47242
+ else {
47243
+ vErrors.push(err190);
47244
+ }
47245
+ errors++;
47246
+ }
47247
+ }
47248
+ if(data70.algorithm !== undefined){
47249
+ let data72 = data70.algorithm;
47250
+ if(typeof data72 !== "string"){
47251
+ const err191 = {instancePath:instancePath+"/signing/algorithm",schemaPath:"#/properties/signing/properties/algorithm/type",keyword:"type",params:{type: "string"},message:"must be string"};
47252
+ if(vErrors === null){
47253
+ vErrors = [err191];
47254
+ }
47255
+ else {
47256
+ vErrors.push(err191);
47257
+ }
47258
+ errors++;
47259
+ }
47260
+ if(!(data72 === "Ed25519")){
47261
+ const err192 = {instancePath:instancePath+"/signing/algorithm",schemaPath:"#/properties/signing/properties/algorithm/enum",keyword:"enum",params:{allowedValues: schema573.properties.signing.properties.algorithm.enum},message:"must be equal to one of the allowed values"};
47262
+ if(vErrors === null){
47263
+ vErrors = [err192];
47264
+ }
47265
+ else {
47266
+ vErrors.push(err192);
47267
+ }
47268
+ errors++;
47269
+ }
47270
+ }
47271
+ if(data70.signature !== undefined){
47272
+ let data73 = data70.signature;
47273
+ if(typeof data73 !== "string"){
47274
+ const err193 = {instancePath:instancePath+"/signing/signature",schemaPath:"#/properties/signing/properties/signature/type",keyword:"type",params:{type: "string"},message:"must be string"};
47275
+ if(vErrors === null){
47276
+ vErrors = [err193];
47277
+ }
47278
+ else {
47279
+ vErrors.push(err193);
47280
+ }
47281
+ errors++;
47282
+ }
47283
+ if(!((data73 === "manifest.sig") || (data73 === "release-statement.sig"))){
47284
+ const err194 = {instancePath:instancePath+"/signing/signature",schemaPath:"#/properties/signing/properties/signature/enum",keyword:"enum",params:{allowedValues: schema573.properties.signing.properties.signature.enum},message:"must be equal to one of the allowed values"};
47285
+ if(vErrors === null){
47286
+ vErrors = [err194];
47287
+ }
47288
+ else {
47289
+ vErrors.push(err194);
47290
+ }
47291
+ errors++;
47292
+ }
47293
+ }
47294
+ }
47295
+ else {
47296
+ const err195 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/type",keyword:"type",params:{type: "object"},message:"must be object"};
47297
+ if(vErrors === null){
47298
+ vErrors = [err195];
47299
+ }
47300
+ else {
47301
+ vErrors.push(err195);
47302
+ }
47303
+ errors++;
47304
+ }
47305
+ }
47306
+ }
47307
+ else {
47308
+ const err196 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
47309
+ if(vErrors === null){
47310
+ vErrors = [err196];
47311
+ }
47312
+ else {
47313
+ vErrors.push(err196);
47314
+ }
47315
+ errors++;
47316
+ }
47317
+ validate245.errors = vErrors;
47318
+ return errors === 0;
47319
+ }
47320
+ validate245.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
47321
+
47322
+ export const validateReleaseStatement = validate252;
47323
+ const schema598 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cloudhal.dev/schemas/v1/release-statement.schema.json","title":"ReleaseStatement","description":"cloudhal.release-statement@1 (RFC-0046): the small canonical document a Cloudhal release signs, published as the release asset release-statement.json next to release-statement.sig (a raw 64-byte Ed25519 signature over the exact bytes, at most 4096 of them). It names the version, channel, commit and key id and pins the SHA-256 and size of manifest.json and of the tarball, so a remote deployer verifies one small file and then checks every other asset by digest. Canonical bytes: keys sorted recursively, 2-space indent, a trailing newline; a consumer verifies the bytes it downloaded and never re-serialises them. Portable on purpose: it references common only for SchemaVersion and Timestamp.","type":"object","additionalProperties":false,"required":["schemaVersion","format","version","channel","securityRelease","commit","createdAt","signing","manifest","tarball"],"properties":{"schemaVersion":{"$ref":"#/$defs/SchemaVersion"},"format":{"type":"string","enum":["cloudhal.release-statement@1"]},"version":{"$ref":"#/$defs/CloudhalVersion"},"channel":{"type":"string","enum":["stable","next"]},"securityRelease":{"type":"boolean"},"commit":{"type":"string","pattern":"^[0-9a-f]{40}$"},"createdAt":{"$ref":"#/$defs/Timestamp"},"signing":{"type":"object","additionalProperties":false,"required":["keyId","algorithm","signature"],"properties":{"keyId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{2,63}$"},"algorithm":{"type":"string","enum":["Ed25519"]},"signature":{"type":"string","enum":["release-statement.sig"]}}},"manifest":{"$ref":"#/$defs/StatementAsset"},"tarball":{"$ref":"#/$defs/StatementAsset"}},"$defs":{"CloudhalVersion":{"type":"string","pattern":"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"},"SchemaVersion":{"type":"integer","description":"Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.","enum":[1]},"Sha256Hex":{"type":"string","pattern":"^[0-9a-f]{64}$"},"StatementAsset":{"type":"object","additionalProperties":false,"required":["name","sha256","bytes"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"},"sha256":{"$ref":"#/$defs/Sha256Hex"},"bytes":{"type":"integer","minimum":1,"maximum":104857600}}},"Timestamp":{"type":"string","description":"RFC 3339 / ISO 8601 instant in UTC.","format":"date-time"}}};
47324
+ const schema599 = {"type":"integer","description":"Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.","enum":[1]};
47325
+ const schema600 = {"type":"string","pattern":"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"};
47326
+ const schema601 = {"type":"string","description":"RFC 3339 / ISO 8601 instant in UTC.","format":"date-time"};
47327
+ const schema602 = {"type":"object","additionalProperties":false,"required":["name","sha256","bytes"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"},"sha256":{"$ref":"#/$defs/Sha256Hex"},"bytes":{"type":"integer","minimum":1,"maximum":104857600}}};
47328
+ const schema603 = {"type":"string","pattern":"^[0-9a-f]{64}$"};
47329
+ const pattern340 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u");
47330
+
47331
+ function validate253(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){
47332
+ let vErrors = null;
47333
+ let errors = 0;
47334
+ const evaluated0 = validate253.evaluated;
47335
+ if(evaluated0.dynamicProps){
47336
+ evaluated0.props = undefined;
47337
+ }
47338
+ if(evaluated0.dynamicItems){
47339
+ evaluated0.items = undefined;
47340
+ }
47341
+ if(data && typeof data == "object" && !Array.isArray(data)){
47342
+ if(data.name === undefined){
47343
+ const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
47344
+ if(vErrors === null){
47345
+ vErrors = [err0];
47346
+ }
47347
+ else {
47348
+ vErrors.push(err0);
47349
+ }
47350
+ errors++;
47351
+ }
47352
+ if(data.sha256 === undefined){
47353
+ const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};
47354
+ if(vErrors === null){
47355
+ vErrors = [err1];
47356
+ }
47357
+ else {
47358
+ vErrors.push(err1);
47359
+ }
47360
+ errors++;
47361
+ }
47362
+ if(data.bytes === undefined){
47363
+ const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "bytes"},message:"must have required property '"+"bytes"+"'"};
47364
+ if(vErrors === null){
47365
+ vErrors = [err2];
47366
+ }
47367
+ else {
47368
+ vErrors.push(err2);
47369
+ }
47370
+ errors++;
47371
+ }
47372
+ for(const key0 in data){
47373
+ if(!(((key0 === "name") || (key0 === "sha256")) || (key0 === "bytes"))){
47374
+ const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};
47375
+ if(vErrors === null){
47376
+ vErrors = [err3];
47377
+ }
47378
+ else {
47379
+ vErrors.push(err3);
47380
+ }
47381
+ errors++;
47382
+ }
47383
+ }
47384
+ if(data.name !== undefined){
47385
+ let data0 = data.name;
47386
+ if(typeof data0 === "string"){
47387
+ if(!pattern340.test(data0)){
47388
+ const err4 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"},message:"must match pattern \""+"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"+"\""};
47389
+ if(vErrors === null){
47390
+ vErrors = [err4];
47391
+ }
47392
+ else {
47393
+ vErrors.push(err4);
47394
+ }
47395
+ errors++;
47396
+ }
47397
+ }
47398
+ else {
47399
+ const err5 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};
47400
+ if(vErrors === null){
47401
+ vErrors = [err5];
47402
+ }
47403
+ else {
47404
+ vErrors.push(err5);
47405
+ }
47406
+ errors++;
47407
+ }
47408
+ }
47409
+ if(data.sha256 !== undefined){
47410
+ let data1 = data.sha256;
47411
+ if(typeof data1 === "string"){
47412
+ if(!pattern66.test(data1)){
47413
+ const err6 = {instancePath:instancePath+"/sha256",schemaPath:"#/$defs/Sha256Hex/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};
47414
+ if(vErrors === null){
47415
+ vErrors = [err6];
47416
+ }
47417
+ else {
47418
+ vErrors.push(err6);
47419
+ }
47420
+ errors++;
47421
+ }
47422
+ }
47423
+ else {
47424
+ const err7 = {instancePath:instancePath+"/sha256",schemaPath:"#/$defs/Sha256Hex/type",keyword:"type",params:{type: "string"},message:"must be string"};
47425
+ if(vErrors === null){
47426
+ vErrors = [err7];
47427
+ }
47428
+ else {
47429
+ vErrors.push(err7);
47430
+ }
47431
+ errors++;
47432
+ }
47433
+ }
47434
+ if(data.bytes !== undefined){
47435
+ let data2 = data.bytes;
47436
+ if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){
47437
+ const err8 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
47438
+ if(vErrors === null){
47439
+ vErrors = [err8];
47440
+ }
47441
+ else {
47442
+ vErrors.push(err8);
47443
+ }
47444
+ errors++;
47445
+ }
47446
+ if((typeof data2 == "number") && (isFinite(data2))){
47447
+ if(data2 > 104857600 || isNaN(data2)){
47448
+ const err9 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/maximum",keyword:"maximum",params:{comparison: "<=", limit: 104857600},message:"must be <= 104857600"};
47449
+ if(vErrors === null){
47450
+ vErrors = [err9];
47451
+ }
47452
+ else {
47453
+ vErrors.push(err9);
47454
+ }
47455
+ errors++;
47456
+ }
47457
+ if(data2 < 1 || isNaN(data2)){
47458
+ const err10 = {instancePath:instancePath+"/bytes",schemaPath:"#/properties/bytes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};
47459
+ if(vErrors === null){
47460
+ vErrors = [err10];
47461
+ }
47462
+ else {
47463
+ vErrors.push(err10);
47464
+ }
47465
+ errors++;
47466
+ }
47467
+ }
47468
+ }
47469
+ }
47470
+ else {
47471
+ const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
47472
+ if(vErrors === null){
47473
+ vErrors = [err11];
47474
+ }
47475
+ else {
47476
+ vErrors.push(err11);
47477
+ }
47478
+ errors++;
47479
+ }
47480
+ validate253.errors = vErrors;
47481
+ return errors === 0;
47482
+ }
47483
+ validate253.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
47484
+
47485
+
47486
+ function validate252(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){
47487
+ /*# sourceURL="https://cloudhal.dev/schemas/v1/release-statement.schema.json" */;
47488
+ let vErrors = null;
47489
+ let errors = 0;
47490
+ const evaluated0 = validate252.evaluated;
47491
+ if(evaluated0.dynamicProps){
47492
+ evaluated0.props = undefined;
47493
+ }
47494
+ if(evaluated0.dynamicItems){
47495
+ evaluated0.items = undefined;
47496
+ }
47497
+ if(data && typeof data == "object" && !Array.isArray(data)){
47498
+ if(data.schemaVersion === undefined){
47499
+ const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schemaVersion"},message:"must have required property '"+"schemaVersion"+"'"};
47500
+ if(vErrors === null){
47501
+ vErrors = [err0];
47502
+ }
47503
+ else {
47504
+ vErrors.push(err0);
47505
+ }
47506
+ errors++;
47507
+ }
47508
+ if(data.format === undefined){
47509
+ const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};
47510
+ if(vErrors === null){
47511
+ vErrors = [err1];
47512
+ }
47513
+ else {
47514
+ vErrors.push(err1);
47515
+ }
47516
+ errors++;
47517
+ }
47518
+ if(data.version === undefined){
47519
+ const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'"};
47520
+ if(vErrors === null){
47521
+ vErrors = [err2];
47522
+ }
47523
+ else {
47524
+ vErrors.push(err2);
47525
+ }
47526
+ errors++;
47527
+ }
47528
+ if(data.channel === undefined){
47529
+ const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "channel"},message:"must have required property '"+"channel"+"'"};
47530
+ if(vErrors === null){
47531
+ vErrors = [err3];
47532
+ }
47533
+ else {
47534
+ vErrors.push(err3);
47535
+ }
47536
+ errors++;
47537
+ }
47538
+ if(data.securityRelease === undefined){
47539
+ const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "securityRelease"},message:"must have required property '"+"securityRelease"+"'"};
47540
+ if(vErrors === null){
47541
+ vErrors = [err4];
47542
+ }
47543
+ else {
47544
+ vErrors.push(err4);
47545
+ }
47546
+ errors++;
47547
+ }
47548
+ if(data.commit === undefined){
47549
+ const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "commit"},message:"must have required property '"+"commit"+"'"};
47550
+ if(vErrors === null){
47551
+ vErrors = [err5];
47552
+ }
47553
+ else {
47554
+ vErrors.push(err5);
47555
+ }
47556
+ errors++;
47557
+ }
47558
+ if(data.createdAt === undefined){
47559
+ const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "createdAt"},message:"must have required property '"+"createdAt"+"'"};
47560
+ if(vErrors === null){
47561
+ vErrors = [err6];
47562
+ }
47563
+ else {
47564
+ vErrors.push(err6);
47565
+ }
47566
+ errors++;
47567
+ }
47568
+ if(data.signing === undefined){
47569
+ const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "signing"},message:"must have required property '"+"signing"+"'"};
47570
+ if(vErrors === null){
47571
+ vErrors = [err7];
47572
+ }
47573
+ else {
47574
+ vErrors.push(err7);
47575
+ }
47576
+ errors++;
47577
+ }
47578
+ if(data.manifest === undefined){
47579
+ const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "manifest"},message:"must have required property '"+"manifest"+"'"};
47580
+ if(vErrors === null){
47581
+ vErrors = [err8];
47582
+ }
47583
+ else {
47584
+ vErrors.push(err8);
47585
+ }
47586
+ errors++;
47587
+ }
47588
+ if(data.tarball === undefined){
47589
+ const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "tarball"},message:"must have required property '"+"tarball"+"'"};
47590
+ if(vErrors === null){
47591
+ vErrors = [err9];
47592
+ }
47593
+ else {
47594
+ vErrors.push(err9);
47595
+ }
47596
+ errors++;
47597
+ }
47598
+ for(const key0 in data){
47599
+ if(!(func1.call(schema598.properties, key0))){
47600
+ const err10 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};
47601
+ if(vErrors === null){
47602
+ vErrors = [err10];
47603
+ }
47604
+ else {
47605
+ vErrors.push(err10);
47606
+ }
47607
+ errors++;
47608
+ }
47609
+ }
47610
+ if(data.schemaVersion !== undefined){
47611
+ let data0 = data.schemaVersion;
47612
+ if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){
47613
+ const err11 = {instancePath:instancePath+"/schemaVersion",schemaPath:"#/$defs/SchemaVersion/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
47614
+ if(vErrors === null){
47615
+ vErrors = [err11];
47616
+ }
47617
+ else {
47618
+ vErrors.push(err11);
47619
+ }
47620
+ errors++;
47621
+ }
47622
+ if(!(data0 === 1)){
47623
+ const err12 = {instancePath:instancePath+"/schemaVersion",schemaPath:"#/$defs/SchemaVersion/enum",keyword:"enum",params:{allowedValues: schema599.enum},message:"must be equal to one of the allowed values"};
47624
+ if(vErrors === null){
47625
+ vErrors = [err12];
47626
+ }
47627
+ else {
47628
+ vErrors.push(err12);
47629
+ }
47630
+ errors++;
47631
+ }
47632
+ }
47633
+ if(data.format !== undefined){
47634
+ let data1 = data.format;
47635
+ if(typeof data1 !== "string"){
47636
+ const err13 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"};
47637
+ if(vErrors === null){
47638
+ vErrors = [err13];
47639
+ }
47640
+ else {
47641
+ vErrors.push(err13);
47642
+ }
47643
+ errors++;
47644
+ }
47645
+ if(!(data1 === "cloudhal.release-statement@1")){
47646
+ const err14 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues: schema598.properties.format.enum},message:"must be equal to one of the allowed values"};
47647
+ if(vErrors === null){
47648
+ vErrors = [err14];
47649
+ }
47650
+ else {
47651
+ vErrors.push(err14);
47652
+ }
47653
+ errors++;
47654
+ }
47655
+ }
47656
+ if(data.version !== undefined){
47657
+ let data2 = data.version;
47658
+ if(typeof data2 === "string"){
47659
+ if(!pattern305.test(data2)){
47660
+ const err15 = {instancePath:instancePath+"/version",schemaPath:"#/$defs/CloudhalVersion/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"+"\""};
47661
+ if(vErrors === null){
47662
+ vErrors = [err15];
47663
+ }
47664
+ else {
47665
+ vErrors.push(err15);
47666
+ }
47667
+ errors++;
47668
+ }
47669
+ }
47670
+ else {
47671
+ const err16 = {instancePath:instancePath+"/version",schemaPath:"#/$defs/CloudhalVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};
47672
+ if(vErrors === null){
47673
+ vErrors = [err16];
47674
+ }
47675
+ else {
47676
+ vErrors.push(err16);
47677
+ }
47678
+ errors++;
47679
+ }
47680
+ }
47681
+ if(data.channel !== undefined){
47682
+ let data3 = data.channel;
47683
+ if(typeof data3 !== "string"){
47684
+ const err17 = {instancePath:instancePath+"/channel",schemaPath:"#/properties/channel/type",keyword:"type",params:{type: "string"},message:"must be string"};
47685
+ if(vErrors === null){
47686
+ vErrors = [err17];
47687
+ }
47688
+ else {
47689
+ vErrors.push(err17);
47690
+ }
47691
+ errors++;
47692
+ }
47693
+ if(!((data3 === "stable") || (data3 === "next"))){
47694
+ const err18 = {instancePath:instancePath+"/channel",schemaPath:"#/properties/channel/enum",keyword:"enum",params:{allowedValues: schema598.properties.channel.enum},message:"must be equal to one of the allowed values"};
47695
+ if(vErrors === null){
47696
+ vErrors = [err18];
47697
+ }
47698
+ else {
47699
+ vErrors.push(err18);
47700
+ }
47701
+ errors++;
47702
+ }
47703
+ }
47704
+ if(data.securityRelease !== undefined){
47705
+ if(typeof data.securityRelease !== "boolean"){
47706
+ const err19 = {instancePath:instancePath+"/securityRelease",schemaPath:"#/properties/securityRelease/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};
47707
+ if(vErrors === null){
47708
+ vErrors = [err19];
47709
+ }
47710
+ else {
47711
+ vErrors.push(err19);
47712
+ }
47713
+ errors++;
47714
+ }
47715
+ }
47716
+ if(data.commit !== undefined){
47717
+ let data5 = data.commit;
47718
+ if(typeof data5 === "string"){
47719
+ if(!pattern306.test(data5)){
47720
+ const err20 = {instancePath:instancePath+"/commit",schemaPath:"#/properties/commit/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{40}$"},message:"must match pattern \""+"^[0-9a-f]{40}$"+"\""};
47721
+ if(vErrors === null){
47722
+ vErrors = [err20];
47723
+ }
47724
+ else {
47725
+ vErrors.push(err20);
47726
+ }
47727
+ errors++;
47728
+ }
47729
+ }
47730
+ else {
47731
+ const err21 = {instancePath:instancePath+"/commit",schemaPath:"#/properties/commit/type",keyword:"type",params:{type: "string"},message:"must be string"};
47732
+ if(vErrors === null){
47733
+ vErrors = [err21];
47734
+ }
47735
+ else {
47736
+ vErrors.push(err21);
47737
+ }
47738
+ errors++;
47739
+ }
47740
+ }
47741
+ if(data.createdAt !== undefined){
47742
+ let data6 = data.createdAt;
47743
+ if(typeof data6 === "string"){
47744
+ if(!(formats0.validate(data6))){
47745
+ const err22 = {instancePath:instancePath+"/createdAt",schemaPath:"#/$defs/Timestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};
47746
+ if(vErrors === null){
47747
+ vErrors = [err22];
47748
+ }
47749
+ else {
47750
+ vErrors.push(err22);
47751
+ }
47752
+ errors++;
47753
+ }
47754
+ }
47755
+ else {
47756
+ const err23 = {instancePath:instancePath+"/createdAt",schemaPath:"#/$defs/Timestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};
47757
+ if(vErrors === null){
47758
+ vErrors = [err23];
47759
+ }
47760
+ else {
47761
+ vErrors.push(err23);
47762
+ }
47763
+ errors++;
47764
+ }
47765
+ }
47766
+ if(data.signing !== undefined){
47767
+ let data7 = data.signing;
47768
+ if(data7 && typeof data7 == "object" && !Array.isArray(data7)){
47769
+ if(data7.keyId === undefined){
47770
+ const err24 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/required",keyword:"required",params:{missingProperty: "keyId"},message:"must have required property '"+"keyId"+"'"};
47771
+ if(vErrors === null){
47772
+ vErrors = [err24];
47773
+ }
47774
+ else {
47775
+ vErrors.push(err24);
47776
+ }
47777
+ errors++;
47778
+ }
47779
+ if(data7.algorithm === undefined){
47780
+ const err25 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/required",keyword:"required",params:{missingProperty: "algorithm"},message:"must have required property '"+"algorithm"+"'"};
47781
+ if(vErrors === null){
47782
+ vErrors = [err25];
47783
+ }
47784
+ else {
47785
+ vErrors.push(err25);
47786
+ }
47787
+ errors++;
47788
+ }
47789
+ if(data7.signature === undefined){
47790
+ const err26 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/required",keyword:"required",params:{missingProperty: "signature"},message:"must have required property '"+"signature"+"'"};
47791
+ if(vErrors === null){
47792
+ vErrors = [err26];
47793
+ }
47794
+ else {
47795
+ vErrors.push(err26);
47796
+ }
47797
+ errors++;
47798
+ }
47799
+ for(const key1 in data7){
47800
+ if(!(((key1 === "keyId") || (key1 === "algorithm")) || (key1 === "signature"))){
47801
+ const err27 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};
47802
+ if(vErrors === null){
47803
+ vErrors = [err27];
47804
+ }
47805
+ else {
47806
+ vErrors.push(err27);
47807
+ }
47808
+ errors++;
47809
+ }
47810
+ }
47811
+ if(data7.keyId !== undefined){
47812
+ let data8 = data7.keyId;
47813
+ if(typeof data8 === "string"){
47814
+ if(!pattern336.test(data8)){
47815
+ const err28 = {instancePath:instancePath+"/signing/keyId",schemaPath:"#/properties/signing/properties/keyId/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9-]{2,63}$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9-]{2,63}$"+"\""};
47816
+ if(vErrors === null){
47817
+ vErrors = [err28];
47818
+ }
47819
+ else {
47820
+ vErrors.push(err28);
47821
+ }
47822
+ errors++;
47823
+ }
47824
+ }
47825
+ else {
47826
+ const err29 = {instancePath:instancePath+"/signing/keyId",schemaPath:"#/properties/signing/properties/keyId/type",keyword:"type",params:{type: "string"},message:"must be string"};
47827
+ if(vErrors === null){
47828
+ vErrors = [err29];
47829
+ }
47830
+ else {
47831
+ vErrors.push(err29);
47832
+ }
47833
+ errors++;
47834
+ }
47835
+ }
47836
+ if(data7.algorithm !== undefined){
47837
+ let data9 = data7.algorithm;
47838
+ if(typeof data9 !== "string"){
47839
+ const err30 = {instancePath:instancePath+"/signing/algorithm",schemaPath:"#/properties/signing/properties/algorithm/type",keyword:"type",params:{type: "string"},message:"must be string"};
47840
+ if(vErrors === null){
47841
+ vErrors = [err30];
47842
+ }
47843
+ else {
47844
+ vErrors.push(err30);
47845
+ }
47846
+ errors++;
47847
+ }
47848
+ if(!(data9 === "Ed25519")){
47849
+ const err31 = {instancePath:instancePath+"/signing/algorithm",schemaPath:"#/properties/signing/properties/algorithm/enum",keyword:"enum",params:{allowedValues: schema598.properties.signing.properties.algorithm.enum},message:"must be equal to one of the allowed values"};
47850
+ if(vErrors === null){
47851
+ vErrors = [err31];
47852
+ }
47853
+ else {
47854
+ vErrors.push(err31);
47855
+ }
47856
+ errors++;
47857
+ }
47858
+ }
47859
+ if(data7.signature !== undefined){
47860
+ let data10 = data7.signature;
47861
+ if(typeof data10 !== "string"){
47862
+ const err32 = {instancePath:instancePath+"/signing/signature",schemaPath:"#/properties/signing/properties/signature/type",keyword:"type",params:{type: "string"},message:"must be string"};
47863
+ if(vErrors === null){
47864
+ vErrors = [err32];
47865
+ }
47866
+ else {
47867
+ vErrors.push(err32);
47868
+ }
47869
+ errors++;
47870
+ }
47871
+ if(!(data10 === "release-statement.sig")){
47872
+ const err33 = {instancePath:instancePath+"/signing/signature",schemaPath:"#/properties/signing/properties/signature/enum",keyword:"enum",params:{allowedValues: schema598.properties.signing.properties.signature.enum},message:"must be equal to one of the allowed values"};
47873
+ if(vErrors === null){
47874
+ vErrors = [err33];
47875
+ }
47876
+ else {
47877
+ vErrors.push(err33);
47878
+ }
47879
+ errors++;
47880
+ }
47881
+ }
47882
+ }
47883
+ else {
47884
+ const err34 = {instancePath:instancePath+"/signing",schemaPath:"#/properties/signing/type",keyword:"type",params:{type: "object"},message:"must be object"};
47885
+ if(vErrors === null){
47886
+ vErrors = [err34];
47887
+ }
47888
+ else {
47889
+ vErrors.push(err34);
47890
+ }
47891
+ errors++;
47892
+ }
47893
+ }
47894
+ if(data.manifest !== undefined){
47895
+ if(!(validate253(data.manifest, {instancePath:instancePath+"/manifest",parentData:data,parentDataProperty:"manifest",rootData,dynamicAnchors}))){
47896
+ vErrors = vErrors === null ? validate253.errors : vErrors.concat(validate253.errors);
47897
+ errors = vErrors.length;
47898
+ }
47899
+ }
47900
+ if(data.tarball !== undefined){
47901
+ if(!(validate253(data.tarball, {instancePath:instancePath+"/tarball",parentData:data,parentDataProperty:"tarball",rootData,dynamicAnchors}))){
47902
+ vErrors = vErrors === null ? validate253.errors : vErrors.concat(validate253.errors);
47903
+ errors = vErrors.length;
47904
+ }
47905
+ }
47906
+ }
47907
+ else {
47908
+ const err35 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
47909
+ if(vErrors === null){
47910
+ vErrors = [err35];
47911
+ }
47912
+ else {
47913
+ vErrors.push(err35);
47914
+ }
47915
+ errors++;
47916
+ }
47917
+ validate252.errors = vErrors;
47918
+ return errors === 0;
47919
+ }
47920
+ validate252.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
47921
+