import { ValidateFunction } from "ajv/dist/jtd"; import type { ConfigJson } from "../../types/config"; const validate: ValidateFunction = function validate57( data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}, ) { let vErrors = null; let errors = 0; let valid0 = false; if (data && typeof data == "object" && !Array.isArray(data)) { valid0 = true; var valid1; if (data.vip !== undefined) { let data0 = data.vip; const _errs0 = errors; let valid2 = false; if (data0 && typeof data0 == "object" && !Array.isArray(data0)) { valid2 = true; var valid3; if (data0.filter_field !== undefined) { let data1 = data0.filter_field; const _errs1 = errors; let valid4 = false; if (data1 && typeof data1 == "object" && !Array.isArray(data1)) { valid4 = true; var valid5; if (data1.type !== undefined) { let data2 = data1.type; const _errs2 = errors; if (!(typeof data2 == "string" && data2 === "genotype")) { validate57.errors = [ { instancePath: instancePath + "/vip/filter_field/type", schemaPath: "/properties/vip/properties/filter_field/properties/type/enum", keyword: "enum", params: { allowedValues: schema29.properties.vip.properties.filter_field.properties.type.enum }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid5 = _errs2 === errors; } else { valid5 = false; validate57.errors = [ { instancePath: instancePath + "/vip/filter_field", schemaPath: "/properties/vip/properties/filter_field/properties/type", keyword: "properties", params: { error: "missing", missingProperty: "type" }, message: "must have property 'type'", }, ]; return false; } if (valid5) { if (data1.name !== undefined) { const _errs3 = errors; if (!(typeof data1.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/vip/filter_field/name", schemaPath: "/properties/vip/properties/filter_field/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid5 = _errs3 === errors; } else { valid5 = false; validate57.errors = [ { instancePath: instancePath + "/vip/filter_field", schemaPath: "/properties/vip/properties/filter_field/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid5) { var valid6; if (data1.label !== undefined) { const _errs4 = errors; if (!(typeof data1.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/vip/filter_field/label", schemaPath: "/properties/vip/properties/filter_field/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid6 = _errs4 === errors; } else { valid6 = true; } if (valid6) { if (data1.description !== undefined) { const _errs5 = errors; if (!(typeof data1.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/vip/filter_field/description", schemaPath: "/properties/vip/properties/filter_field/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid6 = _errs5 === errors; } else { valid6 = true; } if (valid6) { for (const key0 in data1) { if (key0 !== "type" && key0 !== "name" && key0 !== "label" && key0 !== "description") { validate57.errors = [ { instancePath: instancePath + "/vip/filter_field/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/vip/properties/filter_field", keyword: "properties", params: { error: "additional", additionalProperty: key0 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid4) { validate57.errors = [ { instancePath: instancePath + "/vip/filter_field", schemaPath: "/properties/vip/properties/filter_field/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid3 = _errs1 === errors; } else { valid3 = false; validate57.errors = [ { instancePath: instancePath + "/vip", schemaPath: "/properties/vip/properties/filter_field", keyword: "properties", params: { error: "missing", missingProperty: "filter_field" }, message: "must have property 'filter_field'", }, ]; return false; } if (valid3) { if (data0.params !== undefined) { let data6 = data0.params; const _errs6 = errors; let valid7 = false; if (data6 && typeof data6 == "object" && !Array.isArray(data6)) { valid7 = true; var valid8; if (data6.vcf !== undefined) { let data7 = data6.vcf; const _errs7 = errors; let valid9 = false; if (data7 && typeof data7 == "object" && !Array.isArray(data7)) { valid9 = true; var valid10; if (data7.filter !== undefined) { let data8 = data7.filter; const _errs8 = errors; let valid11 = false; if (data8 && typeof data8 == "object" && !Array.isArray(data8)) { valid11 = true; var valid12; if (data8.classes !== undefined) { const _errs9 = errors; if (!(typeof data8.classes == "string")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter/classes", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter/properties/classes/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid12 = _errs9 === errors; } else { valid12 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter/properties/classes", keyword: "properties", params: { error: "missing", missingProperty: "classes" }, message: "must have property 'classes'", }, ]; return false; } if (valid12) { if (data8.consequences !== undefined) { const _errs10 = errors; if (!(typeof data8.consequences == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter/consequences", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter/properties/consequences/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid12 = _errs10 === errors; } else { valid12 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter/properties/consequences", keyword: "properties", params: { error: "missing", missingProperty: "consequences" }, message: "must have property 'consequences'", }, ]; return false; } } } if (!valid11) { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid10 = _errs8 === errors; } else { valid10 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter", keyword: "properties", params: { error: "missing", missingProperty: "filter" }, message: "must have property 'filter'", }, ]; return false; } if (valid10) { if (data7.filter_samples !== undefined) { let data11 = data7.filter_samples; const _errs12 = errors; let valid14 = false; if (data11 && typeof data11 == "object" && !Array.isArray(data11)) { valid14 = true; if (data11.classes !== undefined) { if (!(typeof data11.classes == "string")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter_samples/classes", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter_samples/properties/classes/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter_samples", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter_samples/properties/classes", keyword: "properties", params: { error: "missing", missingProperty: "classes" }, message: "must have property 'classes'", }, ]; return false; } } if (!valid14) { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf/filter_samples", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter_samples/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid10 = _errs12 === errors; } else { valid10 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf", schemaPath: "/properties/vip/properties/params/properties/vcf/properties/filter_samples", keyword: "properties", params: { error: "missing", missingProperty: "filter_samples" }, message: "must have property 'filter_samples'", }, ]; return false; } } } if (!valid9) { validate57.errors = [ { instancePath: instancePath + "/vip/params/vcf", schemaPath: "/properties/vip/properties/params/properties/vcf/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid8 = _errs7 === errors; } else { valid8 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params", schemaPath: "/properties/vip/properties/params/properties/vcf", keyword: "properties", params: { error: "missing", missingProperty: "vcf" }, message: "must have property 'vcf'", }, ]; return false; } if (valid8) { if (data6.cram !== undefined) { let data13 = data6.cram; let valid19 = false; if (data13 && typeof data13 == "object" && !Array.isArray(data13)) { valid19 = true; var valid20; if (data13.call_snv !== undefined) { const _errs17 = errors; if (!(typeof data13.call_snv == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/cram/call_snv", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_snv/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid20 = _errs17 === errors; } else { valid20 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/cram", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_snv", keyword: "properties", params: { error: "missing", missingProperty: "call_snv" }, message: "must have property 'call_snv'", }, ]; return false; } if (valid20) { if (data13.call_str !== undefined) { const _errs18 = errors; if (!(typeof data13.call_str == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/cram/call_str", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_str/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid20 = _errs18 === errors; } else { valid20 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/cram", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_str", keyword: "properties", params: { error: "missing", missingProperty: "call_str" }, message: "must have property 'call_str'", }, ]; return false; } if (valid20) { if (data13.call_sv !== undefined) { const _errs19 = errors; if (!(typeof data13.call_sv == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/cram/call_sv", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_sv/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid20 = _errs19 === errors; } else { valid20 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/cram", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_sv", keyword: "properties", params: { error: "missing", missingProperty: "call_sv" }, message: "must have property 'call_sv'", }, ]; return false; } if (valid20) { if (data13.call_cnv !== undefined) { const _errs20 = errors; if (!(typeof data13.call_cnv == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/vip/params/cram/call_cnv", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_cnv/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid20 = _errs20 === errors; } else { valid20 = false; validate57.errors = [ { instancePath: instancePath + "/vip/params/cram", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties/call_cnv", keyword: "properties", params: { error: "missing", missingProperty: "call_cnv" }, message: "must have property 'call_cnv'", }, ]; return false; } } } } } if (!valid19) { validate57.errors = [ { instancePath: instancePath + "/vip/params/cram", schemaPath: "/properties/vip/properties/params/optionalProperties/cram/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } } } } if (!valid7) { validate57.errors = [ { instancePath: instancePath + "/vip/params", schemaPath: "/properties/vip/properties/params/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid3 = _errs6 === errors; } else { valid3 = false; validate57.errors = [ { instancePath: instancePath + "/vip", schemaPath: "/properties/vip/properties/params", keyword: "properties", params: { error: "missing", missingProperty: "params" }, message: "must have property 'params'", }, ]; return false; } if (valid3) { for (const key1 in data0) { if (key1 !== "filter_field" && key1 !== "params") { validate57.errors = [ { instancePath: instancePath + "/vip/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/vip", keyword: "properties", params: { error: "additional", additionalProperty: key1 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2) { validate57.errors = [ { instancePath: instancePath + "/vip", schemaPath: "/properties/vip/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs0 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/vip", keyword: "properties", params: { error: "missing", missingProperty: "vip" }, message: "must have property 'vip'", }, ]; return false; } if (valid1) { if (data.sample_variants !== undefined) { let data18 = data.sample_variants; const _errs23 = errors; let valid23 = false; if (data18 && typeof data18 == "object" && !Array.isArray(data18)) { valid23 = true; var valid24; if (data18.cells !== undefined) { let data19 = data18.cells; const _errs24 = errors; let valid25 = false; if (data19 && typeof data19 == "object" && !Array.isArray(data19)) { valid25 = true; var valid27; if (data19.all !== undefined) { let data20 = data19.all; const _errs25 = errors; let valid28 = false; if (!valid28) { if (Array.isArray(data20)) { var valid29 = true; const len0 = data20.length; for (let i0 = 0; i0 < len0; i0++) { let data21 = data20[i0]; const _errs26 = errors; let valid30 = false; if (data21 && typeof data21 == "object" && !Array.isArray(data21)) { const tag0 = data21.type; if (tag0 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag0 == "string") { if (tag0 === "fixed") { const _errs27 = errors; let valid32 = false; valid32 = true; var valid33; if (data21.name !== undefined) { let data22 = data21.name; const _errs28 = errors; if ( !( typeof data22 == "string" && (data22 === "chrom" || data22 === "pos" || data22 === "id" || data22 === "ref" || data22 === "alt" || data22 === "qual" || data22 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.all .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid33 = _errs28 === errors; } else { valid33 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid33) { var valid34; if (data21.label !== undefined) { const _errs29 = errors; if (!(typeof data21.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid34 = _errs29 === errors; } else { valid34 = true; } if (valid34) { if (data21.description !== undefined) { const _errs30 = errors; if (!(typeof data21.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid34 = _errs30 === errors; } else { valid34 = true; } if (valid34) { for (const key2 in data21) { if ( key2 !== "type" && key2 !== "name" && key2 !== "label" && key2 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key2 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid32) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid31 = _errs27 === errors; valid30 = valid31; } else if (tag0 === "info") { const _errs31 = errors; let valid36 = false; valid36 = true; var valid37; if (data21.name !== undefined) { const _errs32 = errors; if (!(typeof data21.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid37 = _errs32 === errors; } else { valid37 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid37) { var valid38; if (data21.label !== undefined) { const _errs33 = errors; if (!(typeof data21.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid38 = _errs33 === errors; } else { valid38 = true; } if (valid38) { if (data21.description !== undefined) { const _errs34 = errors; if (!(typeof data21.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid38 = _errs34 === errors; } else { valid38 = true; } if (valid38) { for (const key3 in data21) { if ( key3 !== "type" && key3 !== "name" && key3 !== "label" && key3 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key3 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid36) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid35 = _errs31 === errors; valid30 = valid35; } else if (tag0 === "format") { const _errs35 = errors; let valid40 = false; valid40 = true; var valid41; if (data21.name !== undefined) { const _errs36 = errors; if (!(typeof data21.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid41 = _errs36 === errors; } else { valid41 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid41) { var valid42; if (data21.label !== undefined) { const _errs37 = errors; if (!(typeof data21.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid42 = _errs37 === errors; } else { valid42 = true; } if (valid42) { if (data21.description !== undefined) { const _errs38 = errors; if (!(typeof data21.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid42 = _errs38 === errors; } else { valid42 = true; } if (valid42) { for (const key4 in data21) { if ( key4 !== "type" && key4 !== "name" && key4 !== "label" && key4 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key4 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid40) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid39 = _errs35 === errors; valid30 = valid39; } else if (tag0 === "genotype") { const _errs39 = errors; let valid44 = false; valid44 = true; var valid45; if (data21.name !== undefined) { const _errs40 = errors; if (!(typeof data21.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid45 = _errs40 === errors; } else { valid45 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid45) { var valid46; if (data21.label !== undefined) { const _errs41 = errors; if (!(typeof data21.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid46 = _errs41 === errors; } else { valid46 = true; } if (valid46) { if (data21.description !== undefined) { const _errs42 = errors; if (!(typeof data21.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid46 = _errs42 === errors; } else { valid46 = true; } if (valid46) { for (const key5 in data21) { if ( key5 !== "type" && key5 !== "name" && key5 !== "label" && key5 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key5 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid44) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid43 = _errs39 === errors; valid30 = valid43; } else if (tag0 === "composed") { const _errs43 = errors; let valid48 = false; valid48 = true; var valid49; if (data21.name !== undefined) { let data34 = data21.name; const _errs44 = errors; if ( !( typeof data34 == "string" && (data34 === "clinVar" || data34 === "confidenceInterval" || data34 === "gene" || data34 === "genotype" || data34 === "genotype_maternal" || data34 === "genotype_paternal" || data34 === "gnomAdAf" || data34 === "hpo" || data34 === "inheritancePattern" || data34 === "locus" || data34 === "spanningReads" || data34 === "vipC" || data34 === "vipCS" || data34 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.all .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid49 = _errs44 === errors; } else { valid49 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid49) { var valid50; if (data21.label !== undefined) { const _errs45 = errors; if (!(typeof data21.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid50 = _errs45 === errors; } else { valid50 = true; } if (valid50) { if (data21.description !== undefined) { const _errs46 = errors; if (!(typeof data21.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid50 = _errs46 === errors; } else { valid50 = true; } if (valid50) { for (const key6 in data21) { if ( key6 !== "type" && key6 !== "name" && key6 !== "label" && key6 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key6 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid48) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid47 = _errs43 === errors; valid30 = valid47; } else if (tag0 === "group") { const _errs47 = errors; let valid52 = false; valid52 = true; var valid53; if (data21.fields !== undefined) { let data37 = data21.fields; const _errs48 = errors; let valid54 = false; if (!valid54) { if (Array.isArray(data37)) { var valid55 = true; const len1 = data37.length; for (let i1 = 0; i1 < len1; i1++) { let data38 = data37[i1]; const _errs49 = errors; let valid56 = false; if (data38 && typeof data38 == "object" && !Array.isArray(data38)) { const tag1 = data38.type; if (tag1 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag1 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag1 == "string") { if (tag1 === "fixed") { const _errs50 = errors; let valid58 = false; valid58 = true; var valid59; if (data38.name !== undefined) { let data39 = data38.name; const _errs51 = errors; if ( !( typeof data39 == "string" && (data39 === "chrom" || data39 === "pos" || data39 === "id" || data39 === "ref" || data39 === "alt" || data39 === "qual" || data39 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.all.elements.mapping.group.properties.fields .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid59 = _errs51 === errors; } else { valid59 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid59) { var valid60; if (data38.label !== undefined) { const _errs52 = errors; if (!(typeof data38.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid60 = _errs52 === errors; } else { valid60 = true; } if (valid60) { if (data38.description !== undefined) { const _errs53 = errors; if (!(typeof data38.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid60 = _errs53 === errors; } else { valid60 = true; } if (valid60) { for (const key7 in data38) { if ( key7 !== "type" && key7 !== "name" && key7 !== "label" && key7 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key7 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid58) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid57 = _errs50 === errors; valid56 = valid57; } else if (tag1 === "info") { const _errs54 = errors; let valid62 = false; valid62 = true; var valid63; if (data38.name !== undefined) { const _errs55 = errors; if (!(typeof data38.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid63 = _errs55 === errors; } else { valid63 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid63) { var valid64; if (data38.label !== undefined) { const _errs56 = errors; if (!(typeof data38.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid64 = _errs56 === errors; } else { valid64 = true; } if (valid64) { if (data38.description !== undefined) { const _errs57 = errors; if (!(typeof data38.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid64 = _errs57 === errors; } else { valid64 = true; } if (valid64) { for (const key8 in data38) { if ( key8 !== "type" && key8 !== "name" && key8 !== "label" && key8 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key8 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid62) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid61 = _errs54 === errors; valid56 = valid61; } else if (tag1 === "format") { const _errs58 = errors; let valid66 = false; valid66 = true; var valid67; if (data38.name !== undefined) { const _errs59 = errors; if (!(typeof data38.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid67 = _errs59 === errors; } else { valid67 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid67) { var valid68; if (data38.label !== undefined) { const _errs60 = errors; if (!(typeof data38.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid68 = _errs60 === errors; } else { valid68 = true; } if (valid68) { if (data38.description !== undefined) { const _errs61 = errors; if (!(typeof data38.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid68 = _errs61 === errors; } else { valid68 = true; } if (valid68) { for (const key9 in data38) { if ( key9 !== "type" && key9 !== "name" && key9 !== "label" && key9 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key9 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid66) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid65 = _errs58 === errors; valid56 = valid65; } else if (tag1 === "genotype") { const _errs62 = errors; let valid70 = false; valid70 = true; var valid71; if (data38.name !== undefined) { const _errs63 = errors; if (!(typeof data38.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid71 = _errs63 === errors; } else { valid71 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid71) { var valid72; if (data38.label !== undefined) { const _errs64 = errors; if (!(typeof data38.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid72 = _errs64 === errors; } else { valid72 = true; } if (valid72) { if (data38.description !== undefined) { const _errs65 = errors; if (!(typeof data38.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid72 = _errs65 === errors; } else { valid72 = true; } if (valid72) { for (const key10 in data38) { if ( key10 !== "type" && key10 !== "name" && key10 !== "label" && key10 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key10 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid70) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid69 = _errs62 === errors; valid56 = valid69; } else if (tag1 === "composed") { const _errs66 = errors; let valid74 = false; valid74 = true; var valid75; if (data38.name !== undefined) { let data51 = data38.name; const _errs67 = errors; if ( !( typeof data51 == "string" && (data51 === "clinVar" || data51 === "gene" || data51 === "genotype" || data51 === "gnomAdAf" || data51 === "hpo" || data51 === "inheritancePattern" || data51 === "locus" || data51 === "ref" || data51 === "vipC" || data51 === "vipCS" || data51 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.all.elements.mapping.group.properties.fields .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid75 = _errs67 === errors; } else { valid75 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid75) { var valid76; if (data38.label !== undefined) { const _errs68 = errors; if (!(typeof data38.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid76 = _errs68 === errors; } else { valid76 = true; } if (valid76) { if (data38.description !== undefined) { const _errs69 = errors; if (!(typeof data38.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid76 = _errs69 === errors; } else { valid76 = true; } if (valid76) { for (const key11 in data38) { if ( key11 !== "type" && key11 !== "name" && key11 !== "label" && key11 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key11 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid74) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid73 = _errs66 === errors; valid56 = valid73; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag1 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag1 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid56) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields/" + i1, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid55 = _errs49 === errors; if (!valid55) { break; } } valid54 = valid55; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/fields", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid53 = _errs48 === errors; } else { valid53 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid53) { for (const key12 in data21) { if (key12 !== "type" && key12 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/" + key12.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key12 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid52) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid51 = _errs47 === errors; valid30 = valid51; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid30) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all/" + i0, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid29 = _errs26 === errors; if (!valid29) { break; } } valid28 = valid29; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/all", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid27 = _errs25 === errors; } else { valid27 = true; } if (valid27) { if (data19.snv !== undefined) { let data54 = data19.snv; const _errs70 = errors; let valid78 = false; if (!valid78) { if (Array.isArray(data54)) { var valid79 = true; const len2 = data54.length; for (let i2 = 0; i2 < len2; i2++) { let data55 = data54[i2]; const _errs71 = errors; let valid80 = false; if (data55 && typeof data55 == "object" && !Array.isArray(data55)) { const tag2 = data55.type; if (tag2 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag2 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag2 == "string") { if (tag2 === "fixed") { const _errs72 = errors; let valid82 = false; valid82 = true; var valid83; if (data55.name !== undefined) { let data56 = data55.name; const _errs73 = errors; if ( !( typeof data56 == "string" && (data56 === "chrom" || data56 === "pos" || data56 === "id" || data56 === "ref" || data56 === "alt" || data56 === "qual" || data56 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.snv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid83 = _errs73 === errors; } else { valid83 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid83) { var valid84; if (data55.label !== undefined) { const _errs74 = errors; if (!(typeof data55.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid84 = _errs74 === errors; } else { valid84 = true; } if (valid84) { if (data55.description !== undefined) { const _errs75 = errors; if (!(typeof data55.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid84 = _errs75 === errors; } else { valid84 = true; } if (valid84) { for (const key13 in data55) { if ( key13 !== "type" && key13 !== "name" && key13 !== "label" && key13 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/" + key13.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key13 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid82) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid81 = _errs72 === errors; valid80 = valid81; } else if (tag2 === "info") { const _errs76 = errors; let valid86 = false; valid86 = true; var valid87; if (data55.name !== undefined) { const _errs77 = errors; if (!(typeof data55.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid87 = _errs77 === errors; } else { valid87 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid87) { var valid88; if (data55.label !== undefined) { const _errs78 = errors; if (!(typeof data55.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid88 = _errs78 === errors; } else { valid88 = true; } if (valid88) { if (data55.description !== undefined) { const _errs79 = errors; if (!(typeof data55.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid88 = _errs79 === errors; } else { valid88 = true; } if (valid88) { for (const key14 in data55) { if ( key14 !== "type" && key14 !== "name" && key14 !== "label" && key14 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/" + key14.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key14 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid86) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid85 = _errs76 === errors; valid80 = valid85; } else if (tag2 === "format") { const _errs80 = errors; let valid90 = false; valid90 = true; var valid91; if (data55.name !== undefined) { const _errs81 = errors; if (!(typeof data55.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid91 = _errs81 === errors; } else { valid91 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid91) { var valid92; if (data55.label !== undefined) { const _errs82 = errors; if (!(typeof data55.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid92 = _errs82 === errors; } else { valid92 = true; } if (valid92) { if (data55.description !== undefined) { const _errs83 = errors; if (!(typeof data55.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid92 = _errs83 === errors; } else { valid92 = true; } if (valid92) { for (const key15 in data55) { if ( key15 !== "type" && key15 !== "name" && key15 !== "label" && key15 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/" + key15.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key15 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid90) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid89 = _errs80 === errors; valid80 = valid89; } else if (tag2 === "genotype") { const _errs84 = errors; let valid94 = false; valid94 = true; var valid95; if (data55.name !== undefined) { const _errs85 = errors; if (!(typeof data55.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid95 = _errs85 === errors; } else { valid95 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid95) { var valid96; if (data55.label !== undefined) { const _errs86 = errors; if (!(typeof data55.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid96 = _errs86 === errors; } else { valid96 = true; } if (valid96) { if (data55.description !== undefined) { const _errs87 = errors; if (!(typeof data55.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid96 = _errs87 === errors; } else { valid96 = true; } if (valid96) { for (const key16 in data55) { if ( key16 !== "type" && key16 !== "name" && key16 !== "label" && key16 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/" + key16.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key16 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid94) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid93 = _errs84 === errors; valid80 = valid93; } else if (tag2 === "composed") { const _errs88 = errors; let valid98 = false; valid98 = true; var valid99; if (data55.name !== undefined) { let data68 = data55.name; const _errs89 = errors; if ( !( typeof data68 == "string" && (data68 === "clinVar" || data68 === "confidenceInterval" || data68 === "gene" || data68 === "genotype" || data68 === "genotype_maternal" || data68 === "genotype_paternal" || data68 === "gnomAdAf" || data68 === "hpo" || data68 === "inheritancePattern" || data68 === "locus" || data68 === "spanningReads" || data68 === "vipC" || data68 === "vipCS" || data68 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.snv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid99 = _errs89 === errors; } else { valid99 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid99) { var valid100; if (data55.label !== undefined) { const _errs90 = errors; if (!(typeof data55.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid100 = _errs90 === errors; } else { valid100 = true; } if (valid100) { if (data55.description !== undefined) { const _errs91 = errors; if (!(typeof data55.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid100 = _errs91 === errors; } else { valid100 = true; } if (valid100) { for (const key17 in data55) { if ( key17 !== "type" && key17 !== "name" && key17 !== "label" && key17 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/" + key17.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key17 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid98) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid97 = _errs88 === errors; valid80 = valid97; } else if (tag2 === "group") { const _errs92 = errors; let valid102 = false; valid102 = true; var valid103; if (data55.fields !== undefined) { let data71 = data55.fields; const _errs93 = errors; let valid104 = false; if (!valid104) { if (Array.isArray(data71)) { var valid105 = true; const len3 = data71.length; for (let i3 = 0; i3 < len3; i3++) { let data72 = data71[i3]; const _errs94 = errors; let valid106 = false; if (data72 && typeof data72 == "object" && !Array.isArray(data72)) { const tag3 = data72.type; if (tag3 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag3 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag3 == "string") { if (tag3 === "fixed") { const _errs95 = errors; let valid108 = false; valid108 = true; var valid109; if (data72.name !== undefined) { let data73 = data72.name; const _errs96 = errors; if ( !( typeof data73 == "string" && (data73 === "chrom" || data73 === "pos" || data73 === "id" || data73 === "ref" || data73 === "alt" || data73 === "qual" || data73 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.snv.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid109 = _errs96 === errors; } else { valid109 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid109) { var valid110; if (data72.label !== undefined) { const _errs97 = errors; if (!(typeof data72.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid110 = _errs97 === errors; } else { valid110 = true; } if (valid110) { if (data72.description !== undefined) { const _errs98 = errors; if (!(typeof data72.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid110 = _errs98 === errors; } else { valid110 = true; } if (valid110) { for (const key18 in data72) { if ( key18 !== "type" && key18 !== "name" && key18 !== "label" && key18 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/" + key18.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key18 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid108) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid107 = _errs95 === errors; valid106 = valid107; } else if (tag3 === "info") { const _errs99 = errors; let valid112 = false; valid112 = true; var valid113; if (data72.name !== undefined) { const _errs100 = errors; if (!(typeof data72.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid113 = _errs100 === errors; } else { valid113 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid113) { var valid114; if (data72.label !== undefined) { const _errs101 = errors; if (!(typeof data72.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid114 = _errs101 === errors; } else { valid114 = true; } if (valid114) { if (data72.description !== undefined) { const _errs102 = errors; if (!(typeof data72.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid114 = _errs102 === errors; } else { valid114 = true; } if (valid114) { for (const key19 in data72) { if ( key19 !== "type" && key19 !== "name" && key19 !== "label" && key19 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/" + key19.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key19 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid112) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid111 = _errs99 === errors; valid106 = valid111; } else if (tag3 === "format") { const _errs103 = errors; let valid116 = false; valid116 = true; var valid117; if (data72.name !== undefined) { const _errs104 = errors; if (!(typeof data72.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid117 = _errs104 === errors; } else { valid117 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid117) { var valid118; if (data72.label !== undefined) { const _errs105 = errors; if (!(typeof data72.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid118 = _errs105 === errors; } else { valid118 = true; } if (valid118) { if (data72.description !== undefined) { const _errs106 = errors; if (!(typeof data72.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid118 = _errs106 === errors; } else { valid118 = true; } if (valid118) { for (const key20 in data72) { if ( key20 !== "type" && key20 !== "name" && key20 !== "label" && key20 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/" + key20.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key20 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid116) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid115 = _errs103 === errors; valid106 = valid115; } else if (tag3 === "genotype") { const _errs107 = errors; let valid120 = false; valid120 = true; var valid121; if (data72.name !== undefined) { const _errs108 = errors; if (!(typeof data72.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid121 = _errs108 === errors; } else { valid121 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid121) { var valid122; if (data72.label !== undefined) { const _errs109 = errors; if (!(typeof data72.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid122 = _errs109 === errors; } else { valid122 = true; } if (valid122) { if (data72.description !== undefined) { const _errs110 = errors; if (!(typeof data72.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid122 = _errs110 === errors; } else { valid122 = true; } if (valid122) { for (const key21 in data72) { if ( key21 !== "type" && key21 !== "name" && key21 !== "label" && key21 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/" + key21.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key21 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid120) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid119 = _errs107 === errors; valid106 = valid119; } else if (tag3 === "composed") { const _errs111 = errors; let valid124 = false; valid124 = true; var valid125; if (data72.name !== undefined) { let data85 = data72.name; const _errs112 = errors; if ( !( typeof data85 == "string" && (data85 === "clinVar" || data85 === "gene" || data85 === "genotype" || data85 === "gnomAdAf" || data85 === "hpo" || data85 === "inheritancePattern" || data85 === "locus" || data85 === "ref" || data85 === "vipC" || data85 === "vipCS" || data85 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.snv.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid125 = _errs112 === errors; } else { valid125 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid125) { var valid126; if (data72.label !== undefined) { const _errs113 = errors; if (!(typeof data72.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid126 = _errs113 === errors; } else { valid126 = true; } if (valid126) { if (data72.description !== undefined) { const _errs114 = errors; if (!(typeof data72.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid126 = _errs114 === errors; } else { valid126 = true; } if (valid126) { for (const key22 in data72) { if ( key22 !== "type" && key22 !== "name" && key22 !== "label" && key22 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/" + key22.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key22 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid124) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid123 = _errs111 === errors; valid106 = valid123; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag3 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag3 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid106) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields/" + i3, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid105 = _errs94 === errors; if (!valid105) { break; } } valid104 = valid105; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/fields", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid103 = _errs93 === errors; } else { valid103 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid103) { for (const key23 in data55) { if (key23 !== "type" && key23 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/" + key23.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key23 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid102) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid101 = _errs92 === errors; valid80 = valid101; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag2 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag2 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid80) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv/" + i2, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid79 = _errs71 === errors; if (!valid79) { break; } } valid78 = valid79; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/snv", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid27 = _errs70 === errors; } else { valid27 = true; } if (valid27) { if (data19.str !== undefined) { let data88 = data19.str; const _errs115 = errors; let valid128 = false; if (!valid128) { if (Array.isArray(data88)) { var valid129 = true; const len4 = data88.length; for (let i4 = 0; i4 < len4; i4++) { let data89 = data88[i4]; const _errs116 = errors; let valid130 = false; if (data89 && typeof data89 == "object" && !Array.isArray(data89)) { const tag4 = data89.type; if (tag4 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag4 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag4 == "string") { if (tag4 === "fixed") { const _errs117 = errors; let valid132 = false; valid132 = true; var valid133; if (data89.name !== undefined) { let data90 = data89.name; const _errs118 = errors; if ( !( typeof data90 == "string" && (data90 === "chrom" || data90 === "pos" || data90 === "id" || data90 === "ref" || data90 === "alt" || data90 === "qual" || data90 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.str .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid133 = _errs118 === errors; } else { valid133 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid133) { var valid134; if (data89.label !== undefined) { const _errs119 = errors; if (!(typeof data89.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid134 = _errs119 === errors; } else { valid134 = true; } if (valid134) { if (data89.description !== undefined) { const _errs120 = errors; if (!(typeof data89.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid134 = _errs120 === errors; } else { valid134 = true; } if (valid134) { for (const key24 in data89) { if ( key24 !== "type" && key24 !== "name" && key24 !== "label" && key24 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/" + key24.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key24 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid132) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid131 = _errs117 === errors; valid130 = valid131; } else if (tag4 === "info") { const _errs121 = errors; let valid136 = false; valid136 = true; var valid137; if (data89.name !== undefined) { const _errs122 = errors; if (!(typeof data89.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid137 = _errs122 === errors; } else { valid137 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid137) { var valid138; if (data89.label !== undefined) { const _errs123 = errors; if (!(typeof data89.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid138 = _errs123 === errors; } else { valid138 = true; } if (valid138) { if (data89.description !== undefined) { const _errs124 = errors; if (!(typeof data89.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid138 = _errs124 === errors; } else { valid138 = true; } if (valid138) { for (const key25 in data89) { if ( key25 !== "type" && key25 !== "name" && key25 !== "label" && key25 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/" + key25.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key25 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid136) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid135 = _errs121 === errors; valid130 = valid135; } else if (tag4 === "format") { const _errs125 = errors; let valid140 = false; valid140 = true; var valid141; if (data89.name !== undefined) { const _errs126 = errors; if (!(typeof data89.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid141 = _errs126 === errors; } else { valid141 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid141) { var valid142; if (data89.label !== undefined) { const _errs127 = errors; if (!(typeof data89.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid142 = _errs127 === errors; } else { valid142 = true; } if (valid142) { if (data89.description !== undefined) { const _errs128 = errors; if (!(typeof data89.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid142 = _errs128 === errors; } else { valid142 = true; } if (valid142) { for (const key26 in data89) { if ( key26 !== "type" && key26 !== "name" && key26 !== "label" && key26 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/" + key26.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key26 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid140) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid139 = _errs125 === errors; valid130 = valid139; } else if (tag4 === "genotype") { const _errs129 = errors; let valid144 = false; valid144 = true; var valid145; if (data89.name !== undefined) { const _errs130 = errors; if (!(typeof data89.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid145 = _errs130 === errors; } else { valid145 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid145) { var valid146; if (data89.label !== undefined) { const _errs131 = errors; if (!(typeof data89.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid146 = _errs131 === errors; } else { valid146 = true; } if (valid146) { if (data89.description !== undefined) { const _errs132 = errors; if (!(typeof data89.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid146 = _errs132 === errors; } else { valid146 = true; } if (valid146) { for (const key27 in data89) { if ( key27 !== "type" && key27 !== "name" && key27 !== "label" && key27 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/" + key27.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key27 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid144) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid143 = _errs129 === errors; valid130 = valid143; } else if (tag4 === "composed") { const _errs133 = errors; let valid148 = false; valid148 = true; var valid149; if (data89.name !== undefined) { let data102 = data89.name; const _errs134 = errors; if ( !( typeof data102 == "string" && (data102 === "clinVar" || data102 === "confidenceInterval" || data102 === "gene" || data102 === "genotype" || data102 === "genotype_maternal" || data102 === "genotype_paternal" || data102 === "gnomAdAf" || data102 === "hpo" || data102 === "inheritancePattern" || data102 === "locus" || data102 === "spanningReads" || data102 === "vipC" || data102 === "vipCS" || data102 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.str .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid149 = _errs134 === errors; } else { valid149 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid149) { var valid150; if (data89.label !== undefined) { const _errs135 = errors; if (!(typeof data89.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid150 = _errs135 === errors; } else { valid150 = true; } if (valid150) { if (data89.description !== undefined) { const _errs136 = errors; if (!(typeof data89.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid150 = _errs136 === errors; } else { valid150 = true; } if (valid150) { for (const key28 in data89) { if ( key28 !== "type" && key28 !== "name" && key28 !== "label" && key28 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/" + key28.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key28 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid148) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid147 = _errs133 === errors; valid130 = valid147; } else if (tag4 === "group") { const _errs137 = errors; let valid152 = false; valid152 = true; var valid153; if (data89.fields !== undefined) { let data105 = data89.fields; const _errs138 = errors; let valid154 = false; if (!valid154) { if (Array.isArray(data105)) { var valid155 = true; const len5 = data105.length; for (let i5 = 0; i5 < len5; i5++) { let data106 = data105[i5]; const _errs139 = errors; let valid156 = false; if (data106 && typeof data106 == "object" && !Array.isArray(data106)) { const tag5 = data106.type; if (tag5 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag5 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag5 == "string") { if (tag5 === "fixed") { const _errs140 = errors; let valid158 = false; valid158 = true; var valid159; if (data106.name !== undefined) { let data107 = data106.name; const _errs141 = errors; if ( !( typeof data107 == "string" && (data107 === "chrom" || data107 === "pos" || data107 === "id" || data107 === "ref" || data107 === "alt" || data107 === "qual" || data107 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.str.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid159 = _errs141 === errors; } else { valid159 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid159) { var valid160; if (data106.label !== undefined) { const _errs142 = errors; if (!(typeof data106.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid160 = _errs142 === errors; } else { valid160 = true; } if (valid160) { if (data106.description !== undefined) { const _errs143 = errors; if (!(typeof data106.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid160 = _errs143 === errors; } else { valid160 = true; } if (valid160) { for (const key29 in data106) { if ( key29 !== "type" && key29 !== "name" && key29 !== "label" && key29 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/" + key29.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key29 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid158) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid157 = _errs140 === errors; valid156 = valid157; } else if (tag5 === "info") { const _errs144 = errors; let valid162 = false; valid162 = true; var valid163; if (data106.name !== undefined) { const _errs145 = errors; if (!(typeof data106.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid163 = _errs145 === errors; } else { valid163 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid163) { var valid164; if (data106.label !== undefined) { const _errs146 = errors; if (!(typeof data106.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid164 = _errs146 === errors; } else { valid164 = true; } if (valid164) { if (data106.description !== undefined) { const _errs147 = errors; if (!(typeof data106.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid164 = _errs147 === errors; } else { valid164 = true; } if (valid164) { for (const key30 in data106) { if ( key30 !== "type" && key30 !== "name" && key30 !== "label" && key30 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/" + key30.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key30 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid162) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid161 = _errs144 === errors; valid156 = valid161; } else if (tag5 === "format") { const _errs148 = errors; let valid166 = false; valid166 = true; var valid167; if (data106.name !== undefined) { const _errs149 = errors; if (!(typeof data106.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid167 = _errs149 === errors; } else { valid167 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid167) { var valid168; if (data106.label !== undefined) { const _errs150 = errors; if (!(typeof data106.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid168 = _errs150 === errors; } else { valid168 = true; } if (valid168) { if (data106.description !== undefined) { const _errs151 = errors; if (!(typeof data106.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid168 = _errs151 === errors; } else { valid168 = true; } if (valid168) { for (const key31 in data106) { if ( key31 !== "type" && key31 !== "name" && key31 !== "label" && key31 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/" + key31.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key31 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid166) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid165 = _errs148 === errors; valid156 = valid165; } else if (tag5 === "genotype") { const _errs152 = errors; let valid170 = false; valid170 = true; var valid171; if (data106.name !== undefined) { const _errs153 = errors; if (!(typeof data106.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid171 = _errs153 === errors; } else { valid171 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid171) { var valid172; if (data106.label !== undefined) { const _errs154 = errors; if (!(typeof data106.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid172 = _errs154 === errors; } else { valid172 = true; } if (valid172) { if (data106.description !== undefined) { const _errs155 = errors; if (!(typeof data106.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid172 = _errs155 === errors; } else { valid172 = true; } if (valid172) { for (const key32 in data106) { if ( key32 !== "type" && key32 !== "name" && key32 !== "label" && key32 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/" + key32.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key32 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid170) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid169 = _errs152 === errors; valid156 = valid169; } else if (tag5 === "composed") { const _errs156 = errors; let valid174 = false; valid174 = true; var valid175; if (data106.name !== undefined) { let data119 = data106.name; const _errs157 = errors; if ( !( typeof data119 == "string" && (data119 === "clinVar" || data119 === "gene" || data119 === "genotype" || data119 === "gnomAdAf" || data119 === "hpo" || data119 === "inheritancePattern" || data119 === "locus" || data119 === "ref" || data119 === "vipC" || data119 === "vipCS" || data119 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.str.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid175 = _errs157 === errors; } else { valid175 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid175) { var valid176; if (data106.label !== undefined) { const _errs158 = errors; if (!(typeof data106.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid176 = _errs158 === errors; } else { valid176 = true; } if (valid176) { if (data106.description !== undefined) { const _errs159 = errors; if (!(typeof data106.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid176 = _errs159 === errors; } else { valid176 = true; } if (valid176) { for (const key33 in data106) { if ( key33 !== "type" && key33 !== "name" && key33 !== "label" && key33 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/" + key33.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key33 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid174) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid173 = _errs156 === errors; valid156 = valid173; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag5 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag5 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid156) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields/" + i5, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid155 = _errs139 === errors; if (!valid155) { break; } } valid154 = valid155; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/fields", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid153 = _errs138 === errors; } else { valid153 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid153) { for (const key34 in data89) { if (key34 !== "type" && key34 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/" + key34.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key34 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid152) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid151 = _errs137 === errors; valid130 = valid151; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag4 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag4 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid130) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str/" + i4, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid129 = _errs116 === errors; if (!valid129) { break; } } valid128 = valid129; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/str", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid27 = _errs115 === errors; } else { valid27 = true; } if (valid27) { if (data19.sv !== undefined) { let data122 = data19.sv; const _errs160 = errors; let valid178 = false; if (!valid178) { if (Array.isArray(data122)) { var valid179 = true; const len6 = data122.length; for (let i6 = 0; i6 < len6; i6++) { let data123 = data122[i6]; const _errs161 = errors; let valid180 = false; if (data123 && typeof data123 == "object" && !Array.isArray(data123)) { const tag6 = data123.type; if (tag6 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag6 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag6 == "string") { if (tag6 === "fixed") { const _errs162 = errors; let valid182 = false; valid182 = true; var valid183; if (data123.name !== undefined) { let data124 = data123.name; const _errs163 = errors; if ( !( typeof data124 == "string" && (data124 === "chrom" || data124 === "pos" || data124 === "id" || data124 === "ref" || data124 === "alt" || data124 === "qual" || data124 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.sv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid183 = _errs163 === errors; } else { valid183 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid183) { var valid184; if (data123.label !== undefined) { const _errs164 = errors; if (!(typeof data123.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid184 = _errs164 === errors; } else { valid184 = true; } if (valid184) { if (data123.description !== undefined) { const _errs165 = errors; if (!(typeof data123.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid184 = _errs165 === errors; } else { valid184 = true; } if (valid184) { for (const key35 in data123) { if ( key35 !== "type" && key35 !== "name" && key35 !== "label" && key35 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/" + key35.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key35 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid182) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid181 = _errs162 === errors; valid180 = valid181; } else if (tag6 === "info") { const _errs166 = errors; let valid186 = false; valid186 = true; var valid187; if (data123.name !== undefined) { const _errs167 = errors; if (!(typeof data123.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid187 = _errs167 === errors; } else { valid187 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid187) { var valid188; if (data123.label !== undefined) { const _errs168 = errors; if (!(typeof data123.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid188 = _errs168 === errors; } else { valid188 = true; } if (valid188) { if (data123.description !== undefined) { const _errs169 = errors; if (!(typeof data123.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid188 = _errs169 === errors; } else { valid188 = true; } if (valid188) { for (const key36 in data123) { if ( key36 !== "type" && key36 !== "name" && key36 !== "label" && key36 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/" + key36.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key36 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid186) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid185 = _errs166 === errors; valid180 = valid185; } else if (tag6 === "format") { const _errs170 = errors; let valid190 = false; valid190 = true; var valid191; if (data123.name !== undefined) { const _errs171 = errors; if (!(typeof data123.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid191 = _errs171 === errors; } else { valid191 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid191) { var valid192; if (data123.label !== undefined) { const _errs172 = errors; if (!(typeof data123.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid192 = _errs172 === errors; } else { valid192 = true; } if (valid192) { if (data123.description !== undefined) { const _errs173 = errors; if (!(typeof data123.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid192 = _errs173 === errors; } else { valid192 = true; } if (valid192) { for (const key37 in data123) { if ( key37 !== "type" && key37 !== "name" && key37 !== "label" && key37 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/" + key37.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key37 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid190) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid189 = _errs170 === errors; valid180 = valid189; } else if (tag6 === "genotype") { const _errs174 = errors; let valid194 = false; valid194 = true; var valid195; if (data123.name !== undefined) { const _errs175 = errors; if (!(typeof data123.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid195 = _errs175 === errors; } else { valid195 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid195) { var valid196; if (data123.label !== undefined) { const _errs176 = errors; if (!(typeof data123.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid196 = _errs176 === errors; } else { valid196 = true; } if (valid196) { if (data123.description !== undefined) { const _errs177 = errors; if (!(typeof data123.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid196 = _errs177 === errors; } else { valid196 = true; } if (valid196) { for (const key38 in data123) { if ( key38 !== "type" && key38 !== "name" && key38 !== "label" && key38 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/" + key38.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key38 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid194) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid193 = _errs174 === errors; valid180 = valid193; } else if (tag6 === "composed") { const _errs178 = errors; let valid198 = false; valid198 = true; var valid199; if (data123.name !== undefined) { let data136 = data123.name; const _errs179 = errors; if ( !( typeof data136 == "string" && (data136 === "clinVar" || data136 === "confidenceInterval" || data136 === "gene" || data136 === "genotype" || data136 === "genotype_maternal" || data136 === "genotype_paternal" || data136 === "gnomAdAf" || data136 === "hpo" || data136 === "inheritancePattern" || data136 === "locus" || data136 === "spanningReads" || data136 === "vipC" || data136 === "vipCS" || data136 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells.optionalProperties.sv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid199 = _errs179 === errors; } else { valid199 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid199) { var valid200; if (data123.label !== undefined) { const _errs180 = errors; if (!(typeof data123.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid200 = _errs180 === errors; } else { valid200 = true; } if (valid200) { if (data123.description !== undefined) { const _errs181 = errors; if (!(typeof data123.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid200 = _errs181 === errors; } else { valid200 = true; } if (valid200) { for (const key39 in data123) { if ( key39 !== "type" && key39 !== "name" && key39 !== "label" && key39 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/" + key39.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key39 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid198) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid197 = _errs178 === errors; valid180 = valid197; } else if (tag6 === "group") { const _errs182 = errors; let valid202 = false; valid202 = true; var valid203; if (data123.fields !== undefined) { let data139 = data123.fields; const _errs183 = errors; let valid204 = false; if (!valid204) { if (Array.isArray(data139)) { var valid205 = true; const len7 = data139.length; for (let i7 = 0; i7 < len7; i7++) { let data140 = data139[i7]; const _errs184 = errors; let valid206 = false; if (data140 && typeof data140 == "object" && !Array.isArray(data140)) { const tag7 = data140.type; if (tag7 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag7 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag7 == "string") { if (tag7 === "fixed") { const _errs185 = errors; let valid208 = false; valid208 = true; var valid209; if (data140.name !== undefined) { let data141 = data140.name; const _errs186 = errors; if ( !( typeof data141 == "string" && (data141 === "chrom" || data141 === "pos" || data141 === "id" || data141 === "ref" || data141 === "alt" || data141 === "qual" || data141 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.sv.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid209 = _errs186 === errors; } else { valid209 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid209) { var valid210; if (data140.label !== undefined) { const _errs187 = errors; if (!(typeof data140.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid210 = _errs187 === errors; } else { valid210 = true; } if (valid210) { if (data140.description !== undefined) { const _errs188 = errors; if (!(typeof data140.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid210 = _errs188 === errors; } else { valid210 = true; } if (valid210) { for (const key40 in data140) { if ( key40 !== "type" && key40 !== "name" && key40 !== "label" && key40 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/" + key40.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key40, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid208) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid207 = _errs185 === errors; valid206 = valid207; } else if (tag7 === "info") { const _errs189 = errors; let valid212 = false; valid212 = true; var valid213; if (data140.name !== undefined) { const _errs190 = errors; if (!(typeof data140.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid213 = _errs190 === errors; } else { valid213 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid213) { var valid214; if (data140.label !== undefined) { const _errs191 = errors; if (!(typeof data140.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid214 = _errs191 === errors; } else { valid214 = true; } if (valid214) { if (data140.description !== undefined) { const _errs192 = errors; if (!(typeof data140.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid214 = _errs192 === errors; } else { valid214 = true; } if (valid214) { for (const key41 in data140) { if ( key41 !== "type" && key41 !== "name" && key41 !== "label" && key41 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/" + key41.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key41, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid212) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid211 = _errs189 === errors; valid206 = valid211; } else if (tag7 === "format") { const _errs193 = errors; let valid216 = false; valid216 = true; var valid217; if (data140.name !== undefined) { const _errs194 = errors; if (!(typeof data140.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid217 = _errs194 === errors; } else { valid217 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid217) { var valid218; if (data140.label !== undefined) { const _errs195 = errors; if (!(typeof data140.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid218 = _errs195 === errors; } else { valid218 = true; } if (valid218) { if (data140.description !== undefined) { const _errs196 = errors; if (!(typeof data140.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid218 = _errs196 === errors; } else { valid218 = true; } if (valid218) { for (const key42 in data140) { if ( key42 !== "type" && key42 !== "name" && key42 !== "label" && key42 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/" + key42.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key42, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid216) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid215 = _errs193 === errors; valid206 = valid215; } else if (tag7 === "genotype") { const _errs197 = errors; let valid220 = false; valid220 = true; var valid221; if (data140.name !== undefined) { const _errs198 = errors; if (!(typeof data140.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid221 = _errs198 === errors; } else { valid221 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid221) { var valid222; if (data140.label !== undefined) { const _errs199 = errors; if (!(typeof data140.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid222 = _errs199 === errors; } else { valid222 = true; } if (valid222) { if (data140.description !== undefined) { const _errs200 = errors; if (!(typeof data140.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid222 = _errs200 === errors; } else { valid222 = true; } if (valid222) { for (const key43 in data140) { if ( key43 !== "type" && key43 !== "name" && key43 !== "label" && key43 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/" + key43.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key43, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid220) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid219 = _errs197 === errors; valid206 = valid219; } else if (tag7 === "composed") { const _errs201 = errors; let valid224 = false; valid224 = true; var valid225; if (data140.name !== undefined) { let data153 = data140.name; const _errs202 = errors; if ( !( typeof data153 == "string" && (data153 === "clinVar" || data153 === "gene" || data153 === "genotype" || data153 === "gnomAdAf" || data153 === "hpo" || data153 === "inheritancePattern" || data153 === "locus" || data153 === "ref" || data153 === "vipC" || data153 === "vipCS" || data153 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/name", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.properties.cells .optionalProperties.sv.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid225 = _errs202 === errors; } else { valid225 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid225) { var valid226; if (data140.label !== undefined) { const _errs203 = errors; if (!(typeof data140.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/label", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid226 = _errs203 === errors; } else { valid226 = true; } if (valid226) { if (data140.description !== undefined) { const _errs204 = errors; if (!(typeof data140.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/description", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid226 = _errs204 === errors; } else { valid226 = true; } if (valid226) { for (const key44 in data140) { if ( key44 !== "type" && key44 !== "name" && key44 !== "label" && key44 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/" + key44.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key44, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid224) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid223 = _errs201 === errors; valid206 = valid223; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag7 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag7 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid206) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields/" + i7, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid205 = _errs184 === errors; if (!valid205) { break; } } valid204 = valid205; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/fields", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid203 = _errs183 === errors; } else { valid203 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid203) { for (const key45 in data123) { if (key45 !== "type" && key45 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/" + key45.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key45 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid202) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid201 = _errs182 === errors; valid180 = valid201; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag6 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6 + "/type", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag6 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid180) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv/" + i6, schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid179 = _errs161 === errors; if (!valid179) { break; } } valid178 = valid179; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/sv", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid27 = _errs160 === errors; } else { valid27 = true; } if (valid27) { for (const key46 in data19) { if (key46 !== "all" && key46 !== "snv" && key46 !== "str" && key46 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells/" + key46.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/properties/cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key46 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid25) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/cells", schemaPath: "/properties/sample_variants/properties/cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid24 = _errs24 === errors; } else { valid24 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants", schemaPath: "/properties/sample_variants/properties/cells", keyword: "properties", params: { error: "missing", missingProperty: "cells" }, message: "must have property 'cells'", }, ]; return false; } if (valid24) { var valid228; if (data18.filters !== undefined) { let data156 = data18.filters; const _errs205 = errors; let valid229 = false; if (data156 && typeof data156 == "object" && !Array.isArray(data156)) { valid229 = true; var valid231; if (data156.all !== undefined) { let data157 = data156.all; const _errs206 = errors; let valid232 = false; if (!valid232) { if (Array.isArray(data157)) { var valid233 = true; const len8 = data157.length; for (let i8 = 0; i8 < len8; i8++) { let data158 = data157[i8]; const _errs207 = errors; let valid234 = false; if (data158 && typeof data158 == "object" && !Array.isArray(data158)) { const tag8 = data158.type; if (tag8 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag8 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag8 == "string") { if (tag8 === "fixed") { const _errs208 = errors; let valid236 = false; valid236 = true; var valid237; if (data158.name !== undefined) { let data159 = data158.name; const _errs209 = errors; if ( !( typeof data159 == "string" && (data159 === "chrom" || data159 === "pos" || data159 === "id" || data159 === "ref" || data159 === "alt" || data159 === "qual" || data159 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.all.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid237 = _errs209 === errors; } else { valid237 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid237) { var valid238; if (data158.label !== undefined) { const _errs210 = errors; if (!(typeof data158.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid238 = _errs210 === errors; } else { valid238 = true; } if (valid238) { if (data158.description !== undefined) { const _errs211 = errors; if (!(typeof data158.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid238 = _errs211 === errors; } else { valid238 = true; } if (valid238) { if (data158.defaultValue !== undefined) { const _errs212 = errors; if (!(typeof data158.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid238 = _errs212 === errors; } else { valid238 = true; } if (valid238) { for (const key47 in data158) { if ( key47 !== "type" && key47 !== "name" && key47 !== "label" && key47 !== "description" && key47 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/" + key47.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key47 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid236) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid235 = _errs208 === errors; valid234 = valid235; } else if (tag8 === "info") { const _errs213 = errors; let valid240 = false; valid240 = true; var valid241; if (data158.name !== undefined) { const _errs214 = errors; if (!(typeof data158.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid241 = _errs214 === errors; } else { valid241 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid241) { var valid242; if (data158.label !== undefined) { const _errs215 = errors; if (!(typeof data158.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid242 = _errs215 === errors; } else { valid242 = true; } if (valid242) { if (data158.description !== undefined) { const _errs216 = errors; if (!(typeof data158.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid242 = _errs216 === errors; } else { valid242 = true; } if (valid242) { if (data158.defaultValue !== undefined) { const _errs217 = errors; if (!(typeof data158.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid242 = _errs217 === errors; } else { valid242 = true; } if (valid242) { for (const key48 in data158) { if ( key48 !== "type" && key48 !== "name" && key48 !== "label" && key48 !== "description" && key48 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/" + key48.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key48 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid240) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid239 = _errs213 === errors; valid234 = valid239; } else if (tag8 === "format") { const _errs218 = errors; let valid244 = false; valid244 = true; var valid245; if (data158.name !== undefined) { const _errs219 = errors; if (!(typeof data158.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid245 = _errs219 === errors; } else { valid245 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid245) { var valid246; if (data158.label !== undefined) { const _errs220 = errors; if (!(typeof data158.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid246 = _errs220 === errors; } else { valid246 = true; } if (valid246) { if (data158.description !== undefined) { const _errs221 = errors; if (!(typeof data158.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid246 = _errs221 === errors; } else { valid246 = true; } if (valid246) { if (data158.defaultValue !== undefined) { const _errs222 = errors; if (!(typeof data158.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid246 = _errs222 === errors; } else { valid246 = true; } if (valid246) { for (const key49 in data158) { if ( key49 !== "type" && key49 !== "name" && key49 !== "label" && key49 !== "description" && key49 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/" + key49.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key49 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid244) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid243 = _errs218 === errors; valid234 = valid243; } else if (tag8 === "genotype") { const _errs223 = errors; let valid248 = false; valid248 = true; var valid249; if (data158.name !== undefined) { const _errs224 = errors; if (!(typeof data158.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid249 = _errs224 === errors; } else { valid249 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid249) { var valid250; if (data158.label !== undefined) { const _errs225 = errors; if (!(typeof data158.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid250 = _errs225 === errors; } else { valid250 = true; } if (valid250) { if (data158.description !== undefined) { const _errs226 = errors; if (!(typeof data158.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid250 = _errs226 === errors; } else { valid250 = true; } if (valid250) { if (data158.defaultValue !== undefined) { const _errs227 = errors; if (!(typeof data158.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid250 = _errs227 === errors; } else { valid250 = true; } if (valid250) { for (const key50 in data158) { if ( key50 !== "type" && key50 !== "name" && key50 !== "label" && key50 !== "description" && key50 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/" + key50.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key50 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid248) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid247 = _errs223 === errors; valid234 = valid247; } else if (tag8 === "composed") { const _errs228 = errors; let valid252 = false; valid252 = true; var valid253; if (data158.name !== undefined) { let data175 = data158.name; const _errs229 = errors; if ( !( typeof data175 == "string" && (data175 === "allelicImbalance" || data175 === "deNovo" || data175 === "hpo" || data175 === "inheritanceMatch" || data175 === "locus" || data175 === "vipC" || data175 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.all.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid253 = _errs229 === errors; } else { valid253 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid253) { var valid254; if (data158.label !== undefined) { const _errs230 = errors; if (!(typeof data158.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid254 = _errs230 === errors; } else { valid254 = true; } if (valid254) { if (data158.description !== undefined) { const _errs231 = errors; if (!(typeof data158.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid254 = _errs231 === errors; } else { valid254 = true; } if (valid254) { if (data158.defaultValue !== undefined) { const _errs232 = errors; if (!(typeof data158.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid254 = _errs232 === errors; } else { valid254 = true; } if (valid254) { for (const key51 in data158) { if ( key51 !== "type" && key51 !== "name" && key51 !== "label" && key51 !== "description" && key51 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/" + key51.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key51 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid252) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid251 = _errs228 === errors; valid234 = valid251; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag8 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag8 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid234) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all/" + i8, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid233 = _errs207 === errors; if (!valid233) { break; } } valid232 = valid233; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/all", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid231 = _errs206 === errors; } else { valid231 = true; } if (valid231) { if (data156.snv !== undefined) { let data179 = data156.snv; const _errs233 = errors; let valid255 = false; if (!valid255) { if (Array.isArray(data179)) { var valid256 = true; const len9 = data179.length; for (let i9 = 0; i9 < len9; i9++) { let data180 = data179[i9]; const _errs234 = errors; let valid257 = false; if (data180 && typeof data180 == "object" && !Array.isArray(data180)) { const tag9 = data180.type; if (tag9 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag9 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag9 == "string") { if (tag9 === "fixed") { const _errs235 = errors; let valid259 = false; valid259 = true; var valid260; if (data180.name !== undefined) { let data181 = data180.name; const _errs236 = errors; if ( !( typeof data181 == "string" && (data181 === "chrom" || data181 === "pos" || data181 === "id" || data181 === "ref" || data181 === "alt" || data181 === "qual" || data181 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.snv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid260 = _errs236 === errors; } else { valid260 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid260) { var valid261; if (data180.label !== undefined) { const _errs237 = errors; if (!(typeof data180.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid261 = _errs237 === errors; } else { valid261 = true; } if (valid261) { if (data180.description !== undefined) { const _errs238 = errors; if (!(typeof data180.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid261 = _errs238 === errors; } else { valid261 = true; } if (valid261) { if (data180.defaultValue !== undefined) { const _errs239 = errors; if (!(typeof data180.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid261 = _errs239 === errors; } else { valid261 = true; } if (valid261) { for (const key52 in data180) { if ( key52 !== "type" && key52 !== "name" && key52 !== "label" && key52 !== "description" && key52 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/" + key52.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key52 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid259) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid258 = _errs235 === errors; valid257 = valid258; } else if (tag9 === "info") { const _errs240 = errors; let valid263 = false; valid263 = true; var valid264; if (data180.name !== undefined) { const _errs241 = errors; if (!(typeof data180.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid264 = _errs241 === errors; } else { valid264 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid264) { var valid265; if (data180.label !== undefined) { const _errs242 = errors; if (!(typeof data180.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid265 = _errs242 === errors; } else { valid265 = true; } if (valid265) { if (data180.description !== undefined) { const _errs243 = errors; if (!(typeof data180.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid265 = _errs243 === errors; } else { valid265 = true; } if (valid265) { if (data180.defaultValue !== undefined) { const _errs244 = errors; if (!(typeof data180.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid265 = _errs244 === errors; } else { valid265 = true; } if (valid265) { for (const key53 in data180) { if ( key53 !== "type" && key53 !== "name" && key53 !== "label" && key53 !== "description" && key53 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/" + key53.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key53 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid263) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid262 = _errs240 === errors; valid257 = valid262; } else if (tag9 === "format") { const _errs245 = errors; let valid267 = false; valid267 = true; var valid268; if (data180.name !== undefined) { const _errs246 = errors; if (!(typeof data180.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid268 = _errs246 === errors; } else { valid268 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid268) { var valid269; if (data180.label !== undefined) { const _errs247 = errors; if (!(typeof data180.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid269 = _errs247 === errors; } else { valid269 = true; } if (valid269) { if (data180.description !== undefined) { const _errs248 = errors; if (!(typeof data180.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid269 = _errs248 === errors; } else { valid269 = true; } if (valid269) { if (data180.defaultValue !== undefined) { const _errs249 = errors; if (!(typeof data180.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid269 = _errs249 === errors; } else { valid269 = true; } if (valid269) { for (const key54 in data180) { if ( key54 !== "type" && key54 !== "name" && key54 !== "label" && key54 !== "description" && key54 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/" + key54.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key54 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid267) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid266 = _errs245 === errors; valid257 = valid266; } else if (tag9 === "genotype") { const _errs250 = errors; let valid271 = false; valid271 = true; var valid272; if (data180.name !== undefined) { const _errs251 = errors; if (!(typeof data180.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid272 = _errs251 === errors; } else { valid272 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid272) { var valid273; if (data180.label !== undefined) { const _errs252 = errors; if (!(typeof data180.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid273 = _errs252 === errors; } else { valid273 = true; } if (valid273) { if (data180.description !== undefined) { const _errs253 = errors; if (!(typeof data180.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid273 = _errs253 === errors; } else { valid273 = true; } if (valid273) { if (data180.defaultValue !== undefined) { const _errs254 = errors; if (!(typeof data180.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid273 = _errs254 === errors; } else { valid273 = true; } if (valid273) { for (const key55 in data180) { if ( key55 !== "type" && key55 !== "name" && key55 !== "label" && key55 !== "description" && key55 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/" + key55.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key55 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid271) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid270 = _errs250 === errors; valid257 = valid270; } else if (tag9 === "composed") { const _errs255 = errors; let valid275 = false; valid275 = true; var valid276; if (data180.name !== undefined) { let data197 = data180.name; const _errs256 = errors; if ( !( typeof data197 == "string" && (data197 === "allelicImbalance" || data197 === "deNovo" || data197 === "hpo" || data197 === "inheritanceMatch" || data197 === "locus" || data197 === "vipC" || data197 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.snv.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid276 = _errs256 === errors; } else { valid276 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid276) { var valid277; if (data180.label !== undefined) { const _errs257 = errors; if (!(typeof data180.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid277 = _errs257 === errors; } else { valid277 = true; } if (valid277) { if (data180.description !== undefined) { const _errs258 = errors; if (!(typeof data180.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid277 = _errs258 === errors; } else { valid277 = true; } if (valid277) { if (data180.defaultValue !== undefined) { const _errs259 = errors; if (!(typeof data180.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid277 = _errs259 === errors; } else { valid277 = true; } if (valid277) { for (const key56 in data180) { if ( key56 !== "type" && key56 !== "name" && key56 !== "label" && key56 !== "description" && key56 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/" + key56.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key56 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid275) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid274 = _errs255 === errors; valid257 = valid274; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag9 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag9 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid257) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv/" + i9, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid256 = _errs234 === errors; if (!valid256) { break; } } valid255 = valid256; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/snv", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid231 = _errs233 === errors; } else { valid231 = true; } if (valid231) { if (data156.str !== undefined) { let data201 = data156.str; const _errs260 = errors; let valid278 = false; if (!valid278) { if (Array.isArray(data201)) { var valid279 = true; const len10 = data201.length; for (let i10 = 0; i10 < len10; i10++) { let data202 = data201[i10]; const _errs261 = errors; let valid280 = false; if (data202 && typeof data202 == "object" && !Array.isArray(data202)) { const tag10 = data202.type; if (tag10 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag10 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag10 == "string") { if (tag10 === "fixed") { const _errs262 = errors; let valid282 = false; valid282 = true; var valid283; if (data202.name !== undefined) { let data203 = data202.name; const _errs263 = errors; if ( !( typeof data203 == "string" && (data203 === "chrom" || data203 === "pos" || data203 === "id" || data203 === "ref" || data203 === "alt" || data203 === "qual" || data203 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.str.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid283 = _errs263 === errors; } else { valid283 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid283) { var valid284; if (data202.label !== undefined) { const _errs264 = errors; if (!(typeof data202.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid284 = _errs264 === errors; } else { valid284 = true; } if (valid284) { if (data202.description !== undefined) { const _errs265 = errors; if (!(typeof data202.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid284 = _errs265 === errors; } else { valid284 = true; } if (valid284) { if (data202.defaultValue !== undefined) { const _errs266 = errors; if (!(typeof data202.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid284 = _errs266 === errors; } else { valid284 = true; } if (valid284) { for (const key57 in data202) { if ( key57 !== "type" && key57 !== "name" && key57 !== "label" && key57 !== "description" && key57 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/" + key57.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key57 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid282) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid281 = _errs262 === errors; valid280 = valid281; } else if (tag10 === "info") { const _errs267 = errors; let valid286 = false; valid286 = true; var valid287; if (data202.name !== undefined) { const _errs268 = errors; if (!(typeof data202.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid287 = _errs268 === errors; } else { valid287 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid287) { var valid288; if (data202.label !== undefined) { const _errs269 = errors; if (!(typeof data202.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid288 = _errs269 === errors; } else { valid288 = true; } if (valid288) { if (data202.description !== undefined) { const _errs270 = errors; if (!(typeof data202.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid288 = _errs270 === errors; } else { valid288 = true; } if (valid288) { if (data202.defaultValue !== undefined) { const _errs271 = errors; if (!(typeof data202.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid288 = _errs271 === errors; } else { valid288 = true; } if (valid288) { for (const key58 in data202) { if ( key58 !== "type" && key58 !== "name" && key58 !== "label" && key58 !== "description" && key58 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/" + key58.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key58 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid286) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid285 = _errs267 === errors; valid280 = valid285; } else if (tag10 === "format") { const _errs272 = errors; let valid290 = false; valid290 = true; var valid291; if (data202.name !== undefined) { const _errs273 = errors; if (!(typeof data202.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid291 = _errs273 === errors; } else { valid291 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid291) { var valid292; if (data202.label !== undefined) { const _errs274 = errors; if (!(typeof data202.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid292 = _errs274 === errors; } else { valid292 = true; } if (valid292) { if (data202.description !== undefined) { const _errs275 = errors; if (!(typeof data202.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid292 = _errs275 === errors; } else { valid292 = true; } if (valid292) { if (data202.defaultValue !== undefined) { const _errs276 = errors; if (!(typeof data202.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid292 = _errs276 === errors; } else { valid292 = true; } if (valid292) { for (const key59 in data202) { if ( key59 !== "type" && key59 !== "name" && key59 !== "label" && key59 !== "description" && key59 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/" + key59.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key59 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid290) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid289 = _errs272 === errors; valid280 = valid289; } else if (tag10 === "genotype") { const _errs277 = errors; let valid294 = false; valid294 = true; var valid295; if (data202.name !== undefined) { const _errs278 = errors; if (!(typeof data202.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid295 = _errs278 === errors; } else { valid295 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid295) { var valid296; if (data202.label !== undefined) { const _errs279 = errors; if (!(typeof data202.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid296 = _errs279 === errors; } else { valid296 = true; } if (valid296) { if (data202.description !== undefined) { const _errs280 = errors; if (!(typeof data202.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid296 = _errs280 === errors; } else { valid296 = true; } if (valid296) { if (data202.defaultValue !== undefined) { const _errs281 = errors; if (!(typeof data202.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid296 = _errs281 === errors; } else { valid296 = true; } if (valid296) { for (const key60 in data202) { if ( key60 !== "type" && key60 !== "name" && key60 !== "label" && key60 !== "description" && key60 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/" + key60.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key60 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid294) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid293 = _errs277 === errors; valid280 = valid293; } else if (tag10 === "composed") { const _errs282 = errors; let valid298 = false; valid298 = true; var valid299; if (data202.name !== undefined) { let data219 = data202.name; const _errs283 = errors; if ( !( typeof data219 == "string" && (data219 === "allelicImbalance" || data219 === "deNovo" || data219 === "hpo" || data219 === "inheritanceMatch" || data219 === "locus" || data219 === "vipC" || data219 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.str.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid299 = _errs283 === errors; } else { valid299 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid299) { var valid300; if (data202.label !== undefined) { const _errs284 = errors; if (!(typeof data202.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid300 = _errs284 === errors; } else { valid300 = true; } if (valid300) { if (data202.description !== undefined) { const _errs285 = errors; if (!(typeof data202.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid300 = _errs285 === errors; } else { valid300 = true; } if (valid300) { if (data202.defaultValue !== undefined) { const _errs286 = errors; if (!(typeof data202.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid300 = _errs286 === errors; } else { valid300 = true; } if (valid300) { for (const key61 in data202) { if ( key61 !== "type" && key61 !== "name" && key61 !== "label" && key61 !== "description" && key61 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/" + key61.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key61 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid298) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid297 = _errs282 === errors; valid280 = valid297; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag10 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag10 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid280) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str/" + i10, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid279 = _errs261 === errors; if (!valid279) { break; } } valid278 = valid279; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/str", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid231 = _errs260 === errors; } else { valid231 = true; } if (valid231) { if (data156.sv !== undefined) { let data223 = data156.sv; const _errs287 = errors; let valid301 = false; if (!valid301) { if (Array.isArray(data223)) { var valid302 = true; const len11 = data223.length; for (let i11 = 0; i11 < len11; i11++) { let data224 = data223[i11]; const _errs288 = errors; let valid303 = false; if (data224 && typeof data224 == "object" && !Array.isArray(data224)) { const tag11 = data224.type; if (tag11 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag11 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag11 == "string") { if (tag11 === "fixed") { const _errs289 = errors; let valid305 = false; valid305 = true; var valid306; if (data224.name !== undefined) { let data225 = data224.name; const _errs290 = errors; if ( !( typeof data225 == "string" && (data225 === "chrom" || data225 === "pos" || data225 === "id" || data225 === "ref" || data225 === "alt" || data225 === "qual" || data225 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.sv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid306 = _errs290 === errors; } else { valid306 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid306) { var valid307; if (data224.label !== undefined) { const _errs291 = errors; if (!(typeof data224.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid307 = _errs291 === errors; } else { valid307 = true; } if (valid307) { if (data224.description !== undefined) { const _errs292 = errors; if (!(typeof data224.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid307 = _errs292 === errors; } else { valid307 = true; } if (valid307) { if (data224.defaultValue !== undefined) { const _errs293 = errors; if (!(typeof data224.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid307 = _errs293 === errors; } else { valid307 = true; } if (valid307) { for (const key62 in data224) { if ( key62 !== "type" && key62 !== "name" && key62 !== "label" && key62 !== "description" && key62 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/" + key62.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key62 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid305) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid304 = _errs289 === errors; valid303 = valid304; } else if (tag11 === "info") { const _errs294 = errors; let valid309 = false; valid309 = true; var valid310; if (data224.name !== undefined) { const _errs295 = errors; if (!(typeof data224.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid310 = _errs295 === errors; } else { valid310 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid310) { var valid311; if (data224.label !== undefined) { const _errs296 = errors; if (!(typeof data224.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid311 = _errs296 === errors; } else { valid311 = true; } if (valid311) { if (data224.description !== undefined) { const _errs297 = errors; if (!(typeof data224.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid311 = _errs297 === errors; } else { valid311 = true; } if (valid311) { if (data224.defaultValue !== undefined) { const _errs298 = errors; if (!(typeof data224.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid311 = _errs298 === errors; } else { valid311 = true; } if (valid311) { for (const key63 in data224) { if ( key63 !== "type" && key63 !== "name" && key63 !== "label" && key63 !== "description" && key63 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/" + key63.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key63 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid309) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid308 = _errs294 === errors; valid303 = valid308; } else if (tag11 === "format") { const _errs299 = errors; let valid313 = false; valid313 = true; var valid314; if (data224.name !== undefined) { const _errs300 = errors; if (!(typeof data224.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid314 = _errs300 === errors; } else { valid314 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid314) { var valid315; if (data224.label !== undefined) { const _errs301 = errors; if (!(typeof data224.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid315 = _errs301 === errors; } else { valid315 = true; } if (valid315) { if (data224.description !== undefined) { const _errs302 = errors; if (!(typeof data224.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid315 = _errs302 === errors; } else { valid315 = true; } if (valid315) { if (data224.defaultValue !== undefined) { const _errs303 = errors; if (!(typeof data224.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid315 = _errs303 === errors; } else { valid315 = true; } if (valid315) { for (const key64 in data224) { if ( key64 !== "type" && key64 !== "name" && key64 !== "label" && key64 !== "description" && key64 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/" + key64.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key64 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid313) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid312 = _errs299 === errors; valid303 = valid312; } else if (tag11 === "genotype") { const _errs304 = errors; let valid317 = false; valid317 = true; var valid318; if (data224.name !== undefined) { const _errs305 = errors; if (!(typeof data224.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid318 = _errs305 === errors; } else { valid318 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid318) { var valid319; if (data224.label !== undefined) { const _errs306 = errors; if (!(typeof data224.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid319 = _errs306 === errors; } else { valid319 = true; } if (valid319) { if (data224.description !== undefined) { const _errs307 = errors; if (!(typeof data224.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid319 = _errs307 === errors; } else { valid319 = true; } if (valid319) { if (data224.defaultValue !== undefined) { const _errs308 = errors; if (!(typeof data224.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid319 = _errs308 === errors; } else { valid319 = true; } if (valid319) { for (const key65 in data224) { if ( key65 !== "type" && key65 !== "name" && key65 !== "label" && key65 !== "description" && key65 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/" + key65.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key65 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid317) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid316 = _errs304 === errors; valid303 = valid316; } else if (tag11 === "composed") { const _errs309 = errors; let valid321 = false; valid321 = true; var valid322; if (data224.name !== undefined) { let data241 = data224.name; const _errs310 = errors; if ( !( typeof data241 == "string" && (data241 === "allelicImbalance" || data241 === "deNovo" || data241 === "hpo" || data241 === "inheritanceMatch" || data241 === "locus" || data241 === "vipC" || data241 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.filters .optionalProperties.sv.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid322 = _errs310 === errors; } else { valid322 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid322) { var valid323; if (data224.label !== undefined) { const _errs311 = errors; if (!(typeof data224.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid323 = _errs311 === errors; } else { valid323 = true; } if (valid323) { if (data224.description !== undefined) { const _errs312 = errors; if (!(typeof data224.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid323 = _errs312 === errors; } else { valid323 = true; } if (valid323) { if (data224.defaultValue !== undefined) { const _errs313 = errors; if (!(typeof data224.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/defaultValue", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid323 = _errs313 === errors; } else { valid323 = true; } if (valid323) { for (const key66 in data224) { if ( key66 !== "type" && key66 !== "name" && key66 !== "label" && key66 !== "description" && key66 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/" + key66.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key66 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid321) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid320 = _errs309 === errors; valid303 = valid320; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag11 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag11 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid303) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv/" + i11, schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid302 = _errs288 === errors; if (!valid302) { break; } } valid301 = valid302; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/sv", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid231 = _errs287 === errors; } else { valid231 = true; } if (valid231) { for (const key67 in data156) { if (key67 !== "all" && key67 !== "snv" && key67 !== "str" && key67 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters/" + key67.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/filters", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key67 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid229) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/filters", schemaPath: "/properties/sample_variants/optionalProperties/filters/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid228 = _errs205 === errors; } else { valid228 = true; } if (valid228) { if (data18.sorts !== undefined) { let data245 = data18.sorts; const _errs314 = errors; let valid324 = false; if (data245 && typeof data245 == "object" && !Array.isArray(data245)) { valid324 = true; var valid326; if (data245.all !== undefined) { let data246 = data245.all; const _errs315 = errors; let valid327 = false; if (!valid327) { if (Array.isArray(data246)) { var valid328 = true; const len12 = data246.length; for (let i12 = 0; i12 < len12; i12++) { let data247 = data246[i12]; const _errs316 = errors; let valid329 = false; if (data247 && typeof data247 == "object" && !Array.isArray(data247)) { valid329 = true; var valid330; if (data247.selected !== undefined) { const _errs317 = errors; if (!(typeof data247.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid330 = _errs317 === errors; } else { valid330 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid330) { if (data247.orders !== undefined) { let data249 = data247.orders; const _errs318 = errors; let valid331 = false; if (!valid331) { if (Array.isArray(data249)) { var valid332 = true; const len13 = data249.length; for (let i13 = 0; i13 < len13; i13++) { let data250 = data249[i13]; const _errs319 = errors; let valid333 = false; if (data250 && typeof data250 == "object" && !Array.isArray(data250)) { valid333 = true; var valid334; if (data250.direction !== undefined) { let data251 = data250.direction; const _errs320 = errors; if ( !(typeof data251 == "string" && (data251 === "asc" || data251 === "desc")) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/direction", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.sorts .optionalProperties.all.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid334 = _errs320 === errors; } else { valid334 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid334) { if (data250.field !== undefined) { let data252 = data250.field; const _errs321 = errors; let valid335 = false; if (data252 && typeof data252 == "object" && !Array.isArray(data252)) { const tag12 = data252.type; if (tag12 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag12 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag12 == "string") { if (tag12 === "fixed") { const _errs322 = errors; let valid337 = false; valid337 = true; var valid338; if (data252.name !== undefined) { let data253 = data252.name; const _errs323 = errors; if ( !( typeof data253 == "string" && (data253 === "chrom" || data253 === "pos" || data253 === "id" || data253 === "ref" || data253 === "alt" || data253 === "qual" || data253 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties .sorts.optionalProperties.all.elements.properties.orders .elements.properties.field.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid338 = _errs323 === errors; } else { valid338 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid338) { var valid339; if (data252.label !== undefined) { const _errs324 = errors; if (!(typeof data252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid339 = _errs324 === errors; } else { valid339 = true; } if (valid339) { if (data252.description !== undefined) { const _errs325 = errors; if (!(typeof data252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid339 = _errs325 === errors; } else { valid339 = true; } if (valid339) { for (const key68 in data252) { if ( key68 !== "type" && key68 !== "name" && key68 !== "label" && key68 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/" + key68.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key68, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid337) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid336 = _errs322 === errors; valid335 = valid336; } else if (tag12 === "info") { const _errs326 = errors; let valid341 = false; valid341 = true; var valid342; if (data252.name !== undefined) { const _errs327 = errors; if (!(typeof data252.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid342 = _errs327 === errors; } else { valid342 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid342) { var valid343; if (data252.label !== undefined) { const _errs328 = errors; if (!(typeof data252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid343 = _errs328 === errors; } else { valid343 = true; } if (valid343) { if (data252.description !== undefined) { const _errs329 = errors; if (!(typeof data252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid343 = _errs329 === errors; } else { valid343 = true; } if (valid343) { for (const key69 in data252) { if ( key69 !== "type" && key69 !== "name" && key69 !== "label" && key69 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/" + key69.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key69, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid341) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid340 = _errs326 === errors; valid335 = valid340; } else if (tag12 === "format") { const _errs330 = errors; let valid345 = false; valid345 = true; var valid346; if (data252.name !== undefined) { const _errs331 = errors; if (!(typeof data252.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid346 = _errs331 === errors; } else { valid346 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid346) { var valid347; if (data252.label !== undefined) { const _errs332 = errors; if (!(typeof data252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid347 = _errs332 === errors; } else { valid347 = true; } if (valid347) { if (data252.description !== undefined) { const _errs333 = errors; if (!(typeof data252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid347 = _errs333 === errors; } else { valid347 = true; } if (valid347) { for (const key70 in data252) { if ( key70 !== "type" && key70 !== "name" && key70 !== "label" && key70 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/" + key70.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key70, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid345) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid344 = _errs330 === errors; valid335 = valid344; } else if (tag12 === "genotype") { const _errs334 = errors; let valid349 = false; valid349 = true; var valid350; if (data252.name !== undefined) { const _errs335 = errors; if (!(typeof data252.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid350 = _errs335 === errors; } else { valid350 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid350) { var valid351; if (data252.label !== undefined) { const _errs336 = errors; if (!(typeof data252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid351 = _errs336 === errors; } else { valid351 = true; } if (valid351) { if (data252.description !== undefined) { const _errs337 = errors; if (!(typeof data252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid351 = _errs337 === errors; } else { valid351 = true; } if (valid351) { for (const key71 in data252) { if ( key71 !== "type" && key71 !== "name" && key71 !== "label" && key71 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/" + key71.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key71, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid349) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid348 = _errs334 === errors; valid335 = valid348; } else if (tag12 === "composed") { const _errs338 = errors; let valid353 = false; valid353 = true; var valid354; if (data252.name !== undefined) { let data265 = data252.name; const _errs339 = errors; if ( !( typeof data265 == "string" && (data265 === "clinVar" || data265 === "confidenceInterval" || data265 === "gene" || data265 === "genotype" || data265 === "genotype_maternal" || data265 === "genotype_paternal" || data265 === "gnomAdAf" || data265 === "hpo" || data265 === "inheritancePattern" || data265 === "locus" || data265 === "spanningReads" || data265 === "vipC" || data265 === "vipCS" || data265 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties .sorts.optionalProperties.all.elements.properties.orders .elements.properties.field.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid354 = _errs339 === errors; } else { valid354 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid354) { var valid355; if (data252.label !== undefined) { const _errs340 = errors; if (!(typeof data252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid355 = _errs340 === errors; } else { valid355 = true; } if (valid355) { if (data252.description !== undefined) { const _errs341 = errors; if (!(typeof data252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid355 = _errs341 === errors; } else { valid355 = true; } if (valid355) { for (const key72 in data252) { if ( key72 !== "type" && key72 !== "name" && key72 !== "label" && key72 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/" + key72.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key72, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid353) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid352 = _errs338 === errors; valid335 = valid352; } else if (tag12 === "group") { const _errs342 = errors; let valid357 = false; valid357 = true; var valid358; if (data252.fields !== undefined) { let data268 = data252.fields; const _errs343 = errors; let valid359 = false; if (!valid359) { if (Array.isArray(data268)) { var valid360 = true; const len14 = data268.length; for (let i14 = 0; i14 < len14; i14++) { let data269 = data268[i14]; const _errs344 = errors; let valid361 = false; if ( data269 && typeof data269 == "object" && !Array.isArray(data269) ) { const tag13 = data269.type; if (tag13 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag13, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag13 == "string") { if (tag13 === "fixed") { const _errs345 = errors; let valid363 = false; valid363 = true; var valid364; if (data269.name !== undefined) { let data270 = data269.name; const _errs346 = errors; if ( !( typeof data270 == "string" && (data270 === "chrom" || data270 === "pos" || data270 === "id" || data270 === "ref" || data270 === "alt" || data270 === "qual" || data270 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.all.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid364 = _errs346 === errors; } else { valid364 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid364) { var valid365; if (data269.label !== undefined) { const _errs347 = errors; if (!(typeof data269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid365 = _errs347 === errors; } else { valid365 = true; } if (valid365) { if (data269.description !== undefined) { const _errs348 = errors; if (!(typeof data269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid365 = _errs348 === errors; } else { valid365 = true; } if (valid365) { for (const key73 in data269) { if ( key73 !== "type" && key73 !== "name" && key73 !== "label" && key73 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/" + key73 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key73, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid363) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid362 = _errs345 === errors; valid361 = valid362; } else if (tag13 === "info") { const _errs349 = errors; let valid367 = false; valid367 = true; var valid368; if (data269.name !== undefined) { const _errs350 = errors; if (!(typeof data269.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid368 = _errs350 === errors; } else { valid368 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid368) { var valid369; if (data269.label !== undefined) { const _errs351 = errors; if (!(typeof data269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid369 = _errs351 === errors; } else { valid369 = true; } if (valid369) { if (data269.description !== undefined) { const _errs352 = errors; if (!(typeof data269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid369 = _errs352 === errors; } else { valid369 = true; } if (valid369) { for (const key74 in data269) { if ( key74 !== "type" && key74 !== "name" && key74 !== "label" && key74 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/" + key74 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key74, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid367) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid366 = _errs349 === errors; valid361 = valid366; } else if (tag13 === "format") { const _errs353 = errors; let valid371 = false; valid371 = true; var valid372; if (data269.name !== undefined) { const _errs354 = errors; if (!(typeof data269.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid372 = _errs354 === errors; } else { valid372 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid372) { var valid373; if (data269.label !== undefined) { const _errs355 = errors; if (!(typeof data269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid373 = _errs355 === errors; } else { valid373 = true; } if (valid373) { if (data269.description !== undefined) { const _errs356 = errors; if (!(typeof data269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid373 = _errs356 === errors; } else { valid373 = true; } if (valid373) { for (const key75 in data269) { if ( key75 !== "type" && key75 !== "name" && key75 !== "label" && key75 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/" + key75 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key75, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid371) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid370 = _errs353 === errors; valid361 = valid370; } else if (tag13 === "genotype") { const _errs357 = errors; let valid375 = false; valid375 = true; var valid376; if (data269.name !== undefined) { const _errs358 = errors; if (!(typeof data269.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid376 = _errs358 === errors; } else { valid376 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid376) { var valid377; if (data269.label !== undefined) { const _errs359 = errors; if (!(typeof data269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid377 = _errs359 === errors; } else { valid377 = true; } if (valid377) { if (data269.description !== undefined) { const _errs360 = errors; if (!(typeof data269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid377 = _errs360 === errors; } else { valid377 = true; } if (valid377) { for (const key76 in data269) { if ( key76 !== "type" && key76 !== "name" && key76 !== "label" && key76 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/" + key76 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key76, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid375) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid374 = _errs357 === errors; valid361 = valid374; } else if (tag13 === "composed") { const _errs361 = errors; let valid379 = false; valid379 = true; var valid380; if (data269.name !== undefined) { let data282 = data269.name; const _errs362 = errors; if ( !( typeof data282 == "string" && (data282 === "clinVar" || data282 === "gene" || data282 === "genotype" || data282 === "gnomAdAf" || data282 === "hpo" || data282 === "inheritancePattern" || data282 === "locus" || data282 === "ref" || data282 === "vipC" || data282 === "vipCS" || data282 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.all.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid380 = _errs362 === errors; } else { valid380 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid380) { var valid381; if (data269.label !== undefined) { const _errs363 = errors; if (!(typeof data269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid381 = _errs363 === errors; } else { valid381 = true; } if (valid381) { if (data269.description !== undefined) { const _errs364 = errors; if (!(typeof data269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid381 = _errs364 === errors; } else { valid381 = true; } if (valid381) { for (const key77 in data269) { if ( key77 !== "type" && key77 !== "name" && key77 !== "label" && key77 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/" + key77 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key77, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid379) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid378 = _errs361 === errors; valid361 = valid378; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag13, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag13, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid361) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields/" + i14, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid360 = _errs344 === errors; if (!valid360) { break; } } valid359 = valid360; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/fields", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid358 = _errs343 === errors; } else { valid358 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid358) { for (const key78 in data252) { if (key78 !== "type" && key78 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/" + key78.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key78 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid357) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid356 = _errs342 === errors; valid335 = valid356; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag12 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag12 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid335) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid334 = _errs321 === errors; } else { valid334 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid334) { for (const key79 in data250) { if (key79 !== "direction" && key79 !== "field") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13 + "/" + key79.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key79 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid333) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders/" + i13, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid332 = _errs319 === errors; if (!valid332) { break; } } valid331 = valid332; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/orders", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid330 = _errs318 === errors; } else { valid330 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid330) { for (const key80 in data247) { if (key80 !== "selected" && key80 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12 + "/" + key80.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements", keyword: "properties", params: { error: "additional", additionalProperty: key80 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid329) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all/" + i12, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid328 = _errs316 === errors; if (!valid328) { break; } } valid327 = valid328; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/all", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid326 = _errs315 === errors; } else { valid326 = true; } if (valid326) { if (data245.snv !== undefined) { let data285 = data245.snv; const _errs365 = errors; let valid385 = false; if (!valid385) { if (Array.isArray(data285)) { var valid386 = true; const len15 = data285.length; for (let i15 = 0; i15 < len15; i15++) { let data286 = data285[i15]; const _errs366 = errors; let valid387 = false; if (data286 && typeof data286 == "object" && !Array.isArray(data286)) { valid387 = true; var valid388; if (data286.selected !== undefined) { const _errs367 = errors; if (!(typeof data286.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid388 = _errs367 === errors; } else { valid388 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid388) { if (data286.orders !== undefined) { let data288 = data286.orders; const _errs368 = errors; let valid389 = false; if (!valid389) { if (Array.isArray(data288)) { var valid390 = true; const len16 = data288.length; for (let i16 = 0; i16 < len16; i16++) { let data289 = data288[i16]; const _errs369 = errors; let valid391 = false; if (data289 && typeof data289 == "object" && !Array.isArray(data289)) { valid391 = true; var valid392; if (data289.direction !== undefined) { let data290 = data289.direction; const _errs370 = errors; if ( !(typeof data290 == "string" && (data290 === "asc" || data290 === "desc")) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/direction", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.sorts .optionalProperties.snv.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid392 = _errs370 === errors; } else { valid392 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid392) { if (data289.field !== undefined) { let data291 = data289.field; const _errs371 = errors; let valid393 = false; if (data291 && typeof data291 == "object" && !Array.isArray(data291)) { const tag14 = data291.type; if (tag14 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag14 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag14 == "string") { if (tag14 === "fixed") { const _errs372 = errors; let valid395 = false; valid395 = true; var valid396; if (data291.name !== undefined) { let data292 = data291.name; const _errs373 = errors; if ( !( typeof data292 == "string" && (data292 === "chrom" || data292 === "pos" || data292 === "id" || data292 === "ref" || data292 === "alt" || data292 === "qual" || data292 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties .sorts.optionalProperties.snv.elements.properties .orders.elements.properties.field.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid396 = _errs373 === errors; } else { valid396 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid396) { var valid397; if (data291.label !== undefined) { const _errs374 = errors; if (!(typeof data291.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid397 = _errs374 === errors; } else { valid397 = true; } if (valid397) { if (data291.description !== undefined) { const _errs375 = errors; if (!(typeof data291.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid397 = _errs375 === errors; } else { valid397 = true; } if (valid397) { for (const key81 in data291) { if ( key81 !== "type" && key81 !== "name" && key81 !== "label" && key81 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/" + key81.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key81, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid395) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid394 = _errs372 === errors; valid393 = valid394; } else if (tag14 === "info") { const _errs376 = errors; let valid399 = false; valid399 = true; var valid400; if (data291.name !== undefined) { const _errs377 = errors; if (!(typeof data291.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid400 = _errs377 === errors; } else { valid400 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid400) { var valid401; if (data291.label !== undefined) { const _errs378 = errors; if (!(typeof data291.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid401 = _errs378 === errors; } else { valid401 = true; } if (valid401) { if (data291.description !== undefined) { const _errs379 = errors; if (!(typeof data291.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid401 = _errs379 === errors; } else { valid401 = true; } if (valid401) { for (const key82 in data291) { if ( key82 !== "type" && key82 !== "name" && key82 !== "label" && key82 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/" + key82.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key82, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid399) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid398 = _errs376 === errors; valid393 = valid398; } else if (tag14 === "format") { const _errs380 = errors; let valid403 = false; valid403 = true; var valid404; if (data291.name !== undefined) { const _errs381 = errors; if (!(typeof data291.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid404 = _errs381 === errors; } else { valid404 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid404) { var valid405; if (data291.label !== undefined) { const _errs382 = errors; if (!(typeof data291.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid405 = _errs382 === errors; } else { valid405 = true; } if (valid405) { if (data291.description !== undefined) { const _errs383 = errors; if (!(typeof data291.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid405 = _errs383 === errors; } else { valid405 = true; } if (valid405) { for (const key83 in data291) { if ( key83 !== "type" && key83 !== "name" && key83 !== "label" && key83 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/" + key83.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key83, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid403) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid402 = _errs380 === errors; valid393 = valid402; } else if (tag14 === "genotype") { const _errs384 = errors; let valid407 = false; valid407 = true; var valid408; if (data291.name !== undefined) { const _errs385 = errors; if (!(typeof data291.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid408 = _errs385 === errors; } else { valid408 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid408) { var valid409; if (data291.label !== undefined) { const _errs386 = errors; if (!(typeof data291.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid409 = _errs386 === errors; } else { valid409 = true; } if (valid409) { if (data291.description !== undefined) { const _errs387 = errors; if (!(typeof data291.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid409 = _errs387 === errors; } else { valid409 = true; } if (valid409) { for (const key84 in data291) { if ( key84 !== "type" && key84 !== "name" && key84 !== "label" && key84 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/" + key84.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key84, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid407) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid406 = _errs384 === errors; valid393 = valid406; } else if (tag14 === "composed") { const _errs388 = errors; let valid411 = false; valid411 = true; var valid412; if (data291.name !== undefined) { let data304 = data291.name; const _errs389 = errors; if ( !( typeof data304 == "string" && (data304 === "clinVar" || data304 === "confidenceInterval" || data304 === "gene" || data304 === "genotype" || data304 === "genotype_maternal" || data304 === "genotype_paternal" || data304 === "gnomAdAf" || data304 === "hpo" || data304 === "inheritancePattern" || data304 === "locus" || data304 === "spanningReads" || data304 === "vipC" || data304 === "vipCS" || data304 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties .sorts.optionalProperties.snv.elements.properties .orders.elements.properties.field.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid412 = _errs389 === errors; } else { valid412 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid412) { var valid413; if (data291.label !== undefined) { const _errs390 = errors; if (!(typeof data291.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid413 = _errs390 === errors; } else { valid413 = true; } if (valid413) { if (data291.description !== undefined) { const _errs391 = errors; if (!(typeof data291.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid413 = _errs391 === errors; } else { valid413 = true; } if (valid413) { for (const key85 in data291) { if ( key85 !== "type" && key85 !== "name" && key85 !== "label" && key85 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/" + key85.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key85, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid411) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid410 = _errs388 === errors; valid393 = valid410; } else if (tag14 === "group") { const _errs392 = errors; let valid415 = false; valid415 = true; var valid416; if (data291.fields !== undefined) { let data307 = data291.fields; const _errs393 = errors; let valid417 = false; if (!valid417) { if (Array.isArray(data307)) { var valid418 = true; const len17 = data307.length; for (let i17 = 0; i17 < len17; i17++) { let data308 = data307[i17]; const _errs394 = errors; let valid419 = false; if ( data308 && typeof data308 == "object" && !Array.isArray(data308) ) { const tag15 = data308.type; if (tag15 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag15, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag15 == "string") { if (tag15 === "fixed") { const _errs395 = errors; let valid421 = false; valid421 = true; var valid422; if (data308.name !== undefined) { let data309 = data308.name; const _errs396 = errors; if ( !( typeof data309 == "string" && (data309 === "chrom" || data309 === "pos" || data309 === "id" || data309 === "ref" || data309 === "alt" || data309 === "qual" || data309 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.snv.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid422 = _errs396 === errors; } else { valid422 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid422) { var valid423; if (data308.label !== undefined) { const _errs397 = errors; if (!(typeof data308.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid423 = _errs397 === errors; } else { valid423 = true; } if (valid423) { if (data308.description !== undefined) { const _errs398 = errors; if (!(typeof data308.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid423 = _errs398 === errors; } else { valid423 = true; } if (valid423) { for (const key86 in data308) { if ( key86 !== "type" && key86 !== "name" && key86 !== "label" && key86 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/" + key86 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key86, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid421) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid420 = _errs395 === errors; valid419 = valid420; } else if (tag15 === "info") { const _errs399 = errors; let valid425 = false; valid425 = true; var valid426; if (data308.name !== undefined) { const _errs400 = errors; if (!(typeof data308.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid426 = _errs400 === errors; } else { valid426 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid426) { var valid427; if (data308.label !== undefined) { const _errs401 = errors; if (!(typeof data308.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid427 = _errs401 === errors; } else { valid427 = true; } if (valid427) { if (data308.description !== undefined) { const _errs402 = errors; if (!(typeof data308.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid427 = _errs402 === errors; } else { valid427 = true; } if (valid427) { for (const key87 in data308) { if ( key87 !== "type" && key87 !== "name" && key87 !== "label" && key87 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/" + key87 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key87, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid425) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid424 = _errs399 === errors; valid419 = valid424; } else if (tag15 === "format") { const _errs403 = errors; let valid429 = false; valid429 = true; var valid430; if (data308.name !== undefined) { const _errs404 = errors; if (!(typeof data308.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid430 = _errs404 === errors; } else { valid430 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid430) { var valid431; if (data308.label !== undefined) { const _errs405 = errors; if (!(typeof data308.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid431 = _errs405 === errors; } else { valid431 = true; } if (valid431) { if (data308.description !== undefined) { const _errs406 = errors; if (!(typeof data308.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid431 = _errs406 === errors; } else { valid431 = true; } if (valid431) { for (const key88 in data308) { if ( key88 !== "type" && key88 !== "name" && key88 !== "label" && key88 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/" + key88 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key88, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid429) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid428 = _errs403 === errors; valid419 = valid428; } else if (tag15 === "genotype") { const _errs407 = errors; let valid433 = false; valid433 = true; var valid434; if (data308.name !== undefined) { const _errs408 = errors; if (!(typeof data308.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid434 = _errs408 === errors; } else { valid434 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid434) { var valid435; if (data308.label !== undefined) { const _errs409 = errors; if (!(typeof data308.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid435 = _errs409 === errors; } else { valid435 = true; } if (valid435) { if (data308.description !== undefined) { const _errs410 = errors; if (!(typeof data308.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid435 = _errs410 === errors; } else { valid435 = true; } if (valid435) { for (const key89 in data308) { if ( key89 !== "type" && key89 !== "name" && key89 !== "label" && key89 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/" + key89 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key89, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid433) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid432 = _errs407 === errors; valid419 = valid432; } else if (tag15 === "composed") { const _errs411 = errors; let valid437 = false; valid437 = true; var valid438; if (data308.name !== undefined) { let data321 = data308.name; const _errs412 = errors; if ( !( typeof data321 == "string" && (data321 === "clinVar" || data321 === "gene" || data321 === "genotype" || data321 === "gnomAdAf" || data321 === "hpo" || data321 === "inheritancePattern" || data321 === "locus" || data321 === "ref" || data321 === "vipC" || data321 === "vipCS" || data321 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.snv.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid438 = _errs412 === errors; } else { valid438 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid438) { var valid439; if (data308.label !== undefined) { const _errs413 = errors; if (!(typeof data308.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid439 = _errs413 === errors; } else { valid439 = true; } if (valid439) { if (data308.description !== undefined) { const _errs414 = errors; if (!(typeof data308.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid439 = _errs414 === errors; } else { valid439 = true; } if (valid439) { for (const key90 in data308) { if ( key90 !== "type" && key90 !== "name" && key90 !== "label" && key90 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/" + key90 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key90, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid437) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid436 = _errs411 === errors; valid419 = valid436; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag15, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag15, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid419) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields/" + i17, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid418 = _errs394 === errors; if (!valid418) { break; } } valid417 = valid418; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/fields", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid416 = _errs393 === errors; } else { valid416 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid416) { for (const key91 in data291) { if (key91 !== "type" && key91 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/" + key91.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key91, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid415) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid414 = _errs392 === errors; valid393 = valid414; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag14 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag14 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid393) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid392 = _errs371 === errors; } else { valid392 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid392) { for (const key92 in data289) { if (key92 !== "direction" && key92 !== "field") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16 + "/" + key92.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key92 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid391) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders/" + i16, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid390 = _errs369 === errors; if (!valid390) { break; } } valid389 = valid390; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/orders", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid388 = _errs368 === errors; } else { valid388 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid388) { for (const key93 in data286) { if (key93 !== "selected" && key93 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15 + "/" + key93.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key93 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid387) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv/" + i15, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid386 = _errs366 === errors; if (!valid386) { break; } } valid385 = valid386; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/snv", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid326 = _errs365 === errors; } else { valid326 = true; } if (valid326) { if (data245.str !== undefined) { let data324 = data245.str; const _errs415 = errors; let valid443 = false; if (!valid443) { if (Array.isArray(data324)) { var valid444 = true; const len18 = data324.length; for (let i18 = 0; i18 < len18; i18++) { let data325 = data324[i18]; const _errs416 = errors; let valid445 = false; if (data325 && typeof data325 == "object" && !Array.isArray(data325)) { valid445 = true; var valid446; if (data325.selected !== undefined) { const _errs417 = errors; if (!(typeof data325.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid446 = _errs417 === errors; } else { valid446 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid446) { if (data325.orders !== undefined) { let data327 = data325.orders; const _errs418 = errors; let valid447 = false; if (!valid447) { if (Array.isArray(data327)) { var valid448 = true; const len19 = data327.length; for (let i19 = 0; i19 < len19; i19++) { let data328 = data327[i19]; const _errs419 = errors; let valid449 = false; if (data328 && typeof data328 == "object" && !Array.isArray(data328)) { valid449 = true; var valid450; if (data328.direction !== undefined) { let data329 = data328.direction; const _errs420 = errors; if ( !( typeof data329 == "string" && (data329 === "asc" || data329 === "desc") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/direction", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.sorts .optionalProperties.str.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid450 = _errs420 === errors; } else { valid450 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid450) { if (data328.field !== undefined) { let data330 = data328.field; const _errs421 = errors; let valid451 = false; if (data330 && typeof data330 == "object" && !Array.isArray(data330)) { const tag16 = data330.type; if (tag16 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag16 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag16 == "string") { if (tag16 === "fixed") { const _errs422 = errors; let valid453 = false; valid453 = true; var valid454; if (data330.name !== undefined) { let data331 = data330.name; const _errs423 = errors; if ( !( typeof data331 == "string" && (data331 === "chrom" || data331 === "pos" || data331 === "id" || data331 === "ref" || data331 === "alt" || data331 === "qual" || data331 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties .sorts.optionalProperties.str.elements.properties .orders.elements.properties.field.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid454 = _errs423 === errors; } else { valid454 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid454) { var valid455; if (data330.label !== undefined) { const _errs424 = errors; if (!(typeof data330.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid455 = _errs424 === errors; } else { valid455 = true; } if (valid455) { if (data330.description !== undefined) { const _errs425 = errors; if (!(typeof data330.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid455 = _errs425 === errors; } else { valid455 = true; } if (valid455) { for (const key94 in data330) { if ( key94 !== "type" && key94 !== "name" && key94 !== "label" && key94 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/" + key94.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key94, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid453) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid452 = _errs422 === errors; valid451 = valid452; } else if (tag16 === "info") { const _errs426 = errors; let valid457 = false; valid457 = true; var valid458; if (data330.name !== undefined) { const _errs427 = errors; if (!(typeof data330.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid458 = _errs427 === errors; } else { valid458 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid458) { var valid459; if (data330.label !== undefined) { const _errs428 = errors; if (!(typeof data330.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid459 = _errs428 === errors; } else { valid459 = true; } if (valid459) { if (data330.description !== undefined) { const _errs429 = errors; if (!(typeof data330.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid459 = _errs429 === errors; } else { valid459 = true; } if (valid459) { for (const key95 in data330) { if ( key95 !== "type" && key95 !== "name" && key95 !== "label" && key95 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/" + key95.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key95, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid457) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid456 = _errs426 === errors; valid451 = valid456; } else if (tag16 === "format") { const _errs430 = errors; let valid461 = false; valid461 = true; var valid462; if (data330.name !== undefined) { const _errs431 = errors; if (!(typeof data330.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid462 = _errs431 === errors; } else { valid462 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid462) { var valid463; if (data330.label !== undefined) { const _errs432 = errors; if (!(typeof data330.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid463 = _errs432 === errors; } else { valid463 = true; } if (valid463) { if (data330.description !== undefined) { const _errs433 = errors; if (!(typeof data330.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid463 = _errs433 === errors; } else { valid463 = true; } if (valid463) { for (const key96 in data330) { if ( key96 !== "type" && key96 !== "name" && key96 !== "label" && key96 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/" + key96.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key96, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid461) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid460 = _errs430 === errors; valid451 = valid460; } else if (tag16 === "genotype") { const _errs434 = errors; let valid465 = false; valid465 = true; var valid466; if (data330.name !== undefined) { const _errs435 = errors; if (!(typeof data330.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid466 = _errs435 === errors; } else { valid466 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid466) { var valid467; if (data330.label !== undefined) { const _errs436 = errors; if (!(typeof data330.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid467 = _errs436 === errors; } else { valid467 = true; } if (valid467) { if (data330.description !== undefined) { const _errs437 = errors; if (!(typeof data330.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid467 = _errs437 === errors; } else { valid467 = true; } if (valid467) { for (const key97 in data330) { if ( key97 !== "type" && key97 !== "name" && key97 !== "label" && key97 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/" + key97.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key97, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid465) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid464 = _errs434 === errors; valid451 = valid464; } else if (tag16 === "composed") { const _errs438 = errors; let valid469 = false; valid469 = true; var valid470; if (data330.name !== undefined) { let data343 = data330.name; const _errs439 = errors; if ( !( typeof data343 == "string" && (data343 === "clinVar" || data343 === "confidenceInterval" || data343 === "gene" || data343 === "genotype" || data343 === "genotype_maternal" || data343 === "genotype_paternal" || data343 === "gnomAdAf" || data343 === "hpo" || data343 === "inheritancePattern" || data343 === "locus" || data343 === "spanningReads" || data343 === "vipC" || data343 === "vipCS" || data343 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties .sorts.optionalProperties.str.elements.properties .orders.elements.properties.field.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid470 = _errs439 === errors; } else { valid470 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid470) { var valid471; if (data330.label !== undefined) { const _errs440 = errors; if (!(typeof data330.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid471 = _errs440 === errors; } else { valid471 = true; } if (valid471) { if (data330.description !== undefined) { const _errs441 = errors; if (!(typeof data330.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid471 = _errs441 === errors; } else { valid471 = true; } if (valid471) { for (const key98 in data330) { if ( key98 !== "type" && key98 !== "name" && key98 !== "label" && key98 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/" + key98.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key98, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid469) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid468 = _errs438 === errors; valid451 = valid468; } else if (tag16 === "group") { const _errs442 = errors; let valid473 = false; valid473 = true; var valid474; if (data330.fields !== undefined) { let data346 = data330.fields; const _errs443 = errors; let valid475 = false; if (!valid475) { if (Array.isArray(data346)) { var valid476 = true; const len20 = data346.length; for (let i20 = 0; i20 < len20; i20++) { let data347 = data346[i20]; const _errs444 = errors; let valid477 = false; if ( data347 && typeof data347 == "object" && !Array.isArray(data347) ) { const tag17 = data347.type; if (tag17 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag17, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag17 == "string") { if (tag17 === "fixed") { const _errs445 = errors; let valid479 = false; valid479 = true; var valid480; if (data347.name !== undefined) { let data348 = data347.name; const _errs446 = errors; if ( !( typeof data348 == "string" && (data348 === "chrom" || data348 === "pos" || data348 === "id" || data348 === "ref" || data348 === "alt" || data348 === "qual" || data348 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.str.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid480 = _errs446 === errors; } else { valid480 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid480) { var valid481; if (data347.label !== undefined) { const _errs447 = errors; if (!(typeof data347.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid481 = _errs447 === errors; } else { valid481 = true; } if (valid481) { if (data347.description !== undefined) { const _errs448 = errors; if ( !(typeof data347.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid481 = _errs448 === errors; } else { valid481 = true; } if (valid481) { for (const key99 in data347) { if ( key99 !== "type" && key99 !== "name" && key99 !== "label" && key99 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/" + key99 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key99, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid479) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid478 = _errs445 === errors; valid477 = valid478; } else if (tag17 === "info") { const _errs449 = errors; let valid483 = false; valid483 = true; var valid484; if (data347.name !== undefined) { const _errs450 = errors; if (!(typeof data347.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid484 = _errs450 === errors; } else { valid484 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid484) { var valid485; if (data347.label !== undefined) { const _errs451 = errors; if (!(typeof data347.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid485 = _errs451 === errors; } else { valid485 = true; } if (valid485) { if (data347.description !== undefined) { const _errs452 = errors; if ( !(typeof data347.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid485 = _errs452 === errors; } else { valid485 = true; } if (valid485) { for (const key100 in data347) { if ( key100 !== "type" && key100 !== "name" && key100 !== "label" && key100 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/" + key100 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key100, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid483) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid482 = _errs449 === errors; valid477 = valid482; } else if (tag17 === "format") { const _errs453 = errors; let valid487 = false; valid487 = true; var valid488; if (data347.name !== undefined) { const _errs454 = errors; if (!(typeof data347.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid488 = _errs454 === errors; } else { valid488 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid488) { var valid489; if (data347.label !== undefined) { const _errs455 = errors; if (!(typeof data347.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid489 = _errs455 === errors; } else { valid489 = true; } if (valid489) { if (data347.description !== undefined) { const _errs456 = errors; if ( !(typeof data347.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid489 = _errs456 === errors; } else { valid489 = true; } if (valid489) { for (const key101 in data347) { if ( key101 !== "type" && key101 !== "name" && key101 !== "label" && key101 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/" + key101 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key101, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid487) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid486 = _errs453 === errors; valid477 = valid486; } else if (tag17 === "genotype") { const _errs457 = errors; let valid491 = false; valid491 = true; var valid492; if (data347.name !== undefined) { const _errs458 = errors; if (!(typeof data347.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid492 = _errs458 === errors; } else { valid492 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid492) { var valid493; if (data347.label !== undefined) { const _errs459 = errors; if (!(typeof data347.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid493 = _errs459 === errors; } else { valid493 = true; } if (valid493) { if (data347.description !== undefined) { const _errs460 = errors; if ( !(typeof data347.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid493 = _errs460 === errors; } else { valid493 = true; } if (valid493) { for (const key102 in data347) { if ( key102 !== "type" && key102 !== "name" && key102 !== "label" && key102 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/" + key102 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key102, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid491) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid490 = _errs457 === errors; valid477 = valid490; } else if (tag17 === "composed") { const _errs461 = errors; let valid495 = false; valid495 = true; var valid496; if (data347.name !== undefined) { let data360 = data347.name; const _errs462 = errors; if ( !( typeof data360 == "string" && (data360 === "clinVar" || data360 === "gene" || data360 === "genotype" || data360 === "gnomAdAf" || data360 === "hpo" || data360 === "inheritancePattern" || data360 === "locus" || data360 === "ref" || data360 === "vipC" || data360 === "vipCS" || data360 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.str.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid496 = _errs462 === errors; } else { valid496 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid496) { var valid497; if (data347.label !== undefined) { const _errs463 = errors; if (!(typeof data347.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid497 = _errs463 === errors; } else { valid497 = true; } if (valid497) { if (data347.description !== undefined) { const _errs464 = errors; if ( !(typeof data347.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid497 = _errs464 === errors; } else { valid497 = true; } if (valid497) { for (const key103 in data347) { if ( key103 !== "type" && key103 !== "name" && key103 !== "label" && key103 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/" + key103 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key103, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid495) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid494 = _errs461 === errors; valid477 = valid494; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag17, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag17, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid477) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields/" + i20, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid476 = _errs444 === errors; if (!valid476) { break; } } valid475 = valid476; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/fields", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid474 = _errs443 === errors; } else { valid474 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid474) { for (const key104 in data330) { if (key104 !== "type" && key104 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/" + key104.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key104, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid473) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid472 = _errs442 === errors; valid451 = valid472; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag16 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag16 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid451) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid450 = _errs421 === errors; } else { valid450 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid450) { for (const key105 in data328) { if (key105 !== "direction" && key105 !== "field") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19 + "/" + key105.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key105 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid449) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders/" + i19, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid448 = _errs419 === errors; if (!valid448) { break; } } valid447 = valid448; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/orders", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid446 = _errs418 === errors; } else { valid446 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid446) { for (const key106 in data325) { if (key106 !== "selected" && key106 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18 + "/" + key106.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements", keyword: "properties", params: { error: "additional", additionalProperty: key106 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid445) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str/" + i18, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid444 = _errs416 === errors; if (!valid444) { break; } } valid443 = valid444; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/str", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid326 = _errs415 === errors; } else { valid326 = true; } if (valid326) { if (data245.sv !== undefined) { let data363 = data245.sv; const _errs465 = errors; let valid501 = false; if (!valid501) { if (Array.isArray(data363)) { var valid502 = true; const len21 = data363.length; for (let i21 = 0; i21 < len21; i21++) { let data364 = data363[i21]; const _errs466 = errors; let valid503 = false; if (data364 && typeof data364 == "object" && !Array.isArray(data364)) { valid503 = true; var valid504; if (data364.selected !== undefined) { const _errs467 = errors; if (!(typeof data364.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid504 = _errs467 === errors; } else { valid504 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid504) { if (data364.orders !== undefined) { let data366 = data364.orders; const _errs468 = errors; let valid505 = false; if (!valid505) { if (Array.isArray(data366)) { var valid506 = true; const len22 = data366.length; for (let i22 = 0; i22 < len22; i22++) { let data367 = data366[i22]; const _errs469 = errors; let valid507 = false; if (data367 && typeof data367 == "object" && !Array.isArray(data367)) { valid507 = true; var valid508; if (data367.direction !== undefined) { let data368 = data367.direction; const _errs470 = errors; if ( !( typeof data368 == "string" && (data368 === "asc" || data368 === "desc") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/direction", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants.optionalProperties.sorts .optionalProperties.sv.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid508 = _errs470 === errors; } else { valid508 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid508) { if (data367.field !== undefined) { let data369 = data367.field; const _errs471 = errors; let valid509 = false; if ( data369 && typeof data369 == "object" && !Array.isArray(data369) ) { const tag18 = data369.type; if (tag18 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag18 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag18 == "string") { if (tag18 === "fixed") { const _errs472 = errors; let valid511 = false; valid511 = true; var valid512; if (data369.name !== undefined) { let data370 = data369.name; const _errs473 = errors; if ( !( typeof data370 == "string" && (data370 === "chrom" || data370 === "pos" || data370 === "id" || data370 === "ref" || data370 === "alt" || data370 === "qual" || data370 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts.optionalProperties.sv .elements.properties.orders.elements.properties .field.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid512 = _errs473 === errors; } else { valid512 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid512) { var valid513; if (data369.label !== undefined) { const _errs474 = errors; if (!(typeof data369.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid513 = _errs474 === errors; } else { valid513 = true; } if (valid513) { if (data369.description !== undefined) { const _errs475 = errors; if (!(typeof data369.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid513 = _errs475 === errors; } else { valid513 = true; } if (valid513) { for (const key107 in data369) { if ( key107 !== "type" && key107 !== "name" && key107 !== "label" && key107 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/" + key107.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key107, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid511) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid510 = _errs472 === errors; valid509 = valid510; } else if (tag18 === "info") { const _errs476 = errors; let valid515 = false; valid515 = true; var valid516; if (data369.name !== undefined) { const _errs477 = errors; if (!(typeof data369.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid516 = _errs477 === errors; } else { valid516 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid516) { var valid517; if (data369.label !== undefined) { const _errs478 = errors; if (!(typeof data369.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid517 = _errs478 === errors; } else { valid517 = true; } if (valid517) { if (data369.description !== undefined) { const _errs479 = errors; if (!(typeof data369.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid517 = _errs479 === errors; } else { valid517 = true; } if (valid517) { for (const key108 in data369) { if ( key108 !== "type" && key108 !== "name" && key108 !== "label" && key108 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/" + key108.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key108, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid515) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid514 = _errs476 === errors; valid509 = valid514; } else if (tag18 === "format") { const _errs480 = errors; let valid519 = false; valid519 = true; var valid520; if (data369.name !== undefined) { const _errs481 = errors; if (!(typeof data369.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid520 = _errs481 === errors; } else { valid520 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid520) { var valid521; if (data369.label !== undefined) { const _errs482 = errors; if (!(typeof data369.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid521 = _errs482 === errors; } else { valid521 = true; } if (valid521) { if (data369.description !== undefined) { const _errs483 = errors; if (!(typeof data369.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid521 = _errs483 === errors; } else { valid521 = true; } if (valid521) { for (const key109 in data369) { if ( key109 !== "type" && key109 !== "name" && key109 !== "label" && key109 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/" + key109.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key109, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid519) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid518 = _errs480 === errors; valid509 = valid518; } else if (tag18 === "genotype") { const _errs484 = errors; let valid523 = false; valid523 = true; var valid524; if (data369.name !== undefined) { const _errs485 = errors; if (!(typeof data369.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid524 = _errs485 === errors; } else { valid524 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid524) { var valid525; if (data369.label !== undefined) { const _errs486 = errors; if (!(typeof data369.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid525 = _errs486 === errors; } else { valid525 = true; } if (valid525) { if (data369.description !== undefined) { const _errs487 = errors; if (!(typeof data369.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid525 = _errs487 === errors; } else { valid525 = true; } if (valid525) { for (const key110 in data369) { if ( key110 !== "type" && key110 !== "name" && key110 !== "label" && key110 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/" + key110.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key110, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid523) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid522 = _errs484 === errors; valid509 = valid522; } else if (tag18 === "composed") { const _errs488 = errors; let valid527 = false; valid527 = true; var valid528; if (data369.name !== undefined) { let data382 = data369.name; const _errs489 = errors; if ( !( typeof data382 == "string" && (data382 === "clinVar" || data382 === "confidenceInterval" || data382 === "gene" || data382 === "genotype" || data382 === "genotype_maternal" || data382 === "genotype_paternal" || data382 === "gnomAdAf" || data382 === "hpo" || data382 === "inheritancePattern" || data382 === "locus" || data382 === "spanningReads" || data382 === "vipC" || data382 === "vipCS" || data382 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts.optionalProperties.sv .elements.properties.orders.elements.properties .field.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid528 = _errs489 === errors; } else { valid528 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid528) { var valid529; if (data369.label !== undefined) { const _errs490 = errors; if (!(typeof data369.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid529 = _errs490 === errors; } else { valid529 = true; } if (valid529) { if (data369.description !== undefined) { const _errs491 = errors; if (!(typeof data369.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid529 = _errs491 === errors; } else { valid529 = true; } if (valid529) { for (const key111 in data369) { if ( key111 !== "type" && key111 !== "name" && key111 !== "label" && key111 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/" + key111.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key111, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid527) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid526 = _errs488 === errors; valid509 = valid526; } else if (tag18 === "group") { const _errs492 = errors; let valid531 = false; valid531 = true; var valid532; if (data369.fields !== undefined) { let data385 = data369.fields; const _errs493 = errors; let valid533 = false; if (!valid533) { if (Array.isArray(data385)) { var valid534 = true; const len23 = data385.length; for (let i23 = 0; i23 < len23; i23++) { let data386 = data385[i23]; const _errs494 = errors; let valid535 = false; if ( data386 && typeof data386 == "object" && !Array.isArray(data386) ) { const tag19 = data386.type; if (tag19 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag19, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag19 == "string") { if (tag19 === "fixed") { const _errs495 = errors; let valid537 = false; valid537 = true; var valid538; if (data386.name !== undefined) { let data387 = data386.name; const _errs496 = errors; if ( !( typeof data387 == "string" && (data387 === "chrom" || data387 === "pos" || data387 === "id" || data387 === "ref" || data387 === "alt" || data387 === "qual" || data387 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.sv.elements .properties.orders.elements .properties.field.mapping.group .properties.fields.elements.mapping .fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid538 = _errs496 === errors; } else { valid538 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid538) { var valid539; if (data386.label !== undefined) { const _errs497 = errors; if (!(typeof data386.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid539 = _errs497 === errors; } else { valid539 = true; } if (valid539) { if (data386.description !== undefined) { const _errs498 = errors; if ( !(typeof data386.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid539 = _errs498 === errors; } else { valid539 = true; } if (valid539) { for (const key112 in data386) { if ( key112 !== "type" && key112 !== "name" && key112 !== "label" && key112 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/" + key112 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key112, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid537) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid536 = _errs495 === errors; valid535 = valid536; } else if (tag19 === "info") { const _errs499 = errors; let valid541 = false; valid541 = true; var valid542; if (data386.name !== undefined) { const _errs500 = errors; if (!(typeof data386.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid542 = _errs500 === errors; } else { valid542 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid542) { var valid543; if (data386.label !== undefined) { const _errs501 = errors; if (!(typeof data386.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid543 = _errs501 === errors; } else { valid543 = true; } if (valid543) { if (data386.description !== undefined) { const _errs502 = errors; if ( !(typeof data386.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid543 = _errs502 === errors; } else { valid543 = true; } if (valid543) { for (const key113 in data386) { if ( key113 !== "type" && key113 !== "name" && key113 !== "label" && key113 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/" + key113 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key113, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid541) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid540 = _errs499 === errors; valid535 = valid540; } else if (tag19 === "format") { const _errs503 = errors; let valid545 = false; valid545 = true; var valid546; if (data386.name !== undefined) { const _errs504 = errors; if (!(typeof data386.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid546 = _errs504 === errors; } else { valid546 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid546) { var valid547; if (data386.label !== undefined) { const _errs505 = errors; if (!(typeof data386.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid547 = _errs505 === errors; } else { valid547 = true; } if (valid547) { if (data386.description !== undefined) { const _errs506 = errors; if ( !(typeof data386.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid547 = _errs506 === errors; } else { valid547 = true; } if (valid547) { for (const key114 in data386) { if ( key114 !== "type" && key114 !== "name" && key114 !== "label" && key114 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/" + key114 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key114, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid545) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid544 = _errs503 === errors; valid535 = valid544; } else if (tag19 === "genotype") { const _errs507 = errors; let valid549 = false; valid549 = true; var valid550; if (data386.name !== undefined) { const _errs508 = errors; if (!(typeof data386.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid550 = _errs508 === errors; } else { valid550 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid550) { var valid551; if (data386.label !== undefined) { const _errs509 = errors; if (!(typeof data386.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid551 = _errs509 === errors; } else { valid551 = true; } if (valid551) { if (data386.description !== undefined) { const _errs510 = errors; if ( !(typeof data386.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid551 = _errs510 === errors; } else { valid551 = true; } if (valid551) { for (const key115 in data386) { if ( key115 !== "type" && key115 !== "name" && key115 !== "label" && key115 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/" + key115 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key115, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid549) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid548 = _errs507 === errors; valid535 = valid548; } else if (tag19 === "composed") { const _errs511 = errors; let valid553 = false; valid553 = true; var valid554; if (data386.name !== undefined) { let data399 = data386.name; const _errs512 = errors; if ( !( typeof data399 == "string" && (data399 === "clinVar" || data399 === "gene" || data399 === "genotype" || data399 === "gnomAdAf" || data399 === "hpo" || data399 === "inheritancePattern" || data399 === "locus" || data399 === "ref" || data399 === "vipC" || data399 === "vipCS" || data399 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/name", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variants .optionalProperties.sorts .optionalProperties.sv.elements .properties.orders.elements .properties.field.mapping.group .properties.fields.elements.mapping .composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid554 = _errs512 === errors; } else { valid554 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid554) { var valid555; if (data386.label !== undefined) { const _errs513 = errors; if (!(typeof data386.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/label", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid555 = _errs513 === errors; } else { valid555 = true; } if (valid555) { if (data386.description !== undefined) { const _errs514 = errors; if ( !(typeof data386.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/description", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid555 = _errs514 === errors; } else { valid555 = true; } if (valid555) { for (const key116 in data386) { if ( key116 !== "type" && key116 !== "name" && key116 !== "label" && key116 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/" + key116 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key116, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid553) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid552 = _errs511 === errors; valid535 = valid552; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag19, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23 + "/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag19, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid535) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields/" + i23, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid534 = _errs494 === errors; if (!valid534) { break; } } valid533 = valid534; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/fields", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid532 = _errs493 === errors; } else { valid532 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid532) { for (const key117 in data369) { if (key117 !== "type" && key117 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/" + key117.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key117, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid531) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid530 = _errs492 === errors; valid509 = valid530; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag18 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field/type", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag18 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid509) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/field", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid508 = _errs471 === errors; } else { valid508 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid508) { for (const key118 in data367) { if (key118 !== "direction" && key118 !== "field") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22 + "/" + key118.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key118 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid507) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders/" + i22, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid506 = _errs469 === errors; if (!valid506) { break; } } valid505 = valid506; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/orders", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid504 = _errs468 === errors; } else { valid504 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid504) { for (const key119 in data364) { if (key119 !== "selected" && key119 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21 + "/" + key119.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key119 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid503) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv/" + i21, schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid502 = _errs466 === errors; if (!valid502) { break; } } valid501 = valid502; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/sv", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid326 = _errs465 === errors; } else { valid326 = true; } if (valid326) { for (const key120 in data245) { if (key120 !== "all" && key120 !== "snv" && key120 !== "str" && key120 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts/" + key120.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/sorts", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key120 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid324) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/sorts", schemaPath: "/properties/sample_variants/optionalProperties/sorts/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid228 = _errs314 === errors; } else { valid228 = true; } if (valid228) { if (data18.recordsPerPage !== undefined) { let data402 = data18.recordsPerPage; const _errs515 = errors; let valid559 = false; if (data402 && typeof data402 == "object" && !Array.isArray(data402)) { valid559 = true; var valid561; if (data402.all !== undefined) { let data403 = data402.all; const _errs516 = errors; let valid562 = false; if (!valid562) { if (Array.isArray(data403)) { var valid563 = true; const len24 = data403.length; for (let i24 = 0; i24 < len24; i24++) { let data404 = data403[i24]; const _errs517 = errors; let valid564 = false; if (data404 && typeof data404 == "object" && !Array.isArray(data404)) { valid564 = true; var valid565; if (data404.number !== undefined) { let data405 = data404.number; const _errs518 = errors; if ( !( typeof data405 == "number" && isFinite(data405) && !(data405 % 1) && data405 >= 0 && data405 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/all/" + i24 + "/number", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid565 = _errs518 === errors; } else { valid565 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/all/" + i24, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid565) { var valid566; if (data404.selected !== undefined) { const _errs519 = errors; if (!(typeof data404.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/all/" + i24 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid566 = _errs519 === errors; } else { valid566 = true; } if (valid566) { for (const key121 in data404) { if (key121 !== "number" && key121 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/all/" + i24 + "/" + key121.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/all/elements", keyword: "properties", params: { error: "additional", additionalProperty: key121 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid564) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/all/" + i24, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid563 = _errs517 === errors; if (!valid563) { break; } } valid562 = valid563; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/all", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid561 = _errs516 === errors; } else { valid561 = true; } if (valid561) { if (data402.snv !== undefined) { let data407 = data402.snv; const _errs520 = errors; let valid567 = false; if (!valid567) { if (Array.isArray(data407)) { var valid568 = true; const len25 = data407.length; for (let i25 = 0; i25 < len25; i25++) { let data408 = data407[i25]; const _errs521 = errors; let valid569 = false; if (data408 && typeof data408 == "object" && !Array.isArray(data408)) { valid569 = true; var valid570; if (data408.number !== undefined) { let data409 = data408.number; const _errs522 = errors; if ( !( typeof data409 == "number" && isFinite(data409) && !(data409 % 1) && data409 >= 0 && data409 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/snv/" + i25 + "/number", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid570 = _errs522 === errors; } else { valid570 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/snv/" + i25, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid570) { var valid571; if (data408.selected !== undefined) { const _errs523 = errors; if (!(typeof data408.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/snv/" + i25 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid571 = _errs523 === errors; } else { valid571 = true; } if (valid571) { for (const key122 in data408) { if (key122 !== "number" && key122 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/snv/" + i25 + "/" + key122.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key122 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid569) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/snv/" + i25, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid568 = _errs521 === errors; if (!valid568) { break; } } valid567 = valid568; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/snv", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid561 = _errs520 === errors; } else { valid561 = true; } if (valid561) { if (data402.str !== undefined) { let data411 = data402.str; const _errs524 = errors; let valid572 = false; if (!valid572) { if (Array.isArray(data411)) { var valid573 = true; const len26 = data411.length; for (let i26 = 0; i26 < len26; i26++) { let data412 = data411[i26]; const _errs525 = errors; let valid574 = false; if (data412 && typeof data412 == "object" && !Array.isArray(data412)) { valid574 = true; var valid575; if (data412.number !== undefined) { let data413 = data412.number; const _errs526 = errors; if ( !( typeof data413 == "number" && isFinite(data413) && !(data413 % 1) && data413 >= 0 && data413 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/str/" + i26 + "/number", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid575 = _errs526 === errors; } else { valid575 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/str/" + i26, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid575) { var valid576; if (data412.selected !== undefined) { const _errs527 = errors; if (!(typeof data412.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/str/" + i26 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid576 = _errs527 === errors; } else { valid576 = true; } if (valid576) { for (const key123 in data412) { if (key123 !== "number" && key123 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/str/" + i26 + "/" + key123.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/str/elements", keyword: "properties", params: { error: "additional", additionalProperty: key123 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid574) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/str/" + i26, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid573 = _errs525 === errors; if (!valid573) { break; } } valid572 = valid573; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/str", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid561 = _errs524 === errors; } else { valid561 = true; } if (valid561) { if (data402.sv !== undefined) { let data415 = data402.sv; const _errs528 = errors; let valid577 = false; if (!valid577) { if (Array.isArray(data415)) { var valid578 = true; const len27 = data415.length; for (let i27 = 0; i27 < len27; i27++) { let data416 = data415[i27]; const _errs529 = errors; let valid579 = false; if (data416 && typeof data416 == "object" && !Array.isArray(data416)) { valid579 = true; var valid580; if (data416.number !== undefined) { let data417 = data416.number; const _errs530 = errors; if ( !( typeof data417 == "number" && isFinite(data417) && !(data417 % 1) && data417 >= 0 && data417 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/sv/" + i27 + "/number", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid580 = _errs530 === errors; } else { valid580 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/sv/" + i27, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid580) { var valid581; if (data416.selected !== undefined) { const _errs531 = errors; if (!(typeof data416.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/sv/" + i27 + "/selected", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid581 = _errs531 === errors; } else { valid581 = true; } if (valid581) { for (const key124 in data416) { if (key124 !== "number" && key124 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/sv/" + i27 + "/" + key124.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key124 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid579) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/sv/" + i27, schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid578 = _errs529 === errors; if (!valid578) { break; } } valid577 = valid578; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/sv", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid561 = _errs528 === errors; } else { valid561 = true; } if (valid561) { for (const key125 in data402) { if (key125 !== "all" && key125 !== "snv" && key125 !== "str" && key125 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage/" + key125.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key125 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid559) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/recordsPerPage", schemaPath: "/properties/sample_variants/optionalProperties/recordsPerPage/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid228 = _errs515 === errors; } else { valid228 = true; } if (valid228) { for (const key126 in data18) { if ( key126 !== "cells" && key126 !== "filters" && key126 !== "sorts" && key126 !== "recordsPerPage" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variants/" + key126.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variants", keyword: "properties", params: { error: "additional", additionalProperty: key126 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid23) { validate57.errors = [ { instancePath: instancePath + "/sample_variants", schemaPath: "/properties/sample_variants/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs23 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/sample_variants", keyword: "properties", params: { error: "missing", missingProperty: "sample_variants" }, message: "must have property 'sample_variants'", }, ]; return false; } if (valid1) { if (data.variants !== undefined) { let data419 = data.variants; const _errs532 = errors; let valid582 = false; if (data419 && typeof data419 == "object" && !Array.isArray(data419)) { valid582 = true; var valid583; if (data419.cells !== undefined) { let data420 = data419.cells; const _errs533 = errors; let valid584 = false; if (data420 && typeof data420 == "object" && !Array.isArray(data420)) { valid584 = true; var valid586; if (data420.all !== undefined) { let data421 = data420.all; const _errs534 = errors; let valid587 = false; if (!valid587) { if (Array.isArray(data421)) { var valid588 = true; const len28 = data421.length; for (let i28 = 0; i28 < len28; i28++) { let data422 = data421[i28]; const _errs535 = errors; let valid589 = false; if (data422 && typeof data422 == "object" && !Array.isArray(data422)) { const tag20 = data422.type; if (tag20 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag20 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag20 == "string") { if (tag20 === "fixed") { const _errs536 = errors; let valid591 = false; valid591 = true; var valid592; if (data422.name !== undefined) { let data423 = data422.name; const _errs537 = errors; if ( !( typeof data423 == "string" && (data423 === "chrom" || data423 === "pos" || data423 === "id" || data423 === "ref" || data423 === "alt" || data423 === "qual" || data423 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.all.elements .mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid592 = _errs537 === errors; } else { valid592 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid592) { var valid593; if (data422.label !== undefined) { const _errs538 = errors; if (!(typeof data422.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid593 = _errs538 === errors; } else { valid593 = true; } if (valid593) { if (data422.description !== undefined) { const _errs539 = errors; if (!(typeof data422.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid593 = _errs539 === errors; } else { valid593 = true; } if (valid593) { for (const key127 in data422) { if ( key127 !== "type" && key127 !== "name" && key127 !== "label" && key127 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/" + key127.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key127 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid591) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid590 = _errs536 === errors; valid589 = valid590; } else if (tag20 === "info") { const _errs540 = errors; let valid595 = false; valid595 = true; var valid596; if (data422.name !== undefined) { const _errs541 = errors; if (!(typeof data422.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid596 = _errs541 === errors; } else { valid596 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid596) { var valid597; if (data422.label !== undefined) { const _errs542 = errors; if (!(typeof data422.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid597 = _errs542 === errors; } else { valid597 = true; } if (valid597) { if (data422.description !== undefined) { const _errs543 = errors; if (!(typeof data422.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid597 = _errs543 === errors; } else { valid597 = true; } if (valid597) { for (const key128 in data422) { if ( key128 !== "type" && key128 !== "name" && key128 !== "label" && key128 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/" + key128.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key128 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid595) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid594 = _errs540 === errors; valid589 = valid594; } else if (tag20 === "format") { const _errs544 = errors; let valid599 = false; valid599 = true; var valid600; if (data422.name !== undefined) { const _errs545 = errors; if (!(typeof data422.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid600 = _errs545 === errors; } else { valid600 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid600) { var valid601; if (data422.label !== undefined) { const _errs546 = errors; if (!(typeof data422.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid601 = _errs546 === errors; } else { valid601 = true; } if (valid601) { if (data422.description !== undefined) { const _errs547 = errors; if (!(typeof data422.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid601 = _errs547 === errors; } else { valid601 = true; } if (valid601) { for (const key129 in data422) { if ( key129 !== "type" && key129 !== "name" && key129 !== "label" && key129 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/" + key129.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key129 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid599) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid598 = _errs544 === errors; valid589 = valid598; } else if (tag20 === "genotype") { const _errs548 = errors; let valid603 = false; valid603 = true; var valid604; if (data422.name !== undefined) { const _errs549 = errors; if (!(typeof data422.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid604 = _errs549 === errors; } else { valid604 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid604) { var valid605; if (data422.label !== undefined) { const _errs550 = errors; if (!(typeof data422.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid605 = _errs550 === errors; } else { valid605 = true; } if (valid605) { if (data422.description !== undefined) { const _errs551 = errors; if (!(typeof data422.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid605 = _errs551 === errors; } else { valid605 = true; } if (valid605) { for (const key130 in data422) { if ( key130 !== "type" && key130 !== "name" && key130 !== "label" && key130 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/" + key130.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key130 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid603) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid602 = _errs548 === errors; valid589 = valid602; } else if (tag20 === "composed") { const _errs552 = errors; let valid607 = false; valid607 = true; var valid608; if (data422.name !== undefined) { let data435 = data422.name; const _errs553 = errors; if ( !( typeof data435 == "string" && (data435 === "clinVar" || data435 === "confidenceInterval" || data435 === "gene" || data435 === "genotype" || data435 === "genotype_maternal" || data435 === "genotype_paternal" || data435 === "gnomAdAf" || data435 === "hpo" || data435 === "inheritancePattern" || data435 === "locus" || data435 === "spanningReads" || data435 === "vipC" || data435 === "vipCS" || data435 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.all.elements .mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid608 = _errs553 === errors; } else { valid608 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid608) { var valid609; if (data422.label !== undefined) { const _errs554 = errors; if (!(typeof data422.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid609 = _errs554 === errors; } else { valid609 = true; } if (valid609) { if (data422.description !== undefined) { const _errs555 = errors; if (!(typeof data422.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid609 = _errs555 === errors; } else { valid609 = true; } if (valid609) { for (const key131 in data422) { if ( key131 !== "type" && key131 !== "name" && key131 !== "label" && key131 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/" + key131.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key131 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid607) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid606 = _errs552 === errors; valid589 = valid606; } else if (tag20 === "group") { const _errs556 = errors; let valid611 = false; valid611 = true; var valid612; if (data422.fields !== undefined) { let data438 = data422.fields; const _errs557 = errors; let valid613 = false; if (!valid613) { if (Array.isArray(data438)) { var valid614 = true; const len29 = data438.length; for (let i29 = 0; i29 < len29; i29++) { let data439 = data438[i29]; const _errs558 = errors; let valid615 = false; if (data439 && typeof data439 == "object" && !Array.isArray(data439)) { const tag21 = data439.type; if (tag21 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag21 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag21 == "string") { if (tag21 === "fixed") { const _errs559 = errors; let valid617 = false; valid617 = true; var valid618; if (data439.name !== undefined) { let data440 = data439.name; const _errs560 = errors; if ( !( typeof data440 == "string" && (data440 === "chrom" || data440 === "pos" || data440 === "id" || data440 === "ref" || data440 === "alt" || data440 === "qual" || data440 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties .all.elements.mapping.group.properties.fields.elements.mapping .fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid618 = _errs560 === errors; } else { valid618 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid618) { var valid619; if (data439.label !== undefined) { const _errs561 = errors; if (!(typeof data439.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid619 = _errs561 === errors; } else { valid619 = true; } if (valid619) { if (data439.description !== undefined) { const _errs562 = errors; if (!(typeof data439.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid619 = _errs562 === errors; } else { valid619 = true; } if (valid619) { for (const key132 in data439) { if ( key132 !== "type" && key132 !== "name" && key132 !== "label" && key132 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/" + key132.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key132 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid617) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid616 = _errs559 === errors; valid615 = valid616; } else if (tag21 === "info") { const _errs563 = errors; let valid621 = false; valid621 = true; var valid622; if (data439.name !== undefined) { const _errs564 = errors; if (!(typeof data439.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid622 = _errs564 === errors; } else { valid622 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid622) { var valid623; if (data439.label !== undefined) { const _errs565 = errors; if (!(typeof data439.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid623 = _errs565 === errors; } else { valid623 = true; } if (valid623) { if (data439.description !== undefined) { const _errs566 = errors; if (!(typeof data439.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid623 = _errs566 === errors; } else { valid623 = true; } if (valid623) { for (const key133 in data439) { if ( key133 !== "type" && key133 !== "name" && key133 !== "label" && key133 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/" + key133.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key133 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid621) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid620 = _errs563 === errors; valid615 = valid620; } else if (tag21 === "format") { const _errs567 = errors; let valid625 = false; valid625 = true; var valid626; if (data439.name !== undefined) { const _errs568 = errors; if (!(typeof data439.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid626 = _errs568 === errors; } else { valid626 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid626) { var valid627; if (data439.label !== undefined) { const _errs569 = errors; if (!(typeof data439.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid627 = _errs569 === errors; } else { valid627 = true; } if (valid627) { if (data439.description !== undefined) { const _errs570 = errors; if (!(typeof data439.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid627 = _errs570 === errors; } else { valid627 = true; } if (valid627) { for (const key134 in data439) { if ( key134 !== "type" && key134 !== "name" && key134 !== "label" && key134 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/" + key134.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key134 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid625) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid624 = _errs567 === errors; valid615 = valid624; } else if (tag21 === "genotype") { const _errs571 = errors; let valid629 = false; valid629 = true; var valid630; if (data439.name !== undefined) { const _errs572 = errors; if (!(typeof data439.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid630 = _errs572 === errors; } else { valid630 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid630) { var valid631; if (data439.label !== undefined) { const _errs573 = errors; if (!(typeof data439.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid631 = _errs573 === errors; } else { valid631 = true; } if (valid631) { if (data439.description !== undefined) { const _errs574 = errors; if (!(typeof data439.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid631 = _errs574 === errors; } else { valid631 = true; } if (valid631) { for (const key135 in data439) { if ( key135 !== "type" && key135 !== "name" && key135 !== "label" && key135 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/" + key135.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key135 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid629) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid628 = _errs571 === errors; valid615 = valid628; } else if (tag21 === "composed") { const _errs575 = errors; let valid633 = false; valid633 = true; var valid634; if (data439.name !== undefined) { let data452 = data439.name; const _errs576 = errors; if ( !( typeof data452 == "string" && (data452 === "clinVar" || data452 === "gene" || data452 === "genotype" || data452 === "gnomAdAf" || data452 === "hpo" || data452 === "inheritancePattern" || data452 === "locus" || data452 === "ref" || data452 === "vipC" || data452 === "vipCS" || data452 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties .all.elements.mapping.group.properties.fields.elements.mapping .composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid634 = _errs576 === errors; } else { valid634 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid634) { var valid635; if (data439.label !== undefined) { const _errs577 = errors; if (!(typeof data439.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid635 = _errs577 === errors; } else { valid635 = true; } if (valid635) { if (data439.description !== undefined) { const _errs578 = errors; if (!(typeof data439.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid635 = _errs578 === errors; } else { valid635 = true; } if (valid635) { for (const key136 in data439) { if ( key136 !== "type" && key136 !== "name" && key136 !== "label" && key136 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/" + key136.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key136 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid633) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid632 = _errs575 === errors; valid615 = valid632; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag21 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag21 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid615) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields/" + i29, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid614 = _errs558 === errors; if (!valid614) { break; } } valid613 = valid614; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/fields", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid612 = _errs557 === errors; } else { valid612 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid612) { for (const key137 in data422) { if (key137 !== "type" && key137 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/" + key137.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key137 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid611) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid610 = _errs556 === errors; valid589 = valid610; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag20 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag20 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid589) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all/" + i28, schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid588 = _errs535 === errors; if (!valid588) { break; } } valid587 = valid588; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/all", schemaPath: "/properties/variants/properties/cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid586 = _errs534 === errors; } else { valid586 = true; } if (valid586) { if (data420.snv !== undefined) { let data455 = data420.snv; const _errs579 = errors; let valid637 = false; if (!valid637) { if (Array.isArray(data455)) { var valid638 = true; const len30 = data455.length; for (let i30 = 0; i30 < len30; i30++) { let data456 = data455[i30]; const _errs580 = errors; let valid639 = false; if (data456 && typeof data456 == "object" && !Array.isArray(data456)) { const tag22 = data456.type; if (tag22 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag22 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag22 == "string") { if (tag22 === "fixed") { const _errs581 = errors; let valid641 = false; valid641 = true; var valid642; if (data456.name !== undefined) { let data457 = data456.name; const _errs582 = errors; if ( !( typeof data457 == "string" && (data457 === "chrom" || data457 === "pos" || data457 === "id" || data457 === "ref" || data457 === "alt" || data457 === "qual" || data457 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.snv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid642 = _errs582 === errors; } else { valid642 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid642) { var valid643; if (data456.label !== undefined) { const _errs583 = errors; if (!(typeof data456.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid643 = _errs583 === errors; } else { valid643 = true; } if (valid643) { if (data456.description !== undefined) { const _errs584 = errors; if (!(typeof data456.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid643 = _errs584 === errors; } else { valid643 = true; } if (valid643) { for (const key138 in data456) { if ( key138 !== "type" && key138 !== "name" && key138 !== "label" && key138 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/" + key138.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key138 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid641) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid640 = _errs581 === errors; valid639 = valid640; } else if (tag22 === "info") { const _errs585 = errors; let valid645 = false; valid645 = true; var valid646; if (data456.name !== undefined) { const _errs586 = errors; if (!(typeof data456.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid646 = _errs586 === errors; } else { valid646 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid646) { var valid647; if (data456.label !== undefined) { const _errs587 = errors; if (!(typeof data456.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid647 = _errs587 === errors; } else { valid647 = true; } if (valid647) { if (data456.description !== undefined) { const _errs588 = errors; if (!(typeof data456.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid647 = _errs588 === errors; } else { valid647 = true; } if (valid647) { for (const key139 in data456) { if ( key139 !== "type" && key139 !== "name" && key139 !== "label" && key139 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/" + key139.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key139 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid645) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid644 = _errs585 === errors; valid639 = valid644; } else if (tag22 === "format") { const _errs589 = errors; let valid649 = false; valid649 = true; var valid650; if (data456.name !== undefined) { const _errs590 = errors; if (!(typeof data456.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid650 = _errs590 === errors; } else { valid650 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid650) { var valid651; if (data456.label !== undefined) { const _errs591 = errors; if (!(typeof data456.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid651 = _errs591 === errors; } else { valid651 = true; } if (valid651) { if (data456.description !== undefined) { const _errs592 = errors; if (!(typeof data456.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid651 = _errs592 === errors; } else { valid651 = true; } if (valid651) { for (const key140 in data456) { if ( key140 !== "type" && key140 !== "name" && key140 !== "label" && key140 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/" + key140.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key140 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid649) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid648 = _errs589 === errors; valid639 = valid648; } else if (tag22 === "genotype") { const _errs593 = errors; let valid653 = false; valid653 = true; var valid654; if (data456.name !== undefined) { const _errs594 = errors; if (!(typeof data456.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid654 = _errs594 === errors; } else { valid654 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid654) { var valid655; if (data456.label !== undefined) { const _errs595 = errors; if (!(typeof data456.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid655 = _errs595 === errors; } else { valid655 = true; } if (valid655) { if (data456.description !== undefined) { const _errs596 = errors; if (!(typeof data456.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid655 = _errs596 === errors; } else { valid655 = true; } if (valid655) { for (const key141 in data456) { if ( key141 !== "type" && key141 !== "name" && key141 !== "label" && key141 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/" + key141.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key141 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid653) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid652 = _errs593 === errors; valid639 = valid652; } else if (tag22 === "composed") { const _errs597 = errors; let valid657 = false; valid657 = true; var valid658; if (data456.name !== undefined) { let data469 = data456.name; const _errs598 = errors; if ( !( typeof data469 == "string" && (data469 === "clinVar" || data469 === "confidenceInterval" || data469 === "gene" || data469 === "genotype" || data469 === "genotype_maternal" || data469 === "genotype_paternal" || data469 === "gnomAdAf" || data469 === "hpo" || data469 === "inheritancePattern" || data469 === "locus" || data469 === "spanningReads" || data469 === "vipC" || data469 === "vipCS" || data469 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.snv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid658 = _errs598 === errors; } else { valid658 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid658) { var valid659; if (data456.label !== undefined) { const _errs599 = errors; if (!(typeof data456.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid659 = _errs599 === errors; } else { valid659 = true; } if (valid659) { if (data456.description !== undefined) { const _errs600 = errors; if (!(typeof data456.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid659 = _errs600 === errors; } else { valid659 = true; } if (valid659) { for (const key142 in data456) { if ( key142 !== "type" && key142 !== "name" && key142 !== "label" && key142 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/" + key142.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key142 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid657) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid656 = _errs597 === errors; valid639 = valid656; } else if (tag22 === "group") { const _errs601 = errors; let valid661 = false; valid661 = true; var valid662; if (data456.fields !== undefined) { let data472 = data456.fields; const _errs602 = errors; let valid663 = false; if (!valid663) { if (Array.isArray(data472)) { var valid664 = true; const len31 = data472.length; for (let i31 = 0; i31 < len31; i31++) { let data473 = data472[i31]; const _errs603 = errors; let valid665 = false; if (data473 && typeof data473 == "object" && !Array.isArray(data473)) { const tag23 = data473.type; if (tag23 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag23 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag23 == "string") { if (tag23 === "fixed") { const _errs604 = errors; let valid667 = false; valid667 = true; var valid668; if (data473.name !== undefined) { let data474 = data473.name; const _errs605 = errors; if ( !( typeof data474 == "string" && (data474 === "chrom" || data474 === "pos" || data474 === "id" || data474 === "ref" || data474 === "alt" || data474 === "qual" || data474 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells .optionalProperties.snv.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid668 = _errs605 === errors; } else { valid668 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid668) { var valid669; if (data473.label !== undefined) { const _errs606 = errors; if (!(typeof data473.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid669 = _errs606 === errors; } else { valid669 = true; } if (valid669) { if (data473.description !== undefined) { const _errs607 = errors; if (!(typeof data473.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid669 = _errs607 === errors; } else { valid669 = true; } if (valid669) { for (const key143 in data473) { if ( key143 !== "type" && key143 !== "name" && key143 !== "label" && key143 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/" + key143.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key143 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid667) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid666 = _errs604 === errors; valid665 = valid666; } else if (tag23 === "info") { const _errs608 = errors; let valid671 = false; valid671 = true; var valid672; if (data473.name !== undefined) { const _errs609 = errors; if (!(typeof data473.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid672 = _errs609 === errors; } else { valid672 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid672) { var valid673; if (data473.label !== undefined) { const _errs610 = errors; if (!(typeof data473.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid673 = _errs610 === errors; } else { valid673 = true; } if (valid673) { if (data473.description !== undefined) { const _errs611 = errors; if (!(typeof data473.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid673 = _errs611 === errors; } else { valid673 = true; } if (valid673) { for (const key144 in data473) { if ( key144 !== "type" && key144 !== "name" && key144 !== "label" && key144 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/" + key144.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key144 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid671) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid670 = _errs608 === errors; valid665 = valid670; } else if (tag23 === "format") { const _errs612 = errors; let valid675 = false; valid675 = true; var valid676; if (data473.name !== undefined) { const _errs613 = errors; if (!(typeof data473.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid676 = _errs613 === errors; } else { valid676 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid676) { var valid677; if (data473.label !== undefined) { const _errs614 = errors; if (!(typeof data473.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid677 = _errs614 === errors; } else { valid677 = true; } if (valid677) { if (data473.description !== undefined) { const _errs615 = errors; if (!(typeof data473.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid677 = _errs615 === errors; } else { valid677 = true; } if (valid677) { for (const key145 in data473) { if ( key145 !== "type" && key145 !== "name" && key145 !== "label" && key145 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/" + key145.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key145 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid675) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid674 = _errs612 === errors; valid665 = valid674; } else if (tag23 === "genotype") { const _errs616 = errors; let valid679 = false; valid679 = true; var valid680; if (data473.name !== undefined) { const _errs617 = errors; if (!(typeof data473.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid680 = _errs617 === errors; } else { valid680 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid680) { var valid681; if (data473.label !== undefined) { const _errs618 = errors; if (!(typeof data473.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid681 = _errs618 === errors; } else { valid681 = true; } if (valid681) { if (data473.description !== undefined) { const _errs619 = errors; if (!(typeof data473.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid681 = _errs619 === errors; } else { valid681 = true; } if (valid681) { for (const key146 in data473) { if ( key146 !== "type" && key146 !== "name" && key146 !== "label" && key146 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/" + key146.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key146 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid679) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid678 = _errs616 === errors; valid665 = valid678; } else if (tag23 === "composed") { const _errs620 = errors; let valid683 = false; valid683 = true; var valid684; if (data473.name !== undefined) { let data486 = data473.name; const _errs621 = errors; if ( !( typeof data486 == "string" && (data486 === "clinVar" || data486 === "gene" || data486 === "genotype" || data486 === "gnomAdAf" || data486 === "hpo" || data486 === "inheritancePattern" || data486 === "locus" || data486 === "ref" || data486 === "vipC" || data486 === "vipCS" || data486 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells .optionalProperties.snv.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid684 = _errs621 === errors; } else { valid684 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid684) { var valid685; if (data473.label !== undefined) { const _errs622 = errors; if (!(typeof data473.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid685 = _errs622 === errors; } else { valid685 = true; } if (valid685) { if (data473.description !== undefined) { const _errs623 = errors; if (!(typeof data473.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid685 = _errs623 === errors; } else { valid685 = true; } if (valid685) { for (const key147 in data473) { if ( key147 !== "type" && key147 !== "name" && key147 !== "label" && key147 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/" + key147.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key147 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid683) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid682 = _errs620 === errors; valid665 = valid682; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag23 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag23 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid665) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields/" + i31, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid664 = _errs603 === errors; if (!valid664) { break; } } valid663 = valid664; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/fields", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid662 = _errs602 === errors; } else { valid662 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid662) { for (const key148 in data456) { if (key148 !== "type" && key148 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/" + key148.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key148 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid661) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid660 = _errs601 === errors; valid639 = valid660; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag22 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag22 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid639) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv/" + i30, schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid638 = _errs580 === errors; if (!valid638) { break; } } valid637 = valid638; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/snv", schemaPath: "/properties/variants/properties/cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid586 = _errs579 === errors; } else { valid586 = true; } if (valid586) { if (data420.str !== undefined) { let data489 = data420.str; const _errs624 = errors; let valid687 = false; if (!valid687) { if (Array.isArray(data489)) { var valid688 = true; const len32 = data489.length; for (let i32 = 0; i32 < len32; i32++) { let data490 = data489[i32]; const _errs625 = errors; let valid689 = false; if (data490 && typeof data490 == "object" && !Array.isArray(data490)) { const tag24 = data490.type; if (tag24 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag24 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag24 == "string") { if (tag24 === "fixed") { const _errs626 = errors; let valid691 = false; valid691 = true; var valid692; if (data490.name !== undefined) { let data491 = data490.name; const _errs627 = errors; if ( !( typeof data491 == "string" && (data491 === "chrom" || data491 === "pos" || data491 === "id" || data491 === "ref" || data491 === "alt" || data491 === "qual" || data491 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.str .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid692 = _errs627 === errors; } else { valid692 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid692) { var valid693; if (data490.label !== undefined) { const _errs628 = errors; if (!(typeof data490.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid693 = _errs628 === errors; } else { valid693 = true; } if (valid693) { if (data490.description !== undefined) { const _errs629 = errors; if (!(typeof data490.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid693 = _errs629 === errors; } else { valid693 = true; } if (valid693) { for (const key149 in data490) { if ( key149 !== "type" && key149 !== "name" && key149 !== "label" && key149 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/" + key149.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key149 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid691) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid690 = _errs626 === errors; valid689 = valid690; } else if (tag24 === "info") { const _errs630 = errors; let valid695 = false; valid695 = true; var valid696; if (data490.name !== undefined) { const _errs631 = errors; if (!(typeof data490.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid696 = _errs631 === errors; } else { valid696 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid696) { var valid697; if (data490.label !== undefined) { const _errs632 = errors; if (!(typeof data490.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid697 = _errs632 === errors; } else { valid697 = true; } if (valid697) { if (data490.description !== undefined) { const _errs633 = errors; if (!(typeof data490.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid697 = _errs633 === errors; } else { valid697 = true; } if (valid697) { for (const key150 in data490) { if ( key150 !== "type" && key150 !== "name" && key150 !== "label" && key150 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/" + key150.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key150 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid695) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid694 = _errs630 === errors; valid689 = valid694; } else if (tag24 === "format") { const _errs634 = errors; let valid699 = false; valid699 = true; var valid700; if (data490.name !== undefined) { const _errs635 = errors; if (!(typeof data490.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid700 = _errs635 === errors; } else { valid700 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid700) { var valid701; if (data490.label !== undefined) { const _errs636 = errors; if (!(typeof data490.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid701 = _errs636 === errors; } else { valid701 = true; } if (valid701) { if (data490.description !== undefined) { const _errs637 = errors; if (!(typeof data490.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid701 = _errs637 === errors; } else { valid701 = true; } if (valid701) { for (const key151 in data490) { if ( key151 !== "type" && key151 !== "name" && key151 !== "label" && key151 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/" + key151.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key151 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid699) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid698 = _errs634 === errors; valid689 = valid698; } else if (tag24 === "genotype") { const _errs638 = errors; let valid703 = false; valid703 = true; var valid704; if (data490.name !== undefined) { const _errs639 = errors; if (!(typeof data490.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid704 = _errs639 === errors; } else { valid704 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid704) { var valid705; if (data490.label !== undefined) { const _errs640 = errors; if (!(typeof data490.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid705 = _errs640 === errors; } else { valid705 = true; } if (valid705) { if (data490.description !== undefined) { const _errs641 = errors; if (!(typeof data490.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid705 = _errs641 === errors; } else { valid705 = true; } if (valid705) { for (const key152 in data490) { if ( key152 !== "type" && key152 !== "name" && key152 !== "label" && key152 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/" + key152.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key152 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid703) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid702 = _errs638 === errors; valid689 = valid702; } else if (tag24 === "composed") { const _errs642 = errors; let valid707 = false; valid707 = true; var valid708; if (data490.name !== undefined) { let data503 = data490.name; const _errs643 = errors; if ( !( typeof data503 == "string" && (data503 === "clinVar" || data503 === "confidenceInterval" || data503 === "gene" || data503 === "genotype" || data503 === "genotype_maternal" || data503 === "genotype_paternal" || data503 === "gnomAdAf" || data503 === "hpo" || data503 === "inheritancePattern" || data503 === "locus" || data503 === "spanningReads" || data503 === "vipC" || data503 === "vipCS" || data503 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.str .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid708 = _errs643 === errors; } else { valid708 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid708) { var valid709; if (data490.label !== undefined) { const _errs644 = errors; if (!(typeof data490.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid709 = _errs644 === errors; } else { valid709 = true; } if (valid709) { if (data490.description !== undefined) { const _errs645 = errors; if (!(typeof data490.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid709 = _errs645 === errors; } else { valid709 = true; } if (valid709) { for (const key153 in data490) { if ( key153 !== "type" && key153 !== "name" && key153 !== "label" && key153 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/" + key153.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key153 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid707) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid706 = _errs642 === errors; valid689 = valid706; } else if (tag24 === "group") { const _errs646 = errors; let valid711 = false; valid711 = true; var valid712; if (data490.fields !== undefined) { let data506 = data490.fields; const _errs647 = errors; let valid713 = false; if (!valid713) { if (Array.isArray(data506)) { var valid714 = true; const len33 = data506.length; for (let i33 = 0; i33 < len33; i33++) { let data507 = data506[i33]; const _errs648 = errors; let valid715 = false; if (data507 && typeof data507 == "object" && !Array.isArray(data507)) { const tag25 = data507.type; if (tag25 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag25 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag25 == "string") { if (tag25 === "fixed") { const _errs649 = errors; let valid717 = false; valid717 = true; var valid718; if (data507.name !== undefined) { let data508 = data507.name; const _errs650 = errors; if ( !( typeof data508 == "string" && (data508 === "chrom" || data508 === "pos" || data508 === "id" || data508 === "ref" || data508 === "alt" || data508 === "qual" || data508 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells .optionalProperties.str.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid718 = _errs650 === errors; } else { valid718 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid718) { var valid719; if (data507.label !== undefined) { const _errs651 = errors; if (!(typeof data507.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid719 = _errs651 === errors; } else { valid719 = true; } if (valid719) { if (data507.description !== undefined) { const _errs652 = errors; if (!(typeof data507.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid719 = _errs652 === errors; } else { valid719 = true; } if (valid719) { for (const key154 in data507) { if ( key154 !== "type" && key154 !== "name" && key154 !== "label" && key154 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/" + key154.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key154, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid717) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid716 = _errs649 === errors; valid715 = valid716; } else if (tag25 === "info") { const _errs653 = errors; let valid721 = false; valid721 = true; var valid722; if (data507.name !== undefined) { const _errs654 = errors; if (!(typeof data507.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid722 = _errs654 === errors; } else { valid722 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid722) { var valid723; if (data507.label !== undefined) { const _errs655 = errors; if (!(typeof data507.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid723 = _errs655 === errors; } else { valid723 = true; } if (valid723) { if (data507.description !== undefined) { const _errs656 = errors; if (!(typeof data507.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid723 = _errs656 === errors; } else { valid723 = true; } if (valid723) { for (const key155 in data507) { if ( key155 !== "type" && key155 !== "name" && key155 !== "label" && key155 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/" + key155.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key155, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid721) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid720 = _errs653 === errors; valid715 = valid720; } else if (tag25 === "format") { const _errs657 = errors; let valid725 = false; valid725 = true; var valid726; if (data507.name !== undefined) { const _errs658 = errors; if (!(typeof data507.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid726 = _errs658 === errors; } else { valid726 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid726) { var valid727; if (data507.label !== undefined) { const _errs659 = errors; if (!(typeof data507.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid727 = _errs659 === errors; } else { valid727 = true; } if (valid727) { if (data507.description !== undefined) { const _errs660 = errors; if (!(typeof data507.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid727 = _errs660 === errors; } else { valid727 = true; } if (valid727) { for (const key156 in data507) { if ( key156 !== "type" && key156 !== "name" && key156 !== "label" && key156 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/" + key156.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key156, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid725) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid724 = _errs657 === errors; valid715 = valid724; } else if (tag25 === "genotype") { const _errs661 = errors; let valid729 = false; valid729 = true; var valid730; if (data507.name !== undefined) { const _errs662 = errors; if (!(typeof data507.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid730 = _errs662 === errors; } else { valid730 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid730) { var valid731; if (data507.label !== undefined) { const _errs663 = errors; if (!(typeof data507.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid731 = _errs663 === errors; } else { valid731 = true; } if (valid731) { if (data507.description !== undefined) { const _errs664 = errors; if (!(typeof data507.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid731 = _errs664 === errors; } else { valid731 = true; } if (valid731) { for (const key157 in data507) { if ( key157 !== "type" && key157 !== "name" && key157 !== "label" && key157 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/" + key157.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key157, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid729) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid728 = _errs661 === errors; valid715 = valid728; } else if (tag25 === "composed") { const _errs665 = errors; let valid733 = false; valid733 = true; var valid734; if (data507.name !== undefined) { let data520 = data507.name; const _errs666 = errors; if ( !( typeof data520 == "string" && (data520 === "clinVar" || data520 === "gene" || data520 === "genotype" || data520 === "gnomAdAf" || data520 === "hpo" || data520 === "inheritancePattern" || data520 === "locus" || data520 === "ref" || data520 === "vipC" || data520 === "vipCS" || data520 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells .optionalProperties.str.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid734 = _errs666 === errors; } else { valid734 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid734) { var valid735; if (data507.label !== undefined) { const _errs667 = errors; if (!(typeof data507.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid735 = _errs667 === errors; } else { valid735 = true; } if (valid735) { if (data507.description !== undefined) { const _errs668 = errors; if (!(typeof data507.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid735 = _errs668 === errors; } else { valid735 = true; } if (valid735) { for (const key158 in data507) { if ( key158 !== "type" && key158 !== "name" && key158 !== "label" && key158 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/" + key158.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key158, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid733) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid732 = _errs665 === errors; valid715 = valid732; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag25 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag25 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid715) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields/" + i33, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid714 = _errs648 === errors; if (!valid714) { break; } } valid713 = valid714; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/fields", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid712 = _errs647 === errors; } else { valid712 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid712) { for (const key159 in data490) { if (key159 !== "type" && key159 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/" + key159.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key159 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid711) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid710 = _errs646 === errors; valid689 = valid710; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag24 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag24 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid689) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str/" + i32, schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid688 = _errs625 === errors; if (!valid688) { break; } } valid687 = valid688; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/str", schemaPath: "/properties/variants/properties/cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid586 = _errs624 === errors; } else { valid586 = true; } if (valid586) { if (data420.sv !== undefined) { let data523 = data420.sv; const _errs669 = errors; let valid737 = false; if (!valid737) { if (Array.isArray(data523)) { var valid738 = true; const len34 = data523.length; for (let i34 = 0; i34 < len34; i34++) { let data524 = data523[i34]; const _errs670 = errors; let valid739 = false; if (data524 && typeof data524 == "object" && !Array.isArray(data524)) { const tag26 = data524.type; if (tag26 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag26 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag26 == "string") { if (tag26 === "fixed") { const _errs671 = errors; let valid741 = false; valid741 = true; var valid742; if (data524.name !== undefined) { let data525 = data524.name; const _errs672 = errors; if ( !( typeof data525 == "string" && (data525 === "chrom" || data525 === "pos" || data525 === "id" || data525 === "ref" || data525 === "alt" || data525 === "qual" || data525 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.sv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid742 = _errs672 === errors; } else { valid742 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid742) { var valid743; if (data524.label !== undefined) { const _errs673 = errors; if (!(typeof data524.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid743 = _errs673 === errors; } else { valid743 = true; } if (valid743) { if (data524.description !== undefined) { const _errs674 = errors; if (!(typeof data524.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid743 = _errs674 === errors; } else { valid743 = true; } if (valid743) { for (const key160 in data524) { if ( key160 !== "type" && key160 !== "name" && key160 !== "label" && key160 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/" + key160.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key160 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid741) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid740 = _errs671 === errors; valid739 = valid740; } else if (tag26 === "info") { const _errs675 = errors; let valid745 = false; valid745 = true; var valid746; if (data524.name !== undefined) { const _errs676 = errors; if (!(typeof data524.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid746 = _errs676 === errors; } else { valid746 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid746) { var valid747; if (data524.label !== undefined) { const _errs677 = errors; if (!(typeof data524.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid747 = _errs677 === errors; } else { valid747 = true; } if (valid747) { if (data524.description !== undefined) { const _errs678 = errors; if (!(typeof data524.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid747 = _errs678 === errors; } else { valid747 = true; } if (valid747) { for (const key161 in data524) { if ( key161 !== "type" && key161 !== "name" && key161 !== "label" && key161 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/" + key161.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key161 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid745) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid744 = _errs675 === errors; valid739 = valid744; } else if (tag26 === "format") { const _errs679 = errors; let valid749 = false; valid749 = true; var valid750; if (data524.name !== undefined) { const _errs680 = errors; if (!(typeof data524.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid750 = _errs680 === errors; } else { valid750 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid750) { var valid751; if (data524.label !== undefined) { const _errs681 = errors; if (!(typeof data524.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid751 = _errs681 === errors; } else { valid751 = true; } if (valid751) { if (data524.description !== undefined) { const _errs682 = errors; if (!(typeof data524.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid751 = _errs682 === errors; } else { valid751 = true; } if (valid751) { for (const key162 in data524) { if ( key162 !== "type" && key162 !== "name" && key162 !== "label" && key162 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/" + key162.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key162 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid749) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid748 = _errs679 === errors; valid739 = valid748; } else if (tag26 === "genotype") { const _errs683 = errors; let valid753 = false; valid753 = true; var valid754; if (data524.name !== undefined) { const _errs684 = errors; if (!(typeof data524.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid754 = _errs684 === errors; } else { valid754 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid754) { var valid755; if (data524.label !== undefined) { const _errs685 = errors; if (!(typeof data524.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid755 = _errs685 === errors; } else { valid755 = true; } if (valid755) { if (data524.description !== undefined) { const _errs686 = errors; if (!(typeof data524.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid755 = _errs686 === errors; } else { valid755 = true; } if (valid755) { for (const key163 in data524) { if ( key163 !== "type" && key163 !== "name" && key163 !== "label" && key163 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/" + key163.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key163 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid753) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid752 = _errs683 === errors; valid739 = valid752; } else if (tag26 === "composed") { const _errs687 = errors; let valid757 = false; valid757 = true; var valid758; if (data524.name !== undefined) { let data537 = data524.name; const _errs688 = errors; if ( !( typeof data537 == "string" && (data537 === "clinVar" || data537 === "confidenceInterval" || data537 === "gene" || data537 === "genotype" || data537 === "genotype_maternal" || data537 === "genotype_paternal" || data537 === "gnomAdAf" || data537 === "hpo" || data537 === "inheritancePattern" || data537 === "locus" || data537 === "spanningReads" || data537 === "vipC" || data537 === "vipCS" || data537 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells.optionalProperties.sv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid758 = _errs688 === errors; } else { valid758 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid758) { var valid759; if (data524.label !== undefined) { const _errs689 = errors; if (!(typeof data524.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid759 = _errs689 === errors; } else { valid759 = true; } if (valid759) { if (data524.description !== undefined) { const _errs690 = errors; if (!(typeof data524.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid759 = _errs690 === errors; } else { valid759 = true; } if (valid759) { for (const key164 in data524) { if ( key164 !== "type" && key164 !== "name" && key164 !== "label" && key164 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/" + key164.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key164 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid757) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid756 = _errs687 === errors; valid739 = valid756; } else if (tag26 === "group") { const _errs691 = errors; let valid761 = false; valid761 = true; var valid762; if (data524.fields !== undefined) { let data540 = data524.fields; const _errs692 = errors; let valid763 = false; if (!valid763) { if (Array.isArray(data540)) { var valid764 = true; const len35 = data540.length; for (let i35 = 0; i35 < len35; i35++) { let data541 = data540[i35]; const _errs693 = errors; let valid765 = false; if (data541 && typeof data541 == "object" && !Array.isArray(data541)) { const tag27 = data541.type; if (tag27 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag27 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag27 == "string") { if (tag27 === "fixed") { const _errs694 = errors; let valid767 = false; valid767 = true; var valid768; if (data541.name !== undefined) { let data542 = data541.name; const _errs695 = errors; if ( !( typeof data542 == "string" && (data542 === "chrom" || data542 === "pos" || data542 === "id" || data542 === "ref" || data542 === "alt" || data542 === "qual" || data542 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells .optionalProperties.sv.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid768 = _errs695 === errors; } else { valid768 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid768) { var valid769; if (data541.label !== undefined) { const _errs696 = errors; if (!(typeof data541.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid769 = _errs696 === errors; } else { valid769 = true; } if (valid769) { if (data541.description !== undefined) { const _errs697 = errors; if (!(typeof data541.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid769 = _errs697 === errors; } else { valid769 = true; } if (valid769) { for (const key165 in data541) { if ( key165 !== "type" && key165 !== "name" && key165 !== "label" && key165 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/" + key165.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key165, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid767) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid766 = _errs694 === errors; valid765 = valid766; } else if (tag27 === "info") { const _errs698 = errors; let valid771 = false; valid771 = true; var valid772; if (data541.name !== undefined) { const _errs699 = errors; if (!(typeof data541.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid772 = _errs699 === errors; } else { valid772 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid772) { var valid773; if (data541.label !== undefined) { const _errs700 = errors; if (!(typeof data541.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid773 = _errs700 === errors; } else { valid773 = true; } if (valid773) { if (data541.description !== undefined) { const _errs701 = errors; if (!(typeof data541.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid773 = _errs701 === errors; } else { valid773 = true; } if (valid773) { for (const key166 in data541) { if ( key166 !== "type" && key166 !== "name" && key166 !== "label" && key166 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/" + key166.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key166, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid771) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid770 = _errs698 === errors; valid765 = valid770; } else if (tag27 === "format") { const _errs702 = errors; let valid775 = false; valid775 = true; var valid776; if (data541.name !== undefined) { const _errs703 = errors; if (!(typeof data541.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid776 = _errs703 === errors; } else { valid776 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid776) { var valid777; if (data541.label !== undefined) { const _errs704 = errors; if (!(typeof data541.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid777 = _errs704 === errors; } else { valid777 = true; } if (valid777) { if (data541.description !== undefined) { const _errs705 = errors; if (!(typeof data541.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid777 = _errs705 === errors; } else { valid777 = true; } if (valid777) { for (const key167 in data541) { if ( key167 !== "type" && key167 !== "name" && key167 !== "label" && key167 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/" + key167.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key167, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid775) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid774 = _errs702 === errors; valid765 = valid774; } else if (tag27 === "genotype") { const _errs706 = errors; let valid779 = false; valid779 = true; var valid780; if (data541.name !== undefined) { const _errs707 = errors; if (!(typeof data541.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid780 = _errs707 === errors; } else { valid780 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid780) { var valid781; if (data541.label !== undefined) { const _errs708 = errors; if (!(typeof data541.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid781 = _errs708 === errors; } else { valid781 = true; } if (valid781) { if (data541.description !== undefined) { const _errs709 = errors; if (!(typeof data541.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid781 = _errs709 === errors; } else { valid781 = true; } if (valid781) { for (const key168 in data541) { if ( key168 !== "type" && key168 !== "name" && key168 !== "label" && key168 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/" + key168.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key168, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid779) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid778 = _errs706 === errors; valid765 = valid778; } else if (tag27 === "composed") { const _errs710 = errors; let valid783 = false; valid783 = true; var valid784; if (data541.name !== undefined) { let data554 = data541.name; const _errs711 = errors; if ( !( typeof data554 == "string" && (data554 === "clinVar" || data554 === "gene" || data554 === "genotype" || data554 === "gnomAdAf" || data554 === "hpo" || data554 === "inheritancePattern" || data554 === "locus" || data554 === "ref" || data554 === "vipC" || data554 === "vipCS" || data554 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/name", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.properties.cells .optionalProperties.sv.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid784 = _errs711 === errors; } else { valid784 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid784) { var valid785; if (data541.label !== undefined) { const _errs712 = errors; if (!(typeof data541.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/label", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid785 = _errs712 === errors; } else { valid785 = true; } if (valid785) { if (data541.description !== undefined) { const _errs713 = errors; if (!(typeof data541.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/description", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid785 = _errs713 === errors; } else { valid785 = true; } if (valid785) { for (const key169 in data541) { if ( key169 !== "type" && key169 !== "name" && key169 !== "label" && key169 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/" + key169.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key169, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid783) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid782 = _errs710 === errors; valid765 = valid782; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag27 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag27 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid765) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields/" + i35, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid764 = _errs693 === errors; if (!valid764) { break; } } valid763 = valid764; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/fields", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid762 = _errs692 === errors; } else { valid762 = false; validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid762) { for (const key170 in data524) { if (key170 !== "type" && key170 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/" + key170.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key170 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid761) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid760 = _errs691 === errors; valid739 = valid760; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag26 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34 + "/type", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag26 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid739) { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv/" + i34, schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid738 = _errs670 === errors; if (!valid738) { break; } } valid737 = valid738; } else { validate57.errors = [ { instancePath: instancePath + "/variants/cells/sv", schemaPath: "/properties/variants/properties/cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid586 = _errs669 === errors; } else { valid586 = true; } if (valid586) { for (const key171 in data420) { if (key171 !== "all" && key171 !== "snv" && key171 !== "str" && key171 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variants/cells/" + key171.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/properties/cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key171 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid584) { validate57.errors = [ { instancePath: instancePath + "/variants/cells", schemaPath: "/properties/variants/properties/cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid583 = _errs533 === errors; } else { valid583 = false; validate57.errors = [ { instancePath: instancePath + "/variants", schemaPath: "/properties/variants/properties/cells", keyword: "properties", params: { error: "missing", missingProperty: "cells" }, message: "must have property 'cells'", }, ]; return false; } if (valid583) { var valid787; if (data419.filters !== undefined) { let data557 = data419.filters; const _errs714 = errors; let valid788 = false; if (data557 && typeof data557 == "object" && !Array.isArray(data557)) { valid788 = true; var valid790; if (data557.all !== undefined) { let data558 = data557.all; const _errs715 = errors; let valid791 = false; if (!valid791) { if (Array.isArray(data558)) { var valid792 = true; const len36 = data558.length; for (let i36 = 0; i36 < len36; i36++) { let data559 = data558[i36]; const _errs716 = errors; let valid793 = false; if (data559 && typeof data559 == "object" && !Array.isArray(data559)) { const tag28 = data559.type; if (tag28 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag28 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag28 == "string") { if (tag28 === "fixed") { const _errs717 = errors; let valid795 = false; valid795 = true; var valid796; if (data559.name !== undefined) { let data560 = data559.name; const _errs718 = errors; if ( !( typeof data560 == "string" && (data560 === "chrom" || data560 === "pos" || data560 === "id" || data560 === "ref" || data560 === "alt" || data560 === "qual" || data560 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters.optionalProperties .all.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid796 = _errs718 === errors; } else { valid796 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid796) { var valid797; if (data559.label !== undefined) { const _errs719 = errors; if (!(typeof data559.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid797 = _errs719 === errors; } else { valid797 = true; } if (valid797) { if (data559.description !== undefined) { const _errs720 = errors; if (!(typeof data559.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid797 = _errs720 === errors; } else { valid797 = true; } if (valid797) { if (data559.defaultValue !== undefined) { const _errs721 = errors; if (!(typeof data559.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid797 = _errs721 === errors; } else { valid797 = true; } if (valid797) { for (const key172 in data559) { if ( key172 !== "type" && key172 !== "name" && key172 !== "label" && key172 !== "description" && key172 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/" + key172.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key172 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid795) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid794 = _errs717 === errors; valid793 = valid794; } else if (tag28 === "info") { const _errs722 = errors; let valid799 = false; valid799 = true; var valid800; if (data559.name !== undefined) { const _errs723 = errors; if (!(typeof data559.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid800 = _errs723 === errors; } else { valid800 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid800) { var valid801; if (data559.label !== undefined) { const _errs724 = errors; if (!(typeof data559.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid801 = _errs724 === errors; } else { valid801 = true; } if (valid801) { if (data559.description !== undefined) { const _errs725 = errors; if (!(typeof data559.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid801 = _errs725 === errors; } else { valid801 = true; } if (valid801) { if (data559.defaultValue !== undefined) { const _errs726 = errors; if (!(typeof data559.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid801 = _errs726 === errors; } else { valid801 = true; } if (valid801) { for (const key173 in data559) { if ( key173 !== "type" && key173 !== "name" && key173 !== "label" && key173 !== "description" && key173 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/" + key173.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key173 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid799) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid798 = _errs722 === errors; valid793 = valid798; } else if (tag28 === "format") { const _errs727 = errors; let valid803 = false; valid803 = true; var valid804; if (data559.name !== undefined) { const _errs728 = errors; if (!(typeof data559.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid804 = _errs728 === errors; } else { valid804 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid804) { var valid805; if (data559.label !== undefined) { const _errs729 = errors; if (!(typeof data559.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid805 = _errs729 === errors; } else { valid805 = true; } if (valid805) { if (data559.description !== undefined) { const _errs730 = errors; if (!(typeof data559.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid805 = _errs730 === errors; } else { valid805 = true; } if (valid805) { if (data559.defaultValue !== undefined) { const _errs731 = errors; if (!(typeof data559.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid805 = _errs731 === errors; } else { valid805 = true; } if (valid805) { for (const key174 in data559) { if ( key174 !== "type" && key174 !== "name" && key174 !== "label" && key174 !== "description" && key174 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/" + key174.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key174 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid803) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid802 = _errs727 === errors; valid793 = valid802; } else if (tag28 === "genotype") { const _errs732 = errors; let valid807 = false; valid807 = true; var valid808; if (data559.name !== undefined) { const _errs733 = errors; if (!(typeof data559.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid808 = _errs733 === errors; } else { valid808 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid808) { var valid809; if (data559.label !== undefined) { const _errs734 = errors; if (!(typeof data559.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid809 = _errs734 === errors; } else { valid809 = true; } if (valid809) { if (data559.description !== undefined) { const _errs735 = errors; if (!(typeof data559.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid809 = _errs735 === errors; } else { valid809 = true; } if (valid809) { if (data559.defaultValue !== undefined) { const _errs736 = errors; if (!(typeof data559.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid809 = _errs736 === errors; } else { valid809 = true; } if (valid809) { for (const key175 in data559) { if ( key175 !== "type" && key175 !== "name" && key175 !== "label" && key175 !== "description" && key175 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/" + key175.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key175 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid807) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid806 = _errs732 === errors; valid793 = valid806; } else if (tag28 === "composed") { const _errs737 = errors; let valid811 = false; valid811 = true; var valid812; if (data559.name !== undefined) { let data576 = data559.name; const _errs738 = errors; if ( !( typeof data576 == "string" && (data576 === "allelicImbalance" || data576 === "deNovo" || data576 === "hpo" || data576 === "inheritanceMatch" || data576 === "locus" || data576 === "vipC" || data576 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters.optionalProperties .all.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid812 = _errs738 === errors; } else { valid812 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid812) { var valid813; if (data559.label !== undefined) { const _errs739 = errors; if (!(typeof data559.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid813 = _errs739 === errors; } else { valid813 = true; } if (valid813) { if (data559.description !== undefined) { const _errs740 = errors; if (!(typeof data559.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid813 = _errs740 === errors; } else { valid813 = true; } if (valid813) { if (data559.defaultValue !== undefined) { const _errs741 = errors; if (!(typeof data559.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid813 = _errs741 === errors; } else { valid813 = true; } if (valid813) { for (const key176 in data559) { if ( key176 !== "type" && key176 !== "name" && key176 !== "label" && key176 !== "description" && key176 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/" + key176.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key176 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid811) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid810 = _errs737 === errors; valid793 = valid810; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag28 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag28 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid793) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all/" + i36, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid792 = _errs716 === errors; if (!valid792) { break; } } valid791 = valid792; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/all", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid790 = _errs715 === errors; } else { valid790 = true; } if (valid790) { if (data557.snv !== undefined) { let data580 = data557.snv; const _errs742 = errors; let valid814 = false; if (!valid814) { if (Array.isArray(data580)) { var valid815 = true; const len37 = data580.length; for (let i37 = 0; i37 < len37; i37++) { let data581 = data580[i37]; const _errs743 = errors; let valid816 = false; if (data581 && typeof data581 == "object" && !Array.isArray(data581)) { const tag29 = data581.type; if (tag29 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag29 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag29 == "string") { if (tag29 === "fixed") { const _errs744 = errors; let valid818 = false; valid818 = true; var valid819; if (data581.name !== undefined) { let data582 = data581.name; const _errs745 = errors; if ( !( typeof data582 == "string" && (data582 === "chrom" || data582 === "pos" || data582 === "id" || data582 === "ref" || data582 === "alt" || data582 === "qual" || data582 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters.optionalProperties .snv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid819 = _errs745 === errors; } else { valid819 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid819) { var valid820; if (data581.label !== undefined) { const _errs746 = errors; if (!(typeof data581.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid820 = _errs746 === errors; } else { valid820 = true; } if (valid820) { if (data581.description !== undefined) { const _errs747 = errors; if (!(typeof data581.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid820 = _errs747 === errors; } else { valid820 = true; } if (valid820) { if (data581.defaultValue !== undefined) { const _errs748 = errors; if (!(typeof data581.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid820 = _errs748 === errors; } else { valid820 = true; } if (valid820) { for (const key177 in data581) { if ( key177 !== "type" && key177 !== "name" && key177 !== "label" && key177 !== "description" && key177 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/" + key177.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key177 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid818) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid817 = _errs744 === errors; valid816 = valid817; } else if (tag29 === "info") { const _errs749 = errors; let valid822 = false; valid822 = true; var valid823; if (data581.name !== undefined) { const _errs750 = errors; if (!(typeof data581.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid823 = _errs750 === errors; } else { valid823 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid823) { var valid824; if (data581.label !== undefined) { const _errs751 = errors; if (!(typeof data581.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid824 = _errs751 === errors; } else { valid824 = true; } if (valid824) { if (data581.description !== undefined) { const _errs752 = errors; if (!(typeof data581.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid824 = _errs752 === errors; } else { valid824 = true; } if (valid824) { if (data581.defaultValue !== undefined) { const _errs753 = errors; if (!(typeof data581.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid824 = _errs753 === errors; } else { valid824 = true; } if (valid824) { for (const key178 in data581) { if ( key178 !== "type" && key178 !== "name" && key178 !== "label" && key178 !== "description" && key178 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/" + key178.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key178 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid822) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid821 = _errs749 === errors; valid816 = valid821; } else if (tag29 === "format") { const _errs754 = errors; let valid826 = false; valid826 = true; var valid827; if (data581.name !== undefined) { const _errs755 = errors; if (!(typeof data581.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid827 = _errs755 === errors; } else { valid827 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid827) { var valid828; if (data581.label !== undefined) { const _errs756 = errors; if (!(typeof data581.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid828 = _errs756 === errors; } else { valid828 = true; } if (valid828) { if (data581.description !== undefined) { const _errs757 = errors; if (!(typeof data581.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid828 = _errs757 === errors; } else { valid828 = true; } if (valid828) { if (data581.defaultValue !== undefined) { const _errs758 = errors; if (!(typeof data581.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid828 = _errs758 === errors; } else { valid828 = true; } if (valid828) { for (const key179 in data581) { if ( key179 !== "type" && key179 !== "name" && key179 !== "label" && key179 !== "description" && key179 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/" + key179.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key179 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid826) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid825 = _errs754 === errors; valid816 = valid825; } else if (tag29 === "genotype") { const _errs759 = errors; let valid830 = false; valid830 = true; var valid831; if (data581.name !== undefined) { const _errs760 = errors; if (!(typeof data581.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid831 = _errs760 === errors; } else { valid831 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid831) { var valid832; if (data581.label !== undefined) { const _errs761 = errors; if (!(typeof data581.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid832 = _errs761 === errors; } else { valid832 = true; } if (valid832) { if (data581.description !== undefined) { const _errs762 = errors; if (!(typeof data581.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid832 = _errs762 === errors; } else { valid832 = true; } if (valid832) { if (data581.defaultValue !== undefined) { const _errs763 = errors; if (!(typeof data581.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid832 = _errs763 === errors; } else { valid832 = true; } if (valid832) { for (const key180 in data581) { if ( key180 !== "type" && key180 !== "name" && key180 !== "label" && key180 !== "description" && key180 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/" + key180.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key180 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid830) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid829 = _errs759 === errors; valid816 = valid829; } else if (tag29 === "composed") { const _errs764 = errors; let valid834 = false; valid834 = true; var valid835; if (data581.name !== undefined) { let data598 = data581.name; const _errs765 = errors; if ( !( typeof data598 == "string" && (data598 === "allelicImbalance" || data598 === "deNovo" || data598 === "hpo" || data598 === "inheritanceMatch" || data598 === "locus" || data598 === "vipC" || data598 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters.optionalProperties .snv.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid835 = _errs765 === errors; } else { valid835 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid835) { var valid836; if (data581.label !== undefined) { const _errs766 = errors; if (!(typeof data581.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid836 = _errs766 === errors; } else { valid836 = true; } if (valid836) { if (data581.description !== undefined) { const _errs767 = errors; if (!(typeof data581.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid836 = _errs767 === errors; } else { valid836 = true; } if (valid836) { if (data581.defaultValue !== undefined) { const _errs768 = errors; if (!(typeof data581.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid836 = _errs768 === errors; } else { valid836 = true; } if (valid836) { for (const key181 in data581) { if ( key181 !== "type" && key181 !== "name" && key181 !== "label" && key181 !== "description" && key181 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/" + key181.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key181 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid834) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid833 = _errs764 === errors; valid816 = valid833; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag29 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag29 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid816) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv/" + i37, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid815 = _errs743 === errors; if (!valid815) { break; } } valid814 = valid815; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/snv", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid790 = _errs742 === errors; } else { valid790 = true; } if (valid790) { if (data557.str !== undefined) { let data602 = data557.str; const _errs769 = errors; let valid837 = false; if (!valid837) { if (Array.isArray(data602)) { var valid838 = true; const len38 = data602.length; for (let i38 = 0; i38 < len38; i38++) { let data603 = data602[i38]; const _errs770 = errors; let valid839 = false; if (data603 && typeof data603 == "object" && !Array.isArray(data603)) { const tag30 = data603.type; if (tag30 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag30 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag30 == "string") { if (tag30 === "fixed") { const _errs771 = errors; let valid841 = false; valid841 = true; var valid842; if (data603.name !== undefined) { let data604 = data603.name; const _errs772 = errors; if ( !( typeof data604 == "string" && (data604 === "chrom" || data604 === "pos" || data604 === "id" || data604 === "ref" || data604 === "alt" || data604 === "qual" || data604 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters .optionalProperties.str.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid842 = _errs772 === errors; } else { valid842 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid842) { var valid843; if (data603.label !== undefined) { const _errs773 = errors; if (!(typeof data603.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid843 = _errs773 === errors; } else { valid843 = true; } if (valid843) { if (data603.description !== undefined) { const _errs774 = errors; if (!(typeof data603.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid843 = _errs774 === errors; } else { valid843 = true; } if (valid843) { if (data603.defaultValue !== undefined) { const _errs775 = errors; if (!(typeof data603.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid843 = _errs775 === errors; } else { valid843 = true; } if (valid843) { for (const key182 in data603) { if ( key182 !== "type" && key182 !== "name" && key182 !== "label" && key182 !== "description" && key182 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/" + key182.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key182 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid841) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid840 = _errs771 === errors; valid839 = valid840; } else if (tag30 === "info") { const _errs776 = errors; let valid845 = false; valid845 = true; var valid846; if (data603.name !== undefined) { const _errs777 = errors; if (!(typeof data603.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid846 = _errs777 === errors; } else { valid846 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid846) { var valid847; if (data603.label !== undefined) { const _errs778 = errors; if (!(typeof data603.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid847 = _errs778 === errors; } else { valid847 = true; } if (valid847) { if (data603.description !== undefined) { const _errs779 = errors; if (!(typeof data603.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid847 = _errs779 === errors; } else { valid847 = true; } if (valid847) { if (data603.defaultValue !== undefined) { const _errs780 = errors; if (!(typeof data603.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid847 = _errs780 === errors; } else { valid847 = true; } if (valid847) { for (const key183 in data603) { if ( key183 !== "type" && key183 !== "name" && key183 !== "label" && key183 !== "description" && key183 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/" + key183.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key183 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid845) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid844 = _errs776 === errors; valid839 = valid844; } else if (tag30 === "format") { const _errs781 = errors; let valid849 = false; valid849 = true; var valid850; if (data603.name !== undefined) { const _errs782 = errors; if (!(typeof data603.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid850 = _errs782 === errors; } else { valid850 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid850) { var valid851; if (data603.label !== undefined) { const _errs783 = errors; if (!(typeof data603.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid851 = _errs783 === errors; } else { valid851 = true; } if (valid851) { if (data603.description !== undefined) { const _errs784 = errors; if (!(typeof data603.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid851 = _errs784 === errors; } else { valid851 = true; } if (valid851) { if (data603.defaultValue !== undefined) { const _errs785 = errors; if (!(typeof data603.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid851 = _errs785 === errors; } else { valid851 = true; } if (valid851) { for (const key184 in data603) { if ( key184 !== "type" && key184 !== "name" && key184 !== "label" && key184 !== "description" && key184 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/" + key184.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key184 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid849) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid848 = _errs781 === errors; valid839 = valid848; } else if (tag30 === "genotype") { const _errs786 = errors; let valid853 = false; valid853 = true; var valid854; if (data603.name !== undefined) { const _errs787 = errors; if (!(typeof data603.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid854 = _errs787 === errors; } else { valid854 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid854) { var valid855; if (data603.label !== undefined) { const _errs788 = errors; if (!(typeof data603.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid855 = _errs788 === errors; } else { valid855 = true; } if (valid855) { if (data603.description !== undefined) { const _errs789 = errors; if (!(typeof data603.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid855 = _errs789 === errors; } else { valid855 = true; } if (valid855) { if (data603.defaultValue !== undefined) { const _errs790 = errors; if (!(typeof data603.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid855 = _errs790 === errors; } else { valid855 = true; } if (valid855) { for (const key185 in data603) { if ( key185 !== "type" && key185 !== "name" && key185 !== "label" && key185 !== "description" && key185 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/" + key185.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key185 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid853) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid852 = _errs786 === errors; valid839 = valid852; } else if (tag30 === "composed") { const _errs791 = errors; let valid857 = false; valid857 = true; var valid858; if (data603.name !== undefined) { let data620 = data603.name; const _errs792 = errors; if ( !( typeof data620 == "string" && (data620 === "allelicImbalance" || data620 === "deNovo" || data620 === "hpo" || data620 === "inheritanceMatch" || data620 === "locus" || data620 === "vipC" || data620 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters .optionalProperties.str.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid858 = _errs792 === errors; } else { valid858 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid858) { var valid859; if (data603.label !== undefined) { const _errs793 = errors; if (!(typeof data603.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid859 = _errs793 === errors; } else { valid859 = true; } if (valid859) { if (data603.description !== undefined) { const _errs794 = errors; if (!(typeof data603.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid859 = _errs794 === errors; } else { valid859 = true; } if (valid859) { if (data603.defaultValue !== undefined) { const _errs795 = errors; if (!(typeof data603.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid859 = _errs795 === errors; } else { valid859 = true; } if (valid859) { for (const key186 in data603) { if ( key186 !== "type" && key186 !== "name" && key186 !== "label" && key186 !== "description" && key186 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/" + key186.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key186 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid857) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid856 = _errs791 === errors; valid839 = valid856; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag30 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag30 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid839) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str/" + i38, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid838 = _errs770 === errors; if (!valid838) { break; } } valid837 = valid838; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/str", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid790 = _errs769 === errors; } else { valid790 = true; } if (valid790) { if (data557.sv !== undefined) { let data624 = data557.sv; const _errs796 = errors; let valid860 = false; if (!valid860) { if (Array.isArray(data624)) { var valid861 = true; const len39 = data624.length; for (let i39 = 0; i39 < len39; i39++) { let data625 = data624[i39]; const _errs797 = errors; let valid862 = false; if (data625 && typeof data625 == "object" && !Array.isArray(data625)) { const tag31 = data625.type; if (tag31 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag31 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag31 == "string") { if (tag31 === "fixed") { const _errs798 = errors; let valid864 = false; valid864 = true; var valid865; if (data625.name !== undefined) { let data626 = data625.name; const _errs799 = errors; if ( !( typeof data626 == "string" && (data626 === "chrom" || data626 === "pos" || data626 === "id" || data626 === "ref" || data626 === "alt" || data626 === "qual" || data626 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters .optionalProperties.sv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid865 = _errs799 === errors; } else { valid865 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid865) { var valid866; if (data625.label !== undefined) { const _errs800 = errors; if (!(typeof data625.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid866 = _errs800 === errors; } else { valid866 = true; } if (valid866) { if (data625.description !== undefined) { const _errs801 = errors; if (!(typeof data625.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid866 = _errs801 === errors; } else { valid866 = true; } if (valid866) { if (data625.defaultValue !== undefined) { const _errs802 = errors; if (!(typeof data625.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid866 = _errs802 === errors; } else { valid866 = true; } if (valid866) { for (const key187 in data625) { if ( key187 !== "type" && key187 !== "name" && key187 !== "label" && key187 !== "description" && key187 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/" + key187.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key187 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid864) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid863 = _errs798 === errors; valid862 = valid863; } else if (tag31 === "info") { const _errs803 = errors; let valid868 = false; valid868 = true; var valid869; if (data625.name !== undefined) { const _errs804 = errors; if (!(typeof data625.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid869 = _errs804 === errors; } else { valid869 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid869) { var valid870; if (data625.label !== undefined) { const _errs805 = errors; if (!(typeof data625.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid870 = _errs805 === errors; } else { valid870 = true; } if (valid870) { if (data625.description !== undefined) { const _errs806 = errors; if (!(typeof data625.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid870 = _errs806 === errors; } else { valid870 = true; } if (valid870) { if (data625.defaultValue !== undefined) { const _errs807 = errors; if (!(typeof data625.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid870 = _errs807 === errors; } else { valid870 = true; } if (valid870) { for (const key188 in data625) { if ( key188 !== "type" && key188 !== "name" && key188 !== "label" && key188 !== "description" && key188 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/" + key188.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key188 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid868) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid867 = _errs803 === errors; valid862 = valid867; } else if (tag31 === "format") { const _errs808 = errors; let valid872 = false; valid872 = true; var valid873; if (data625.name !== undefined) { const _errs809 = errors; if (!(typeof data625.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid873 = _errs809 === errors; } else { valid873 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid873) { var valid874; if (data625.label !== undefined) { const _errs810 = errors; if (!(typeof data625.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid874 = _errs810 === errors; } else { valid874 = true; } if (valid874) { if (data625.description !== undefined) { const _errs811 = errors; if (!(typeof data625.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid874 = _errs811 === errors; } else { valid874 = true; } if (valid874) { if (data625.defaultValue !== undefined) { const _errs812 = errors; if (!(typeof data625.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid874 = _errs812 === errors; } else { valid874 = true; } if (valid874) { for (const key189 in data625) { if ( key189 !== "type" && key189 !== "name" && key189 !== "label" && key189 !== "description" && key189 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/" + key189.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key189 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid872) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid871 = _errs808 === errors; valid862 = valid871; } else if (tag31 === "genotype") { const _errs813 = errors; let valid876 = false; valid876 = true; var valid877; if (data625.name !== undefined) { const _errs814 = errors; if (!(typeof data625.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid877 = _errs814 === errors; } else { valid877 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid877) { var valid878; if (data625.label !== undefined) { const _errs815 = errors; if (!(typeof data625.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid878 = _errs815 === errors; } else { valid878 = true; } if (valid878) { if (data625.description !== undefined) { const _errs816 = errors; if (!(typeof data625.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid878 = _errs816 === errors; } else { valid878 = true; } if (valid878) { if (data625.defaultValue !== undefined) { const _errs817 = errors; if (!(typeof data625.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid878 = _errs817 === errors; } else { valid878 = true; } if (valid878) { for (const key190 in data625) { if ( key190 !== "type" && key190 !== "name" && key190 !== "label" && key190 !== "description" && key190 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/" + key190.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key190 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid876) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid875 = _errs813 === errors; valid862 = valid875; } else if (tag31 === "composed") { const _errs818 = errors; let valid880 = false; valid880 = true; var valid881; if (data625.name !== undefined) { let data642 = data625.name; const _errs819 = errors; if ( !( typeof data642 == "string" && (data642 === "allelicImbalance" || data642 === "deNovo" || data642 === "hpo" || data642 === "inheritanceMatch" || data642 === "locus" || data642 === "vipC" || data642 === "vipCS") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/name", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.filters .optionalProperties.sv.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid881 = _errs819 === errors; } else { valid881 = false; validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid881) { var valid882; if (data625.label !== undefined) { const _errs820 = errors; if (!(typeof data625.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/label", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid882 = _errs820 === errors; } else { valid882 = true; } if (valid882) { if (data625.description !== undefined) { const _errs821 = errors; if (!(typeof data625.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/description", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid882 = _errs821 === errors; } else { valid882 = true; } if (valid882) { if (data625.defaultValue !== undefined) { const _errs822 = errors; if (!(typeof data625.defaultValue == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/defaultValue", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/optionalProperties/defaultValue/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid882 = _errs822 === errors; } else { valid882 = true; } if (valid882) { for (const key191 in data625) { if ( key191 !== "type" && key191 !== "name" && key191 !== "label" && key191 !== "description" && key191 !== "defaultValue" ) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/" + key191.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key191 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } if (!valid880) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid879 = _errs818 === errors; valid862 = valid879; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag31 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39 + "/type", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag31 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid862) { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv/" + i39, schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid861 = _errs797 === errors; if (!valid861) { break; } } valid860 = valid861; } else { validate57.errors = [ { instancePath: instancePath + "/variants/filters/sv", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid790 = _errs796 === errors; } else { valid790 = true; } if (valid790) { for (const key192 in data557) { if (key192 !== "all" && key192 !== "snv" && key192 !== "str" && key192 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variants/filters/" + key192.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/filters", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key192 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid788) { validate57.errors = [ { instancePath: instancePath + "/variants/filters", schemaPath: "/properties/variants/optionalProperties/filters/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid787 = _errs714 === errors; } else { valid787 = true; } if (valid787) { if (data419.sorts !== undefined) { let data646 = data419.sorts; const _errs823 = errors; let valid883 = false; if (data646 && typeof data646 == "object" && !Array.isArray(data646)) { valid883 = true; var valid885; if (data646.all !== undefined) { let data647 = data646.all; const _errs824 = errors; let valid886 = false; if (!valid886) { if (Array.isArray(data647)) { var valid887 = true; const len40 = data647.length; for (let i40 = 0; i40 < len40; i40++) { let data648 = data647[i40]; const _errs825 = errors; let valid888 = false; if (data648 && typeof data648 == "object" && !Array.isArray(data648)) { valid888 = true; var valid889; if (data648.selected !== undefined) { const _errs826 = errors; if (!(typeof data648.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/selected", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid889 = _errs826 === errors; } else { valid889 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid889) { if (data648.orders !== undefined) { let data650 = data648.orders; const _errs827 = errors; let valid890 = false; if (!valid890) { if (Array.isArray(data650)) { var valid891 = true; const len41 = data650.length; for (let i41 = 0; i41 < len41; i41++) { let data651 = data650[i41]; const _errs828 = errors; let valid892 = false; if (data651 && typeof data651 == "object" && !Array.isArray(data651)) { valid892 = true; var valid893; if (data651.direction !== undefined) { let data652 = data651.direction; const _errs829 = errors; if ( !(typeof data652 == "string" && (data652 === "asc" || data652 === "desc")) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/direction", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.all.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid893 = _errs829 === errors; } else { valid893 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid893) { if (data651.field !== undefined) { let data653 = data651.field; const _errs830 = errors; let valid894 = false; if (data653 && typeof data653 == "object" && !Array.isArray(data653)) { const tag32 = data653.type; if (tag32 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag32 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag32 == "string") { if (tag32 === "fixed") { const _errs831 = errors; let valid896 = false; valid896 = true; var valid897; if (data653.name !== undefined) { let data654 = data653.name; const _errs832 = errors; if ( !( typeof data654 == "string" && (data654 === "chrom" || data654 === "pos" || data654 === "id" || data654 === "ref" || data654 === "alt" || data654 === "qual" || data654 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.all.elements.properties.orders .elements.properties.field.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid897 = _errs832 === errors; } else { valid897 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid897) { var valid898; if (data653.label !== undefined) { const _errs833 = errors; if (!(typeof data653.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid898 = _errs833 === errors; } else { valid898 = true; } if (valid898) { if (data653.description !== undefined) { const _errs834 = errors; if (!(typeof data653.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid898 = _errs834 === errors; } else { valid898 = true; } if (valid898) { for (const key193 in data653) { if ( key193 !== "type" && key193 !== "name" && key193 !== "label" && key193 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/" + key193.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key193, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid896) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid895 = _errs831 === errors; valid894 = valid895; } else if (tag32 === "info") { const _errs835 = errors; let valid900 = false; valid900 = true; var valid901; if (data653.name !== undefined) { const _errs836 = errors; if (!(typeof data653.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid901 = _errs836 === errors; } else { valid901 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid901) { var valid902; if (data653.label !== undefined) { const _errs837 = errors; if (!(typeof data653.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid902 = _errs837 === errors; } else { valid902 = true; } if (valid902) { if (data653.description !== undefined) { const _errs838 = errors; if (!(typeof data653.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid902 = _errs838 === errors; } else { valid902 = true; } if (valid902) { for (const key194 in data653) { if ( key194 !== "type" && key194 !== "name" && key194 !== "label" && key194 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/" + key194.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key194, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid900) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid899 = _errs835 === errors; valid894 = valid899; } else if (tag32 === "format") { const _errs839 = errors; let valid904 = false; valid904 = true; var valid905; if (data653.name !== undefined) { const _errs840 = errors; if (!(typeof data653.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid905 = _errs840 === errors; } else { valid905 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid905) { var valid906; if (data653.label !== undefined) { const _errs841 = errors; if (!(typeof data653.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid906 = _errs841 === errors; } else { valid906 = true; } if (valid906) { if (data653.description !== undefined) { const _errs842 = errors; if (!(typeof data653.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid906 = _errs842 === errors; } else { valid906 = true; } if (valid906) { for (const key195 in data653) { if ( key195 !== "type" && key195 !== "name" && key195 !== "label" && key195 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/" + key195.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key195, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid904) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid903 = _errs839 === errors; valid894 = valid903; } else if (tag32 === "genotype") { const _errs843 = errors; let valid908 = false; valid908 = true; var valid909; if (data653.name !== undefined) { const _errs844 = errors; if (!(typeof data653.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid909 = _errs844 === errors; } else { valid909 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid909) { var valid910; if (data653.label !== undefined) { const _errs845 = errors; if (!(typeof data653.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid910 = _errs845 === errors; } else { valid910 = true; } if (valid910) { if (data653.description !== undefined) { const _errs846 = errors; if (!(typeof data653.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid910 = _errs846 === errors; } else { valid910 = true; } if (valid910) { for (const key196 in data653) { if ( key196 !== "type" && key196 !== "name" && key196 !== "label" && key196 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/" + key196.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key196, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid908) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid907 = _errs843 === errors; valid894 = valid907; } else if (tag32 === "composed") { const _errs847 = errors; let valid912 = false; valid912 = true; var valid913; if (data653.name !== undefined) { let data666 = data653.name; const _errs848 = errors; if ( !( typeof data666 == "string" && (data666 === "clinVar" || data666 === "confidenceInterval" || data666 === "gene" || data666 === "genotype" || data666 === "genotype_maternal" || data666 === "genotype_paternal" || data666 === "gnomAdAf" || data666 === "hpo" || data666 === "inheritancePattern" || data666 === "locus" || data666 === "spanningReads" || data666 === "vipC" || data666 === "vipCS" || data666 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.all.elements.properties.orders .elements.properties.field.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid913 = _errs848 === errors; } else { valid913 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid913) { var valid914; if (data653.label !== undefined) { const _errs849 = errors; if (!(typeof data653.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid914 = _errs849 === errors; } else { valid914 = true; } if (valid914) { if (data653.description !== undefined) { const _errs850 = errors; if (!(typeof data653.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid914 = _errs850 === errors; } else { valid914 = true; } if (valid914) { for (const key197 in data653) { if ( key197 !== "type" && key197 !== "name" && key197 !== "label" && key197 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/" + key197.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key197, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid912) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid911 = _errs847 === errors; valid894 = valid911; } else if (tag32 === "group") { const _errs851 = errors; let valid916 = false; valid916 = true; var valid917; if (data653.fields !== undefined) { let data669 = data653.fields; const _errs852 = errors; let valid918 = false; if (!valid918) { if (Array.isArray(data669)) { var valid919 = true; const len42 = data669.length; for (let i42 = 0; i42 < len42; i42++) { let data670 = data669[i42]; const _errs853 = errors; let valid920 = false; if ( data670 && typeof data670 == "object" && !Array.isArray(data670) ) { const tag33 = data670.type; if (tag33 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag33, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag33 == "string") { if (tag33 === "fixed") { const _errs854 = errors; let valid922 = false; valid922 = true; var valid923; if (data670.name !== undefined) { let data671 = data670.name; const _errs855 = errors; if ( !( typeof data671 == "string" && (data671 === "chrom" || data671 === "pos" || data671 === "id" || data671 === "ref" || data671 === "alt" || data671 === "qual" || data671 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.all.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid923 = _errs855 === errors; } else { valid923 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid923) { var valid924; if (data670.label !== undefined) { const _errs856 = errors; if (!(typeof data670.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid924 = _errs856 === errors; } else { valid924 = true; } if (valid924) { if (data670.description !== undefined) { const _errs857 = errors; if (!(typeof data670.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid924 = _errs857 === errors; } else { valid924 = true; } if (valid924) { for (const key198 in data670) { if ( key198 !== "type" && key198 !== "name" && key198 !== "label" && key198 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/" + key198 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key198, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid922) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid921 = _errs854 === errors; valid920 = valid921; } else if (tag33 === "info") { const _errs858 = errors; let valid926 = false; valid926 = true; var valid927; if (data670.name !== undefined) { const _errs859 = errors; if (!(typeof data670.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid927 = _errs859 === errors; } else { valid927 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid927) { var valid928; if (data670.label !== undefined) { const _errs860 = errors; if (!(typeof data670.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid928 = _errs860 === errors; } else { valid928 = true; } if (valid928) { if (data670.description !== undefined) { const _errs861 = errors; if (!(typeof data670.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid928 = _errs861 === errors; } else { valid928 = true; } if (valid928) { for (const key199 in data670) { if ( key199 !== "type" && key199 !== "name" && key199 !== "label" && key199 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/" + key199 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key199, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid926) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid925 = _errs858 === errors; valid920 = valid925; } else if (tag33 === "format") { const _errs862 = errors; let valid930 = false; valid930 = true; var valid931; if (data670.name !== undefined) { const _errs863 = errors; if (!(typeof data670.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid931 = _errs863 === errors; } else { valid931 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid931) { var valid932; if (data670.label !== undefined) { const _errs864 = errors; if (!(typeof data670.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid932 = _errs864 === errors; } else { valid932 = true; } if (valid932) { if (data670.description !== undefined) { const _errs865 = errors; if (!(typeof data670.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid932 = _errs865 === errors; } else { valid932 = true; } if (valid932) { for (const key200 in data670) { if ( key200 !== "type" && key200 !== "name" && key200 !== "label" && key200 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/" + key200 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key200, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid930) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid929 = _errs862 === errors; valid920 = valid929; } else if (tag33 === "genotype") { const _errs866 = errors; let valid934 = false; valid934 = true; var valid935; if (data670.name !== undefined) { const _errs867 = errors; if (!(typeof data670.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid935 = _errs867 === errors; } else { valid935 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid935) { var valid936; if (data670.label !== undefined) { const _errs868 = errors; if (!(typeof data670.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid936 = _errs868 === errors; } else { valid936 = true; } if (valid936) { if (data670.description !== undefined) { const _errs869 = errors; if (!(typeof data670.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid936 = _errs869 === errors; } else { valid936 = true; } if (valid936) { for (const key201 in data670) { if ( key201 !== "type" && key201 !== "name" && key201 !== "label" && key201 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/" + key201 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key201, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid934) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid933 = _errs866 === errors; valid920 = valid933; } else if (tag33 === "composed") { const _errs870 = errors; let valid938 = false; valid938 = true; var valid939; if (data670.name !== undefined) { let data683 = data670.name; const _errs871 = errors; if ( !( typeof data683 == "string" && (data683 === "clinVar" || data683 === "gene" || data683 === "genotype" || data683 === "gnomAdAf" || data683 === "hpo" || data683 === "inheritancePattern" || data683 === "locus" || data683 === "ref" || data683 === "vipC" || data683 === "vipCS" || data683 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.all.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid939 = _errs871 === errors; } else { valid939 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid939) { var valid940; if (data670.label !== undefined) { const _errs872 = errors; if (!(typeof data670.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid940 = _errs872 === errors; } else { valid940 = true; } if (valid940) { if (data670.description !== undefined) { const _errs873 = errors; if (!(typeof data670.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid940 = _errs873 === errors; } else { valid940 = true; } if (valid940) { for (const key202 in data670) { if ( key202 !== "type" && key202 !== "name" && key202 !== "label" && key202 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/" + key202 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key202, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid938) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid937 = _errs870 === errors; valid920 = valid937; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag33, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag33, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid920) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields/" + i42, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid919 = _errs853 === errors; if (!valid919) { break; } } valid918 = valid919; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/fields", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid917 = _errs852 === errors; } else { valid917 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid917) { for (const key203 in data653) { if (key203 !== "type" && key203 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/" + key203.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key203, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid916) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid915 = _errs851 === errors; valid894 = valid915; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag32 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag32 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid894) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid893 = _errs830 === errors; } else { valid893 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid893) { for (const key204 in data651) { if (key204 !== "direction" && key204 !== "field") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41 + "/" + key204.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key204 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid892) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders/" + i41, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid891 = _errs828 === errors; if (!valid891) { break; } } valid890 = valid891; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/orders", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid889 = _errs827 === errors; } else { valid889 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid889) { for (const key205 in data648) { if (key205 !== "selected" && key205 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40 + "/" + key205.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements", keyword: "properties", params: { error: "additional", additionalProperty: key205 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid888) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all/" + i40, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid887 = _errs825 === errors; if (!valid887) { break; } } valid886 = valid887; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/all", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid885 = _errs824 === errors; } else { valid885 = true; } if (valid885) { if (data646.snv !== undefined) { let data686 = data646.snv; const _errs874 = errors; let valid944 = false; if (!valid944) { if (Array.isArray(data686)) { var valid945 = true; const len43 = data686.length; for (let i43 = 0; i43 < len43; i43++) { let data687 = data686[i43]; const _errs875 = errors; let valid946 = false; if (data687 && typeof data687 == "object" && !Array.isArray(data687)) { valid946 = true; var valid947; if (data687.selected !== undefined) { const _errs876 = errors; if (!(typeof data687.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/selected", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid947 = _errs876 === errors; } else { valid947 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid947) { if (data687.orders !== undefined) { let data689 = data687.orders; const _errs877 = errors; let valid948 = false; if (!valid948) { if (Array.isArray(data689)) { var valid949 = true; const len44 = data689.length; for (let i44 = 0; i44 < len44; i44++) { let data690 = data689[i44]; const _errs878 = errors; let valid950 = false; if (data690 && typeof data690 == "object" && !Array.isArray(data690)) { valid950 = true; var valid951; if (data690.direction !== undefined) { let data691 = data690.direction; const _errs879 = errors; if ( !( typeof data691 == "string" && (data691 === "asc" || data691 === "desc") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/direction", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.snv.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid951 = _errs879 === errors; } else { valid951 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid951) { if (data690.field !== undefined) { let data692 = data690.field; const _errs880 = errors; let valid952 = false; if (data692 && typeof data692 == "object" && !Array.isArray(data692)) { const tag34 = data692.type; if (tag34 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag34 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag34 == "string") { if (tag34 === "fixed") { const _errs881 = errors; let valid954 = false; valid954 = true; var valid955; if (data692.name !== undefined) { let data693 = data692.name; const _errs882 = errors; if ( !( typeof data693 == "string" && (data693 === "chrom" || data693 === "pos" || data693 === "id" || data693 === "ref" || data693 === "alt" || data693 === "qual" || data693 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.snv.elements.properties.orders .elements.properties.field.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid955 = _errs882 === errors; } else { valid955 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid955) { var valid956; if (data692.label !== undefined) { const _errs883 = errors; if (!(typeof data692.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid956 = _errs883 === errors; } else { valid956 = true; } if (valid956) { if (data692.description !== undefined) { const _errs884 = errors; if (!(typeof data692.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid956 = _errs884 === errors; } else { valid956 = true; } if (valid956) { for (const key206 in data692) { if ( key206 !== "type" && key206 !== "name" && key206 !== "label" && key206 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/" + key206.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key206, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid954) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid953 = _errs881 === errors; valid952 = valid953; } else if (tag34 === "info") { const _errs885 = errors; let valid958 = false; valid958 = true; var valid959; if (data692.name !== undefined) { const _errs886 = errors; if (!(typeof data692.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid959 = _errs886 === errors; } else { valid959 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid959) { var valid960; if (data692.label !== undefined) { const _errs887 = errors; if (!(typeof data692.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid960 = _errs887 === errors; } else { valid960 = true; } if (valid960) { if (data692.description !== undefined) { const _errs888 = errors; if (!(typeof data692.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid960 = _errs888 === errors; } else { valid960 = true; } if (valid960) { for (const key207 in data692) { if ( key207 !== "type" && key207 !== "name" && key207 !== "label" && key207 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/" + key207.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key207, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid958) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid957 = _errs885 === errors; valid952 = valid957; } else if (tag34 === "format") { const _errs889 = errors; let valid962 = false; valid962 = true; var valid963; if (data692.name !== undefined) { const _errs890 = errors; if (!(typeof data692.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid963 = _errs890 === errors; } else { valid963 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid963) { var valid964; if (data692.label !== undefined) { const _errs891 = errors; if (!(typeof data692.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid964 = _errs891 === errors; } else { valid964 = true; } if (valid964) { if (data692.description !== undefined) { const _errs892 = errors; if (!(typeof data692.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid964 = _errs892 === errors; } else { valid964 = true; } if (valid964) { for (const key208 in data692) { if ( key208 !== "type" && key208 !== "name" && key208 !== "label" && key208 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/" + key208.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key208, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid962) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid961 = _errs889 === errors; valid952 = valid961; } else if (tag34 === "genotype") { const _errs893 = errors; let valid966 = false; valid966 = true; var valid967; if (data692.name !== undefined) { const _errs894 = errors; if (!(typeof data692.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid967 = _errs894 === errors; } else { valid967 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid967) { var valid968; if (data692.label !== undefined) { const _errs895 = errors; if (!(typeof data692.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid968 = _errs895 === errors; } else { valid968 = true; } if (valid968) { if (data692.description !== undefined) { const _errs896 = errors; if (!(typeof data692.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid968 = _errs896 === errors; } else { valid968 = true; } if (valid968) { for (const key209 in data692) { if ( key209 !== "type" && key209 !== "name" && key209 !== "label" && key209 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/" + key209.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key209, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid966) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid965 = _errs893 === errors; valid952 = valid965; } else if (tag34 === "composed") { const _errs897 = errors; let valid970 = false; valid970 = true; var valid971; if (data692.name !== undefined) { let data705 = data692.name; const _errs898 = errors; if ( !( typeof data705 == "string" && (data705 === "clinVar" || data705 === "confidenceInterval" || data705 === "gene" || data705 === "genotype" || data705 === "genotype_maternal" || data705 === "genotype_paternal" || data705 === "gnomAdAf" || data705 === "hpo" || data705 === "inheritancePattern" || data705 === "locus" || data705 === "spanningReads" || data705 === "vipC" || data705 === "vipCS" || data705 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.snv.elements.properties.orders .elements.properties.field.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid971 = _errs898 === errors; } else { valid971 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid971) { var valid972; if (data692.label !== undefined) { const _errs899 = errors; if (!(typeof data692.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid972 = _errs899 === errors; } else { valid972 = true; } if (valid972) { if (data692.description !== undefined) { const _errs900 = errors; if (!(typeof data692.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid972 = _errs900 === errors; } else { valid972 = true; } if (valid972) { for (const key210 in data692) { if ( key210 !== "type" && key210 !== "name" && key210 !== "label" && key210 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/" + key210.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key210, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid970) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid969 = _errs897 === errors; valid952 = valid969; } else if (tag34 === "group") { const _errs901 = errors; let valid974 = false; valid974 = true; var valid975; if (data692.fields !== undefined) { let data708 = data692.fields; const _errs902 = errors; let valid976 = false; if (!valid976) { if (Array.isArray(data708)) { var valid977 = true; const len45 = data708.length; for (let i45 = 0; i45 < len45; i45++) { let data709 = data708[i45]; const _errs903 = errors; let valid978 = false; if ( data709 && typeof data709 == "object" && !Array.isArray(data709) ) { const tag35 = data709.type; if (tag35 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag35, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag35 == "string") { if (tag35 === "fixed") { const _errs904 = errors; let valid980 = false; valid980 = true; var valid981; if (data709.name !== undefined) { let data710 = data709.name; const _errs905 = errors; if ( !( typeof data710 == "string" && (data710 === "chrom" || data710 === "pos" || data710 === "id" || data710 === "ref" || data710 === "alt" || data710 === "qual" || data710 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.snv.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid981 = _errs905 === errors; } else { valid981 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid981) { var valid982; if (data709.label !== undefined) { const _errs906 = errors; if (!(typeof data709.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid982 = _errs906 === errors; } else { valid982 = true; } if (valid982) { if (data709.description !== undefined) { const _errs907 = errors; if ( !(typeof data709.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid982 = _errs907 === errors; } else { valid982 = true; } if (valid982) { for (const key211 in data709) { if ( key211 !== "type" && key211 !== "name" && key211 !== "label" && key211 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/" + key211 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key211, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid980) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid979 = _errs904 === errors; valid978 = valid979; } else if (tag35 === "info") { const _errs908 = errors; let valid984 = false; valid984 = true; var valid985; if (data709.name !== undefined) { const _errs909 = errors; if (!(typeof data709.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid985 = _errs909 === errors; } else { valid985 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid985) { var valid986; if (data709.label !== undefined) { const _errs910 = errors; if (!(typeof data709.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid986 = _errs910 === errors; } else { valid986 = true; } if (valid986) { if (data709.description !== undefined) { const _errs911 = errors; if ( !(typeof data709.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid986 = _errs911 === errors; } else { valid986 = true; } if (valid986) { for (const key212 in data709) { if ( key212 !== "type" && key212 !== "name" && key212 !== "label" && key212 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/" + key212 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key212, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid984) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid983 = _errs908 === errors; valid978 = valid983; } else if (tag35 === "format") { const _errs912 = errors; let valid988 = false; valid988 = true; var valid989; if (data709.name !== undefined) { const _errs913 = errors; if (!(typeof data709.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid989 = _errs913 === errors; } else { valid989 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid989) { var valid990; if (data709.label !== undefined) { const _errs914 = errors; if (!(typeof data709.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid990 = _errs914 === errors; } else { valid990 = true; } if (valid990) { if (data709.description !== undefined) { const _errs915 = errors; if ( !(typeof data709.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid990 = _errs915 === errors; } else { valid990 = true; } if (valid990) { for (const key213 in data709) { if ( key213 !== "type" && key213 !== "name" && key213 !== "label" && key213 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/" + key213 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key213, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid988) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid987 = _errs912 === errors; valid978 = valid987; } else if (tag35 === "genotype") { const _errs916 = errors; let valid992 = false; valid992 = true; var valid993; if (data709.name !== undefined) { const _errs917 = errors; if (!(typeof data709.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid993 = _errs917 === errors; } else { valid993 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid993) { var valid994; if (data709.label !== undefined) { const _errs918 = errors; if (!(typeof data709.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid994 = _errs918 === errors; } else { valid994 = true; } if (valid994) { if (data709.description !== undefined) { const _errs919 = errors; if ( !(typeof data709.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid994 = _errs919 === errors; } else { valid994 = true; } if (valid994) { for (const key214 in data709) { if ( key214 !== "type" && key214 !== "name" && key214 !== "label" && key214 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/" + key214 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key214, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid992) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid991 = _errs916 === errors; valid978 = valid991; } else if (tag35 === "composed") { const _errs920 = errors; let valid996 = false; valid996 = true; var valid997; if (data709.name !== undefined) { let data722 = data709.name; const _errs921 = errors; if ( !( typeof data722 == "string" && (data722 === "clinVar" || data722 === "gene" || data722 === "genotype" || data722 === "gnomAdAf" || data722 === "hpo" || data722 === "inheritancePattern" || data722 === "locus" || data722 === "ref" || data722 === "vipC" || data722 === "vipCS" || data722 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.snv.elements .properties.orders.elements.properties .field.mapping.group.properties.fields .elements.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid997 = _errs921 === errors; } else { valid997 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid997) { var valid998; if (data709.label !== undefined) { const _errs922 = errors; if (!(typeof data709.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid998 = _errs922 === errors; } else { valid998 = true; } if (valid998) { if (data709.description !== undefined) { const _errs923 = errors; if ( !(typeof data709.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid998 = _errs923 === errors; } else { valid998 = true; } if (valid998) { for (const key215 in data709) { if ( key215 !== "type" && key215 !== "name" && key215 !== "label" && key215 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/" + key215 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key215, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid996) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid995 = _errs920 === errors; valid978 = valid995; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag35, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag35, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid978) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields/" + i45, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid977 = _errs903 === errors; if (!valid977) { break; } } valid976 = valid977; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/fields", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid975 = _errs902 === errors; } else { valid975 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid975) { for (const key216 in data692) { if (key216 !== "type" && key216 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/" + key216.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key216, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid974) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid973 = _errs901 === errors; valid952 = valid973; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag34 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag34 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid952) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid951 = _errs880 === errors; } else { valid951 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid951) { for (const key217 in data690) { if (key217 !== "direction" && key217 !== "field") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44 + "/" + key217.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key217 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid950) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders/" + i44, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid949 = _errs878 === errors; if (!valid949) { break; } } valid948 = valid949; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/orders", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid947 = _errs877 === errors; } else { valid947 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid947) { for (const key218 in data687) { if (key218 !== "selected" && key218 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43 + "/" + key218.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key218 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid946) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv/" + i43, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid945 = _errs875 === errors; if (!valid945) { break; } } valid944 = valid945; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/snv", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid885 = _errs874 === errors; } else { valid885 = true; } if (valid885) { if (data646.str !== undefined) { let data725 = data646.str; const _errs924 = errors; let valid1002 = false; if (!valid1002) { if (Array.isArray(data725)) { var valid1003 = true; const len46 = data725.length; for (let i46 = 0; i46 < len46; i46++) { let data726 = data725[i46]; const _errs925 = errors; let valid1004 = false; if (data726 && typeof data726 == "object" && !Array.isArray(data726)) { valid1004 = true; var valid1005; if (data726.selected !== undefined) { const _errs926 = errors; if (!(typeof data726.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/selected", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid1005 = _errs926 === errors; } else { valid1005 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid1005) { if (data726.orders !== undefined) { let data728 = data726.orders; const _errs927 = errors; let valid1006 = false; if (!valid1006) { if (Array.isArray(data728)) { var valid1007 = true; const len47 = data728.length; for (let i47 = 0; i47 < len47; i47++) { let data729 = data728[i47]; const _errs928 = errors; let valid1008 = false; if (data729 && typeof data729 == "object" && !Array.isArray(data729)) { valid1008 = true; var valid1009; if (data729.direction !== undefined) { let data730 = data729.direction; const _errs929 = errors; if ( !( typeof data730 == "string" && (data730 === "asc" || data730 === "desc") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/direction", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.str.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1009 = _errs929 === errors; } else { valid1009 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid1009) { if (data729.field !== undefined) { let data731 = data729.field; const _errs930 = errors; let valid1010 = false; if ( data731 && typeof data731 == "object" && !Array.isArray(data731) ) { const tag36 = data731.type; if (tag36 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag36 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag36 == "string") { if (tag36 === "fixed") { const _errs931 = errors; let valid1012 = false; valid1012 = true; var valid1013; if (data731.name !== undefined) { let data732 = data731.name; const _errs932 = errors; if ( !( typeof data732 == "string" && (data732 === "chrom" || data732 === "pos" || data732 === "id" || data732 === "ref" || data732 === "alt" || data732 === "qual" || data732 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties .sorts.optionalProperties.str.elements.properties .orders.elements.properties.field.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1013 = _errs932 === errors; } else { valid1013 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1013) { var valid1014; if (data731.label !== undefined) { const _errs933 = errors; if (!(typeof data731.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1014 = _errs933 === errors; } else { valid1014 = true; } if (valid1014) { if (data731.description !== undefined) { const _errs934 = errors; if (!(typeof data731.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1014 = _errs934 === errors; } else { valid1014 = true; } if (valid1014) { for (const key219 in data731) { if ( key219 !== "type" && key219 !== "name" && key219 !== "label" && key219 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/" + key219.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key219, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1012) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1011 = _errs931 === errors; valid1010 = valid1011; } else if (tag36 === "info") { const _errs935 = errors; let valid1016 = false; valid1016 = true; var valid1017; if (data731.name !== undefined) { const _errs936 = errors; if (!(typeof data731.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1017 = _errs936 === errors; } else { valid1017 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1017) { var valid1018; if (data731.label !== undefined) { const _errs937 = errors; if (!(typeof data731.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1018 = _errs937 === errors; } else { valid1018 = true; } if (valid1018) { if (data731.description !== undefined) { const _errs938 = errors; if (!(typeof data731.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1018 = _errs938 === errors; } else { valid1018 = true; } if (valid1018) { for (const key220 in data731) { if ( key220 !== "type" && key220 !== "name" && key220 !== "label" && key220 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/" + key220.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key220, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1016) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1015 = _errs935 === errors; valid1010 = valid1015; } else if (tag36 === "format") { const _errs939 = errors; let valid1020 = false; valid1020 = true; var valid1021; if (data731.name !== undefined) { const _errs940 = errors; if (!(typeof data731.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1021 = _errs940 === errors; } else { valid1021 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1021) { var valid1022; if (data731.label !== undefined) { const _errs941 = errors; if (!(typeof data731.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1022 = _errs941 === errors; } else { valid1022 = true; } if (valid1022) { if (data731.description !== undefined) { const _errs942 = errors; if (!(typeof data731.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1022 = _errs942 === errors; } else { valid1022 = true; } if (valid1022) { for (const key221 in data731) { if ( key221 !== "type" && key221 !== "name" && key221 !== "label" && key221 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/" + key221.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key221, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1020) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1019 = _errs939 === errors; valid1010 = valid1019; } else if (tag36 === "genotype") { const _errs943 = errors; let valid1024 = false; valid1024 = true; var valid1025; if (data731.name !== undefined) { const _errs944 = errors; if (!(typeof data731.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1025 = _errs944 === errors; } else { valid1025 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1025) { var valid1026; if (data731.label !== undefined) { const _errs945 = errors; if (!(typeof data731.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1026 = _errs945 === errors; } else { valid1026 = true; } if (valid1026) { if (data731.description !== undefined) { const _errs946 = errors; if (!(typeof data731.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1026 = _errs946 === errors; } else { valid1026 = true; } if (valid1026) { for (const key222 in data731) { if ( key222 !== "type" && key222 !== "name" && key222 !== "label" && key222 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/" + key222.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key222, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1024) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1023 = _errs943 === errors; valid1010 = valid1023; } else if (tag36 === "composed") { const _errs947 = errors; let valid1028 = false; valid1028 = true; var valid1029; if (data731.name !== undefined) { let data744 = data731.name; const _errs948 = errors; if ( !( typeof data744 == "string" && (data744 === "clinVar" || data744 === "confidenceInterval" || data744 === "gene" || data744 === "genotype" || data744 === "genotype_maternal" || data744 === "genotype_paternal" || data744 === "gnomAdAf" || data744 === "hpo" || data744 === "inheritancePattern" || data744 === "locus" || data744 === "spanningReads" || data744 === "vipC" || data744 === "vipCS" || data744 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties .sorts.optionalProperties.str.elements.properties .orders.elements.properties.field.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1029 = _errs948 === errors; } else { valid1029 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1029) { var valid1030; if (data731.label !== undefined) { const _errs949 = errors; if (!(typeof data731.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1030 = _errs949 === errors; } else { valid1030 = true; } if (valid1030) { if (data731.description !== undefined) { const _errs950 = errors; if (!(typeof data731.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1030 = _errs950 === errors; } else { valid1030 = true; } if (valid1030) { for (const key223 in data731) { if ( key223 !== "type" && key223 !== "name" && key223 !== "label" && key223 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/" + key223.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key223, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1028) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1027 = _errs947 === errors; valid1010 = valid1027; } else if (tag36 === "group") { const _errs951 = errors; let valid1032 = false; valid1032 = true; var valid1033; if (data731.fields !== undefined) { let data747 = data731.fields; const _errs952 = errors; let valid1034 = false; if (!valid1034) { if (Array.isArray(data747)) { var valid1035 = true; const len48 = data747.length; for (let i48 = 0; i48 < len48; i48++) { let data748 = data747[i48]; const _errs953 = errors; let valid1036 = false; if ( data748 && typeof data748 == "object" && !Array.isArray(data748) ) { const tag37 = data748.type; if (tag37 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag37, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag37 == "string") { if (tag37 === "fixed") { const _errs954 = errors; let valid1038 = false; valid1038 = true; var valid1039; if (data748.name !== undefined) { let data749 = data748.name; const _errs955 = errors; if ( !( typeof data749 == "string" && (data749 === "chrom" || data749 === "pos" || data749 === "id" || data749 === "ref" || data749 === "alt" || data749 === "qual" || data749 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.str.elements .properties.orders.elements .properties.field.mapping.group .properties.fields.elements.mapping .fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1039 = _errs955 === errors; } else { valid1039 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1039) { var valid1040; if (data748.label !== undefined) { const _errs956 = errors; if (!(typeof data748.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1040 = _errs956 === errors; } else { valid1040 = true; } if (valid1040) { if (data748.description !== undefined) { const _errs957 = errors; if ( !(typeof data748.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1040 = _errs957 === errors; } else { valid1040 = true; } if (valid1040) { for (const key224 in data748) { if ( key224 !== "type" && key224 !== "name" && key224 !== "label" && key224 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/" + key224 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key224, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1038) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1037 = _errs954 === errors; valid1036 = valid1037; } else if (tag37 === "info") { const _errs958 = errors; let valid1042 = false; valid1042 = true; var valid1043; if (data748.name !== undefined) { const _errs959 = errors; if (!(typeof data748.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1043 = _errs959 === errors; } else { valid1043 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1043) { var valid1044; if (data748.label !== undefined) { const _errs960 = errors; if (!(typeof data748.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1044 = _errs960 === errors; } else { valid1044 = true; } if (valid1044) { if (data748.description !== undefined) { const _errs961 = errors; if ( !(typeof data748.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1044 = _errs961 === errors; } else { valid1044 = true; } if (valid1044) { for (const key225 in data748) { if ( key225 !== "type" && key225 !== "name" && key225 !== "label" && key225 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/" + key225 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key225, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1042) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1041 = _errs958 === errors; valid1036 = valid1041; } else if (tag37 === "format") { const _errs962 = errors; let valid1046 = false; valid1046 = true; var valid1047; if (data748.name !== undefined) { const _errs963 = errors; if (!(typeof data748.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1047 = _errs963 === errors; } else { valid1047 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1047) { var valid1048; if (data748.label !== undefined) { const _errs964 = errors; if (!(typeof data748.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1048 = _errs964 === errors; } else { valid1048 = true; } if (valid1048) { if (data748.description !== undefined) { const _errs965 = errors; if ( !(typeof data748.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1048 = _errs965 === errors; } else { valid1048 = true; } if (valid1048) { for (const key226 in data748) { if ( key226 !== "type" && key226 !== "name" && key226 !== "label" && key226 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/" + key226 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key226, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1046) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1045 = _errs962 === errors; valid1036 = valid1045; } else if (tag37 === "genotype") { const _errs966 = errors; let valid1050 = false; valid1050 = true; var valid1051; if (data748.name !== undefined) { const _errs967 = errors; if (!(typeof data748.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1051 = _errs967 === errors; } else { valid1051 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1051) { var valid1052; if (data748.label !== undefined) { const _errs968 = errors; if (!(typeof data748.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1052 = _errs968 === errors; } else { valid1052 = true; } if (valid1052) { if (data748.description !== undefined) { const _errs969 = errors; if ( !(typeof data748.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1052 = _errs969 === errors; } else { valid1052 = true; } if (valid1052) { for (const key227 in data748) { if ( key227 !== "type" && key227 !== "name" && key227 !== "label" && key227 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/" + key227 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key227, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1050) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1049 = _errs966 === errors; valid1036 = valid1049; } else if (tag37 === "composed") { const _errs970 = errors; let valid1054 = false; valid1054 = true; var valid1055; if (data748.name !== undefined) { let data761 = data748.name; const _errs971 = errors; if ( !( typeof data761 == "string" && (data761 === "clinVar" || data761 === "gene" || data761 === "genotype" || data761 === "gnomAdAf" || data761 === "hpo" || data761 === "inheritancePattern" || data761 === "locus" || data761 === "ref" || data761 === "vipC" || data761 === "vipCS" || data761 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.str.elements .properties.orders.elements .properties.field.mapping.group .properties.fields.elements.mapping .composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1055 = _errs971 === errors; } else { valid1055 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1055) { var valid1056; if (data748.label !== undefined) { const _errs972 = errors; if (!(typeof data748.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1056 = _errs972 === errors; } else { valid1056 = true; } if (valid1056) { if (data748.description !== undefined) { const _errs973 = errors; if ( !(typeof data748.description == "string") ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1056 = _errs973 === errors; } else { valid1056 = true; } if (valid1056) { for (const key228 in data748) { if ( key228 !== "type" && key228 !== "name" && key228 !== "label" && key228 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/" + key228 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key228, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1054) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1053 = _errs970 === errors; valid1036 = valid1053; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag37, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag37, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1036) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields/" + i48, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1035 = _errs953 === errors; if (!valid1035) { break; } } valid1034 = valid1035; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/fields", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1033 = _errs952 === errors; } else { valid1033 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1033) { for (const key229 in data731) { if (key229 !== "type" && key229 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/" + key229.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key229, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1032) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1031 = _errs951 === errors; valid1010 = valid1031; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag36 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag36 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1010) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1009 = _errs930 === errors; } else { valid1009 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid1009) { for (const key230 in data729) { if (key230 !== "direction" && key230 !== "field") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47 + "/" + key230.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key230 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1008) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders/" + i47, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1007 = _errs928 === errors; if (!valid1007) { break; } } valid1006 = valid1007; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/orders", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1005 = _errs927 === errors; } else { valid1005 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid1005) { for (const key231 in data726) { if (key231 !== "selected" && key231 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46 + "/" + key231.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements", keyword: "properties", params: { error: "additional", additionalProperty: key231 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1004) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str/" + i46, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1003 = _errs925 === errors; if (!valid1003) { break; } } valid1002 = valid1003; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/str", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid885 = _errs924 === errors; } else { valid885 = true; } if (valid885) { if (data646.sv !== undefined) { let data764 = data646.sv; const _errs974 = errors; let valid1060 = false; if (!valid1060) { if (Array.isArray(data764)) { var valid1061 = true; const len49 = data764.length; for (let i49 = 0; i49 < len49; i49++) { let data765 = data764[i49]; const _errs975 = errors; let valid1062 = false; if (data765 && typeof data765 == "object" && !Array.isArray(data765)) { valid1062 = true; var valid1063; if (data765.selected !== undefined) { const _errs976 = errors; if (!(typeof data765.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/selected", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid1063 = _errs976 === errors; } else { valid1063 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/selected", keyword: "properties", params: { error: "missing", missingProperty: "selected" }, message: "must have property 'selected'", }, ]; return false; } if (valid1063) { if (data765.orders !== undefined) { let data767 = data765.orders; const _errs977 = errors; let valid1064 = false; if (!valid1064) { if (Array.isArray(data767)) { var valid1065 = true; const len50 = data767.length; for (let i50 = 0; i50 < len50; i50++) { let data768 = data767[i50]; const _errs978 = errors; let valid1066 = false; if (data768 && typeof data768 == "object" && !Array.isArray(data768)) { valid1066 = true; var valid1067; if (data768.direction !== undefined) { let data769 = data768.direction; const _errs979 = errors; if ( !( typeof data769 == "string" && (data769 === "asc" || data769 === "desc") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/direction", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/direction/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties.sorts .optionalProperties.sv.elements.properties.orders.elements .properties.direction.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1067 = _errs979 === errors; } else { valid1067 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/direction", keyword: "properties", params: { error: "missing", missingProperty: "direction" }, message: "must have property 'direction'", }, ]; return false; } if (valid1067) { if (data768.field !== undefined) { let data770 = data768.field; const _errs980 = errors; let valid1068 = false; if ( data770 && typeof data770 == "object" && !Array.isArray(data770) ) { const tag38 = data770.type; if (tag38 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag38 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag38 == "string") { if (tag38 === "fixed") { const _errs981 = errors; let valid1070 = false; valid1070 = true; var valid1071; if (data770.name !== undefined) { let data771 = data770.name; const _errs982 = errors; if ( !( typeof data771 == "string" && (data771 === "chrom" || data771 === "pos" || data771 === "id" || data771 === "ref" || data771 === "alt" || data771 === "qual" || data771 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties .sorts.optionalProperties.sv.elements.properties .orders.elements.properties.field.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1071 = _errs982 === errors; } else { valid1071 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1071) { var valid1072; if (data770.label !== undefined) { const _errs983 = errors; if (!(typeof data770.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1072 = _errs983 === errors; } else { valid1072 = true; } if (valid1072) { if (data770.description !== undefined) { const _errs984 = errors; if (!(typeof data770.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1072 = _errs984 === errors; } else { valid1072 = true; } if (valid1072) { for (const key232 in data770) { if ( key232 !== "type" && key232 !== "name" && key232 !== "label" && key232 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/" + key232 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key232, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1070) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1069 = _errs981 === errors; valid1068 = valid1069; } else if (tag38 === "info") { const _errs985 = errors; let valid1074 = false; valid1074 = true; var valid1075; if (data770.name !== undefined) { const _errs986 = errors; if (!(typeof data770.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1075 = _errs986 === errors; } else { valid1075 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1075) { var valid1076; if (data770.label !== undefined) { const _errs987 = errors; if (!(typeof data770.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1076 = _errs987 === errors; } else { valid1076 = true; } if (valid1076) { if (data770.description !== undefined) { const _errs988 = errors; if (!(typeof data770.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1076 = _errs988 === errors; } else { valid1076 = true; } if (valid1076) { for (const key233 in data770) { if ( key233 !== "type" && key233 !== "name" && key233 !== "label" && key233 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/" + key233 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key233, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1074) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1073 = _errs985 === errors; valid1068 = valid1073; } else if (tag38 === "format") { const _errs989 = errors; let valid1078 = false; valid1078 = true; var valid1079; if (data770.name !== undefined) { const _errs990 = errors; if (!(typeof data770.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1079 = _errs990 === errors; } else { valid1079 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1079) { var valid1080; if (data770.label !== undefined) { const _errs991 = errors; if (!(typeof data770.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1080 = _errs991 === errors; } else { valid1080 = true; } if (valid1080) { if (data770.description !== undefined) { const _errs992 = errors; if (!(typeof data770.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1080 = _errs992 === errors; } else { valid1080 = true; } if (valid1080) { for (const key234 in data770) { if ( key234 !== "type" && key234 !== "name" && key234 !== "label" && key234 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/" + key234 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key234, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1078) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1077 = _errs989 === errors; valid1068 = valid1077; } else if (tag38 === "genotype") { const _errs993 = errors; let valid1082 = false; valid1082 = true; var valid1083; if (data770.name !== undefined) { const _errs994 = errors; if (!(typeof data770.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1083 = _errs994 === errors; } else { valid1083 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1083) { var valid1084; if (data770.label !== undefined) { const _errs995 = errors; if (!(typeof data770.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1084 = _errs995 === errors; } else { valid1084 = true; } if (valid1084) { if (data770.description !== undefined) { const _errs996 = errors; if (!(typeof data770.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1084 = _errs996 === errors; } else { valid1084 = true; } if (valid1084) { for (const key235 in data770) { if ( key235 !== "type" && key235 !== "name" && key235 !== "label" && key235 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/" + key235 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key235, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1082) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1081 = _errs993 === errors; valid1068 = valid1081; } else if (tag38 === "composed") { const _errs997 = errors; let valid1086 = false; valid1086 = true; var valid1087; if (data770.name !== undefined) { let data783 = data770.name; const _errs998 = errors; if ( !( typeof data783 == "string" && (data783 === "clinVar" || data783 === "confidenceInterval" || data783 === "gene" || data783 === "genotype" || data783 === "genotype_maternal" || data783 === "genotype_paternal" || data783 === "gnomAdAf" || data783 === "hpo" || data783 === "inheritancePattern" || data783 === "locus" || data783 === "spanningReads" || data783 === "vipC" || data783 === "vipCS" || data783 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants.optionalProperties .sorts.optionalProperties.sv.elements.properties .orders.elements.properties.field.mapping .composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1087 = _errs998 === errors; } else { valid1087 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1087) { var valid1088; if (data770.label !== undefined) { const _errs999 = errors; if (!(typeof data770.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1088 = _errs999 === errors; } else { valid1088 = true; } if (valid1088) { if (data770.description !== undefined) { const _errs1000 = errors; if (!(typeof data770.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1088 = _errs1000 === errors; } else { valid1088 = true; } if (valid1088) { for (const key236 in data770) { if ( key236 !== "type" && key236 !== "name" && key236 !== "label" && key236 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/" + key236 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key236, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1086) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1085 = _errs997 === errors; valid1068 = valid1085; } else if (tag38 === "group") { const _errs1001 = errors; let valid1090 = false; valid1090 = true; var valid1091; if (data770.fields !== undefined) { let data786 = data770.fields; const _errs1002 = errors; let valid1092 = false; if (!valid1092) { if (Array.isArray(data786)) { var valid1093 = true; const len51 = data786.length; for (let i51 = 0; i51 < len51; i51++) { let data787 = data786[i51]; const _errs1003 = errors; let valid1094 = false; if ( data787 && typeof data787 == "object" && !Array.isArray(data787) ) { const tag39 = data787.type; if (tag39 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag39, }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag39 == "string") { if (tag39 === "fixed") { const _errs1004 = errors; let valid1096 = false; valid1096 = true; var valid1097; if (data787.name !== undefined) { let data788 = data787.name; const _errs1005 = errors; if ( !( typeof data788 == "string" && (data788 === "chrom" || data788 === "pos" || data788 === "id" || data788 === "ref" || data788 === "alt" || data788 === "qual" || data788 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.sv.elements .properties.orders.elements .properties.field.mapping.group .properties.fields.elements .mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1097 = _errs1005 === errors; } else { valid1097 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1097) { var valid1098; if (data787.label !== undefined) { const _errs1006 = errors; if (!(typeof data787.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1098 = _errs1006 === errors; } else { valid1098 = true; } if (valid1098) { if (data787.description !== undefined) { const _errs1007 = errors; if ( !( typeof data787.description == "string" ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1098 = _errs1007 === errors; } else { valid1098 = true; } if (valid1098) { for (const key237 in data787) { if ( key237 !== "type" && key237 !== "name" && key237 !== "label" && key237 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/" + key237 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key237, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1096) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false, }, message: "must be object", }, ]; return false; } var valid1095 = _errs1004 === errors; valid1094 = valid1095; } else if (tag39 === "info") { const _errs1008 = errors; let valid1100 = false; valid1100 = true; var valid1101; if (data787.name !== undefined) { const _errs1009 = errors; if (!(typeof data787.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1101 = _errs1009 === errors; } else { valid1101 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1101) { var valid1102; if (data787.label !== undefined) { const _errs1010 = errors; if (!(typeof data787.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1102 = _errs1010 === errors; } else { valid1102 = true; } if (valid1102) { if (data787.description !== undefined) { const _errs1011 = errors; if ( !( typeof data787.description == "string" ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1102 = _errs1011 === errors; } else { valid1102 = true; } if (valid1102) { for (const key238 in data787) { if ( key238 !== "type" && key238 !== "name" && key238 !== "label" && key238 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/" + key238 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key238, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1100) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false, }, message: "must be object", }, ]; return false; } var valid1099 = _errs1008 === errors; valid1094 = valid1099; } else if (tag39 === "format") { const _errs1012 = errors; let valid1104 = false; valid1104 = true; var valid1105; if (data787.name !== undefined) { const _errs1013 = errors; if (!(typeof data787.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1105 = _errs1013 === errors; } else { valid1105 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1105) { var valid1106; if (data787.label !== undefined) { const _errs1014 = errors; if (!(typeof data787.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1106 = _errs1014 === errors; } else { valid1106 = true; } if (valid1106) { if (data787.description !== undefined) { const _errs1015 = errors; if ( !( typeof data787.description == "string" ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1106 = _errs1015 === errors; } else { valid1106 = true; } if (valid1106) { for (const key239 in data787) { if ( key239 !== "type" && key239 !== "name" && key239 !== "label" && key239 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/" + key239 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key239, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1104) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false, }, message: "must be object", }, ]; return false; } var valid1103 = _errs1012 === errors; valid1094 = valid1103; } else if (tag39 === "genotype") { const _errs1016 = errors; let valid1108 = false; valid1108 = true; var valid1109; if (data787.name !== undefined) { const _errs1017 = errors; if (!(typeof data787.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1109 = _errs1017 === errors; } else { valid1109 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1109) { var valid1110; if (data787.label !== undefined) { const _errs1018 = errors; if (!(typeof data787.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1110 = _errs1018 === errors; } else { valid1110 = true; } if (valid1110) { if (data787.description !== undefined) { const _errs1019 = errors; if ( !( typeof data787.description == "string" ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1110 = _errs1019 === errors; } else { valid1110 = true; } if (valid1110) { for (const key240 in data787) { if ( key240 !== "type" && key240 !== "name" && key240 !== "label" && key240 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/" + key240 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key240, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1108) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false, }, message: "must be object", }, ]; return false; } var valid1107 = _errs1016 === errors; valid1094 = valid1107; } else if (tag39 === "composed") { const _errs1020 = errors; let valid1112 = false; valid1112 = true; var valid1113; if (data787.name !== undefined) { let data800 = data787.name; const _errs1021 = errors; if ( !( typeof data800 == "string" && (data800 === "clinVar" || data800 === "gene" || data800 === "genotype" || data800 === "gnomAdAf" || data800 === "hpo" || data800 === "inheritancePattern" || data800 === "locus" || data800 === "ref" || data800 === "vipC" || data800 === "vipCS" || data800 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/name", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variants .optionalProperties.sorts .optionalProperties.sv.elements .properties.orders.elements .properties.field.mapping.group .properties.fields.elements .mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1113 = _errs1021 === errors; } else { valid1113 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name", }, message: "must have property 'name'", }, ]; return false; } if (valid1113) { var valid1114; if (data787.label !== undefined) { const _errs1022 = errors; if (!(typeof data787.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/label", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1114 = _errs1022 === errors; } else { valid1114 = true; } if (valid1114) { if (data787.description !== undefined) { const _errs1023 = errors; if ( !( typeof data787.description == "string" ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/description", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false, }, message: "must be string", }, ]; return false; } var valid1114 = _errs1023 === errors; } else { valid1114 = true; } if (valid1114) { for (const key241 in data787) { if ( key241 !== "type" && key241 !== "name" && key241 !== "label" && key241 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/" + key241 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key241, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1112) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false, }, message: "must be object", }, ]; return false; } var valid1111 = _errs1020 === errors; valid1094 = valid1111; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag39, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51 + "/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag39, }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1094) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields/" + i51, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1093 = _errs1003 === errors; if (!valid1093) { break; } } valid1092 = valid1093; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/fields", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1091 = _errs1002 === errors; } else { valid1091 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1091) { for (const key242 in data770) { if (key242 !== "type" && key242 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/" + key242.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key242, }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1090) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1089 = _errs1001 === errors; valid1068 = valid1089; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag38, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field/type", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag38 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1068) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/field", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1067 = _errs980 === errors; } else { valid1067 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties/field", keyword: "properties", params: { error: "missing", missingProperty: "field" }, message: "must have property 'field'", }, ]; return false; } if (valid1067) { for (const key243 in data768) { if (key243 !== "direction" && key243 !== "field") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50 + "/" + key243.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements", keyword: "properties", params: { error: "additional", additionalProperty: key243 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1066) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders/" + i50, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1065 = _errs978 === errors; if (!valid1065) { break; } } valid1064 = valid1065; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/orders", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1063 = _errs977 === errors; } else { valid1063 = false; validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties/orders", keyword: "properties", params: { error: "missing", missingProperty: "orders" }, message: "must have property 'orders'", }, ]; return false; } if (valid1063) { for (const key244 in data765) { if (key244 !== "selected" && key244 !== "orders") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49 + "/" + key244.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key244 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1062) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv/" + i49, schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1061 = _errs975 === errors; if (!valid1061) { break; } } valid1060 = valid1061; } else { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/sv", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid885 = _errs974 === errors; } else { valid885 = true; } if (valid885) { for (const key245 in data646) { if (key245 !== "all" && key245 !== "snv" && key245 !== "str" && key245 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variants/sorts/" + key245.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/sorts", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key245 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid883) { validate57.errors = [ { instancePath: instancePath + "/variants/sorts", schemaPath: "/properties/variants/optionalProperties/sorts/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid787 = _errs823 === errors; } else { valid787 = true; } if (valid787) { if (data419.recordsPerPage !== undefined) { let data803 = data419.recordsPerPage; const _errs1024 = errors; let valid1118 = false; if (data803 && typeof data803 == "object" && !Array.isArray(data803)) { valid1118 = true; var valid1120; if (data803.all !== undefined) { let data804 = data803.all; const _errs1025 = errors; let valid1121 = false; if (!valid1121) { if (Array.isArray(data804)) { var valid1122 = true; const len52 = data804.length; for (let i52 = 0; i52 < len52; i52++) { let data805 = data804[i52]; const _errs1026 = errors; let valid1123 = false; if (data805 && typeof data805 == "object" && !Array.isArray(data805)) { valid1123 = true; var valid1124; if (data805.number !== undefined) { let data806 = data805.number; const _errs1027 = errors; if ( !( typeof data806 == "number" && isFinite(data806) && !(data806 % 1) && data806 >= 0 && data806 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/all/" + i52 + "/number", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid1124 = _errs1027 === errors; } else { valid1124 = false; validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/all/" + i52, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid1124) { var valid1125; if (data805.selected !== undefined) { const _errs1028 = errors; if (!(typeof data805.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/all/" + i52 + "/selected", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid1125 = _errs1028 === errors; } else { valid1125 = true; } if (valid1125) { for (const key246 in data805) { if (key246 !== "number" && key246 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/all/" + i52 + "/" + key246.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/all/elements", keyword: "properties", params: { error: "additional", additionalProperty: key246 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1123) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/all/" + i52, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/all/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1122 = _errs1026 === errors; if (!valid1122) { break; } } valid1121 = valid1122; } else { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/all", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1120 = _errs1025 === errors; } else { valid1120 = true; } if (valid1120) { if (data803.snv !== undefined) { let data808 = data803.snv; const _errs1029 = errors; let valid1126 = false; if (!valid1126) { if (Array.isArray(data808)) { var valid1127 = true; const len53 = data808.length; for (let i53 = 0; i53 < len53; i53++) { let data809 = data808[i53]; const _errs1030 = errors; let valid1128 = false; if (data809 && typeof data809 == "object" && !Array.isArray(data809)) { valid1128 = true; var valid1129; if (data809.number !== undefined) { let data810 = data809.number; const _errs1031 = errors; if ( !( typeof data810 == "number" && isFinite(data810) && !(data810 % 1) && data810 >= 0 && data810 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/snv/" + i53 + "/number", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid1129 = _errs1031 === errors; } else { valid1129 = false; validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/snv/" + i53, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid1129) { var valid1130; if (data809.selected !== undefined) { const _errs1032 = errors; if (!(typeof data809.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/snv/" + i53 + "/selected", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid1130 = _errs1032 === errors; } else { valid1130 = true; } if (valid1130) { for (const key247 in data809) { if (key247 !== "number" && key247 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/snv/" + i53 + "/" + key247.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key247 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1128) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/snv/" + i53, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1127 = _errs1030 === errors; if (!valid1127) { break; } } valid1126 = valid1127; } else { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/snv", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1120 = _errs1029 === errors; } else { valid1120 = true; } if (valid1120) { if (data803.str !== undefined) { let data812 = data803.str; const _errs1033 = errors; let valid1131 = false; if (!valid1131) { if (Array.isArray(data812)) { var valid1132 = true; const len54 = data812.length; for (let i54 = 0; i54 < len54; i54++) { let data813 = data812[i54]; const _errs1034 = errors; let valid1133 = false; if (data813 && typeof data813 == "object" && !Array.isArray(data813)) { valid1133 = true; var valid1134; if (data813.number !== undefined) { let data814 = data813.number; const _errs1035 = errors; if ( !( typeof data814 == "number" && isFinite(data814) && !(data814 % 1) && data814 >= 0 && data814 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/str/" + i54 + "/number", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid1134 = _errs1035 === errors; } else { valid1134 = false; validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/str/" + i54, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid1134) { var valid1135; if (data813.selected !== undefined) { const _errs1036 = errors; if (!(typeof data813.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/str/" + i54 + "/selected", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid1135 = _errs1036 === errors; } else { valid1135 = true; } if (valid1135) { for (const key248 in data813) { if (key248 !== "number" && key248 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/str/" + i54 + "/" + key248.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/str/elements", keyword: "properties", params: { error: "additional", additionalProperty: key248 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1133) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/str/" + i54, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/str/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1132 = _errs1034 === errors; if (!valid1132) { break; } } valid1131 = valid1132; } else { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/str", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1120 = _errs1033 === errors; } else { valid1120 = true; } if (valid1120) { if (data803.sv !== undefined) { let data816 = data803.sv; const _errs1037 = errors; let valid1136 = false; if (!valid1136) { if (Array.isArray(data816)) { var valid1137 = true; const len55 = data816.length; for (let i55 = 0; i55 < len55; i55++) { let data817 = data816[i55]; const _errs1038 = errors; let valid1138 = false; if (data817 && typeof data817 == "object" && !Array.isArray(data817)) { valid1138 = true; var valid1139; if (data817.number !== undefined) { let data818 = data817.number; const _errs1039 = errors; if ( !( typeof data818 == "number" && isFinite(data818) && !(data818 % 1) && data818 >= 0 && data818 <= 65535 ) ) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/sv/" + i55 + "/number", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/properties/number/type", keyword: "type", params: { type: "uint16", nullable: false }, message: "must be uint16", }, ]; return false; } var valid1139 = _errs1039 === errors; } else { valid1139 = false; validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/sv/" + i55, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/properties/number", keyword: "properties", params: { error: "missing", missingProperty: "number" }, message: "must have property 'number'", }, ]; return false; } if (valid1139) { var valid1140; if (data817.selected !== undefined) { const _errs1040 = errors; if (!(typeof data817.selected == "boolean")) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/sv/" + i55 + "/selected", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/optionalProperties/selected/type", keyword: "type", params: { type: "boolean", nullable: false }, message: "must be boolean", }, ]; return false; } var valid1140 = _errs1040 === errors; } else { valid1140 = true; } if (valid1140) { for (const key249 in data817) { if (key249 !== "number" && key249 !== "selected") { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/sv/" + i55 + "/" + key249.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements", keyword: "properties", params: { error: "additional", additionalProperty: key249 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1138) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/sv/" + i55, schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1137 = _errs1038 === errors; if (!valid1137) { break; } } valid1136 = valid1137; } else { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/sv", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1120 = _errs1037 === errors; } else { valid1120 = true; } if (valid1120) { for (const key250 in data803) { if (key250 !== "all" && key250 !== "snv" && key250 !== "str" && key250 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage/" + key250.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants/optionalProperties/recordsPerPage", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key250 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid1118) { validate57.errors = [ { instancePath: instancePath + "/variants/recordsPerPage", schemaPath: "/properties/variants/optionalProperties/recordsPerPage/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid787 = _errs1024 === errors; } else { valid787 = true; } if (valid787) { for (const key251 in data419) { if ( key251 !== "cells" && key251 !== "filters" && key251 !== "sorts" && key251 !== "recordsPerPage" ) { validate57.errors = [ { instancePath: instancePath + "/variants/" + key251.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variants", keyword: "properties", params: { error: "additional", additionalProperty: key251 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid582) { validate57.errors = [ { instancePath: instancePath + "/variants", schemaPath: "/properties/variants/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs532 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/variants", keyword: "properties", params: { error: "missing", missingProperty: "variants" }, message: "must have property 'variants'", }, ]; return false; } if (valid1) { if (data.sample_variant !== undefined) { let data820 = data.sample_variant; const _errs1041 = errors; let valid1141 = false; if (data820 && typeof data820 == "object" && !Array.isArray(data820)) { valid1141 = true; var valid1142; if (data820.cells !== undefined) { let data821 = data820.cells; const _errs1042 = errors; let valid1143 = false; if (data821 && typeof data821 == "object" && !Array.isArray(data821)) { valid1143 = true; var valid1145; if (data821.all !== undefined) { let data822 = data821.all; const _errs1043 = errors; let valid1146 = false; if (!valid1146) { if (Array.isArray(data822)) { var valid1147 = true; const len56 = data822.length; for (let i56 = 0; i56 < len56; i56++) { let data823 = data822[i56]; const _errs1044 = errors; let valid1148 = false; if (data823 && typeof data823 == "object" && !Array.isArray(data823)) { const tag40 = data823.type; if (tag40 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag40 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag40 == "string") { if (tag40 === "fixed") { const _errs1045 = errors; let valid1150 = false; valid1150 = true; var valid1151; if (data823.name !== undefined) { let data824 = data823.name; const _errs1046 = errors; if ( !( typeof data824 == "string" && (data824 === "chrom" || data824 === "pos" || data824 === "id" || data824 === "ref" || data824 === "alt" || data824 === "qual" || data824 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties.all .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1151 = _errs1046 === errors; } else { valid1151 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1151) { var valid1152; if (data823.label !== undefined) { const _errs1047 = errors; if (!(typeof data823.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1152 = _errs1047 === errors; } else { valid1152 = true; } if (valid1152) { if (data823.description !== undefined) { const _errs1048 = errors; if (!(typeof data823.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1152 = _errs1048 === errors; } else { valid1152 = true; } if (valid1152) { for (const key252 in data823) { if ( key252 !== "type" && key252 !== "name" && key252 !== "label" && key252 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/" + key252.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key252 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1150) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1149 = _errs1045 === errors; valid1148 = valid1149; } else if (tag40 === "info") { const _errs1049 = errors; let valid1154 = false; valid1154 = true; var valid1155; if (data823.name !== undefined) { const _errs1050 = errors; if (!(typeof data823.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1155 = _errs1050 === errors; } else { valid1155 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1155) { var valid1156; if (data823.label !== undefined) { const _errs1051 = errors; if (!(typeof data823.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1156 = _errs1051 === errors; } else { valid1156 = true; } if (valid1156) { if (data823.description !== undefined) { const _errs1052 = errors; if (!(typeof data823.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1156 = _errs1052 === errors; } else { valid1156 = true; } if (valid1156) { for (const key253 in data823) { if ( key253 !== "type" && key253 !== "name" && key253 !== "label" && key253 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/" + key253.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key253 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1154) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1153 = _errs1049 === errors; valid1148 = valid1153; } else if (tag40 === "format") { const _errs1053 = errors; let valid1158 = false; valid1158 = true; var valid1159; if (data823.name !== undefined) { const _errs1054 = errors; if (!(typeof data823.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1159 = _errs1054 === errors; } else { valid1159 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1159) { var valid1160; if (data823.label !== undefined) { const _errs1055 = errors; if (!(typeof data823.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1160 = _errs1055 === errors; } else { valid1160 = true; } if (valid1160) { if (data823.description !== undefined) { const _errs1056 = errors; if (!(typeof data823.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1160 = _errs1056 === errors; } else { valid1160 = true; } if (valid1160) { for (const key254 in data823) { if ( key254 !== "type" && key254 !== "name" && key254 !== "label" && key254 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/" + key254.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key254 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1158) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1157 = _errs1053 === errors; valid1148 = valid1157; } else if (tag40 === "genotype") { const _errs1057 = errors; let valid1162 = false; valid1162 = true; var valid1163; if (data823.name !== undefined) { const _errs1058 = errors; if (!(typeof data823.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1163 = _errs1058 === errors; } else { valid1163 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1163) { var valid1164; if (data823.label !== undefined) { const _errs1059 = errors; if (!(typeof data823.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1164 = _errs1059 === errors; } else { valid1164 = true; } if (valid1164) { if (data823.description !== undefined) { const _errs1060 = errors; if (!(typeof data823.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1164 = _errs1060 === errors; } else { valid1164 = true; } if (valid1164) { for (const key255 in data823) { if ( key255 !== "type" && key255 !== "name" && key255 !== "label" && key255 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/" + key255.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key255 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1162) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1161 = _errs1057 === errors; valid1148 = valid1161; } else if (tag40 === "composed") { const _errs1061 = errors; let valid1166 = false; valid1166 = true; var valid1167; if (data823.name !== undefined) { let data836 = data823.name; const _errs1062 = errors; if ( !( typeof data836 == "string" && (data836 === "clinVar" || data836 === "confidenceInterval" || data836 === "gene" || data836 === "genotype" || data836 === "genotype_maternal" || data836 === "genotype_paternal" || data836 === "gnomAdAf" || data836 === "hpo" || data836 === "inheritancePattern" || data836 === "locus" || data836 === "spanningReads" || data836 === "vipC" || data836 === "vipCS" || data836 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties.all .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1167 = _errs1062 === errors; } else { valid1167 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1167) { var valid1168; if (data823.label !== undefined) { const _errs1063 = errors; if (!(typeof data823.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1168 = _errs1063 === errors; } else { valid1168 = true; } if (valid1168) { if (data823.description !== undefined) { const _errs1064 = errors; if (!(typeof data823.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1168 = _errs1064 === errors; } else { valid1168 = true; } if (valid1168) { for (const key256 in data823) { if ( key256 !== "type" && key256 !== "name" && key256 !== "label" && key256 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/" + key256.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key256 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1166) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1165 = _errs1061 === errors; valid1148 = valid1165; } else if (tag40 === "group") { const _errs1065 = errors; let valid1170 = false; valid1170 = true; var valid1171; if (data823.fields !== undefined) { let data839 = data823.fields; const _errs1066 = errors; let valid1172 = false; if (!valid1172) { if (Array.isArray(data839)) { var valid1173 = true; const len57 = data839.length; for (let i57 = 0; i57 < len57; i57++) { let data840 = data839[i57]; const _errs1067 = errors; let valid1174 = false; if (data840 && typeof data840 == "object" && !Array.isArray(data840)) { const tag41 = data840.type; if (tag41 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag41 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag41 == "string") { if (tag41 === "fixed") { const _errs1068 = errors; let valid1176 = false; valid1176 = true; var valid1177; if (data840.name !== undefined) { let data841 = data840.name; const _errs1069 = errors; if ( !( typeof data841 == "string" && (data841 === "chrom" || data841 === "pos" || data841 === "id" || data841 === "ref" || data841 === "alt" || data841 === "qual" || data841 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.all.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1177 = _errs1069 === errors; } else { valid1177 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1177) { var valid1178; if (data840.label !== undefined) { const _errs1070 = errors; if (!(typeof data840.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1178 = _errs1070 === errors; } else { valid1178 = true; } if (valid1178) { if (data840.description !== undefined) { const _errs1071 = errors; if (!(typeof data840.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1178 = _errs1071 === errors; } else { valid1178 = true; } if (valid1178) { for (const key257 in data840) { if ( key257 !== "type" && key257 !== "name" && key257 !== "label" && key257 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/" + key257.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key257 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1176) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1175 = _errs1068 === errors; valid1174 = valid1175; } else if (tag41 === "info") { const _errs1072 = errors; let valid1180 = false; valid1180 = true; var valid1181; if (data840.name !== undefined) { const _errs1073 = errors; if (!(typeof data840.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1181 = _errs1073 === errors; } else { valid1181 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1181) { var valid1182; if (data840.label !== undefined) { const _errs1074 = errors; if (!(typeof data840.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1182 = _errs1074 === errors; } else { valid1182 = true; } if (valid1182) { if (data840.description !== undefined) { const _errs1075 = errors; if (!(typeof data840.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1182 = _errs1075 === errors; } else { valid1182 = true; } if (valid1182) { for (const key258 in data840) { if ( key258 !== "type" && key258 !== "name" && key258 !== "label" && key258 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/" + key258.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key258 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1180) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1179 = _errs1072 === errors; valid1174 = valid1179; } else if (tag41 === "format") { const _errs1076 = errors; let valid1184 = false; valid1184 = true; var valid1185; if (data840.name !== undefined) { const _errs1077 = errors; if (!(typeof data840.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1185 = _errs1077 === errors; } else { valid1185 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1185) { var valid1186; if (data840.label !== undefined) { const _errs1078 = errors; if (!(typeof data840.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1186 = _errs1078 === errors; } else { valid1186 = true; } if (valid1186) { if (data840.description !== undefined) { const _errs1079 = errors; if (!(typeof data840.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1186 = _errs1079 === errors; } else { valid1186 = true; } if (valid1186) { for (const key259 in data840) { if ( key259 !== "type" && key259 !== "name" && key259 !== "label" && key259 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/" + key259.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key259 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1184) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1183 = _errs1076 === errors; valid1174 = valid1183; } else if (tag41 === "genotype") { const _errs1080 = errors; let valid1188 = false; valid1188 = true; var valid1189; if (data840.name !== undefined) { const _errs1081 = errors; if (!(typeof data840.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1189 = _errs1081 === errors; } else { valid1189 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1189) { var valid1190; if (data840.label !== undefined) { const _errs1082 = errors; if (!(typeof data840.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1190 = _errs1082 === errors; } else { valid1190 = true; } if (valid1190) { if (data840.description !== undefined) { const _errs1083 = errors; if (!(typeof data840.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1190 = _errs1083 === errors; } else { valid1190 = true; } if (valid1190) { for (const key260 in data840) { if ( key260 !== "type" && key260 !== "name" && key260 !== "label" && key260 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/" + key260.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key260 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1188) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1187 = _errs1080 === errors; valid1174 = valid1187; } else if (tag41 === "composed") { const _errs1084 = errors; let valid1192 = false; valid1192 = true; var valid1193; if (data840.name !== undefined) { let data853 = data840.name; const _errs1085 = errors; if ( !( typeof data853 == "string" && (data853 === "clinVar" || data853 === "gene" || data853 === "genotype" || data853 === "gnomAdAf" || data853 === "hpo" || data853 === "inheritancePattern" || data853 === "locus" || data853 === "ref" || data853 === "vipC" || data853 === "vipCS" || data853 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.all.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1193 = _errs1085 === errors; } else { valid1193 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1193) { var valid1194; if (data840.label !== undefined) { const _errs1086 = errors; if (!(typeof data840.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1194 = _errs1086 === errors; } else { valid1194 = true; } if (valid1194) { if (data840.description !== undefined) { const _errs1087 = errors; if (!(typeof data840.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1194 = _errs1087 === errors; } else { valid1194 = true; } if (valid1194) { for (const key261 in data840) { if ( key261 !== "type" && key261 !== "name" && key261 !== "label" && key261 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/" + key261.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key261 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1192) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1191 = _errs1084 === errors; valid1174 = valid1191; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag41 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag41 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1174) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields/" + i57, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1173 = _errs1067 === errors; if (!valid1173) { break; } } valid1172 = valid1173; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/fields", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1171 = _errs1066 === errors; } else { valid1171 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1171) { for (const key262 in data823) { if (key262 !== "type" && key262 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/" + key262.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key262 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1170) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1169 = _errs1065 === errors; valid1148 = valid1169; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag40 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag40 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1148) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all/" + i56, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1147 = _errs1044 === errors; if (!valid1147) { break; } } valid1146 = valid1147; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/all", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1145 = _errs1043 === errors; } else { valid1145 = true; } if (valid1145) { if (data821.snv !== undefined) { let data856 = data821.snv; const _errs1088 = errors; let valid1196 = false; if (!valid1196) { if (Array.isArray(data856)) { var valid1197 = true; const len58 = data856.length; for (let i58 = 0; i58 < len58; i58++) { let data857 = data856[i58]; const _errs1089 = errors; let valid1198 = false; if (data857 && typeof data857 == "object" && !Array.isArray(data857)) { const tag42 = data857.type; if (tag42 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag42 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag42 == "string") { if (tag42 === "fixed") { const _errs1090 = errors; let valid1200 = false; valid1200 = true; var valid1201; if (data857.name !== undefined) { let data858 = data857.name; const _errs1091 = errors; if ( !( typeof data858 == "string" && (data858 === "chrom" || data858 === "pos" || data858 === "id" || data858 === "ref" || data858 === "alt" || data858 === "qual" || data858 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties.snv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1201 = _errs1091 === errors; } else { valid1201 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1201) { var valid1202; if (data857.label !== undefined) { const _errs1092 = errors; if (!(typeof data857.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1202 = _errs1092 === errors; } else { valid1202 = true; } if (valid1202) { if (data857.description !== undefined) { const _errs1093 = errors; if (!(typeof data857.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1202 = _errs1093 === errors; } else { valid1202 = true; } if (valid1202) { for (const key263 in data857) { if ( key263 !== "type" && key263 !== "name" && key263 !== "label" && key263 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/" + key263.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key263 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1200) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1199 = _errs1090 === errors; valid1198 = valid1199; } else if (tag42 === "info") { const _errs1094 = errors; let valid1204 = false; valid1204 = true; var valid1205; if (data857.name !== undefined) { const _errs1095 = errors; if (!(typeof data857.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1205 = _errs1095 === errors; } else { valid1205 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1205) { var valid1206; if (data857.label !== undefined) { const _errs1096 = errors; if (!(typeof data857.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1206 = _errs1096 === errors; } else { valid1206 = true; } if (valid1206) { if (data857.description !== undefined) { const _errs1097 = errors; if (!(typeof data857.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1206 = _errs1097 === errors; } else { valid1206 = true; } if (valid1206) { for (const key264 in data857) { if ( key264 !== "type" && key264 !== "name" && key264 !== "label" && key264 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/" + key264.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key264 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1204) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1203 = _errs1094 === errors; valid1198 = valid1203; } else if (tag42 === "format") { const _errs1098 = errors; let valid1208 = false; valid1208 = true; var valid1209; if (data857.name !== undefined) { const _errs1099 = errors; if (!(typeof data857.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1209 = _errs1099 === errors; } else { valid1209 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1209) { var valid1210; if (data857.label !== undefined) { const _errs1100 = errors; if (!(typeof data857.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1210 = _errs1100 === errors; } else { valid1210 = true; } if (valid1210) { if (data857.description !== undefined) { const _errs1101 = errors; if (!(typeof data857.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1210 = _errs1101 === errors; } else { valid1210 = true; } if (valid1210) { for (const key265 in data857) { if ( key265 !== "type" && key265 !== "name" && key265 !== "label" && key265 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/" + key265.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key265 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1208) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1207 = _errs1098 === errors; valid1198 = valid1207; } else if (tag42 === "genotype") { const _errs1102 = errors; let valid1212 = false; valid1212 = true; var valid1213; if (data857.name !== undefined) { const _errs1103 = errors; if (!(typeof data857.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1213 = _errs1103 === errors; } else { valid1213 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1213) { var valid1214; if (data857.label !== undefined) { const _errs1104 = errors; if (!(typeof data857.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1214 = _errs1104 === errors; } else { valid1214 = true; } if (valid1214) { if (data857.description !== undefined) { const _errs1105 = errors; if (!(typeof data857.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1214 = _errs1105 === errors; } else { valid1214 = true; } if (valid1214) { for (const key266 in data857) { if ( key266 !== "type" && key266 !== "name" && key266 !== "label" && key266 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/" + key266.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key266 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1212) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1211 = _errs1102 === errors; valid1198 = valid1211; } else if (tag42 === "composed") { const _errs1106 = errors; let valid1216 = false; valid1216 = true; var valid1217; if (data857.name !== undefined) { let data870 = data857.name; const _errs1107 = errors; if ( !( typeof data870 == "string" && (data870 === "clinVar" || data870 === "confidenceInterval" || data870 === "gene" || data870 === "genotype" || data870 === "genotype_maternal" || data870 === "genotype_paternal" || data870 === "gnomAdAf" || data870 === "hpo" || data870 === "inheritancePattern" || data870 === "locus" || data870 === "spanningReads" || data870 === "vipC" || data870 === "vipCS" || data870 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties.snv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1217 = _errs1107 === errors; } else { valid1217 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1217) { var valid1218; if (data857.label !== undefined) { const _errs1108 = errors; if (!(typeof data857.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1218 = _errs1108 === errors; } else { valid1218 = true; } if (valid1218) { if (data857.description !== undefined) { const _errs1109 = errors; if (!(typeof data857.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1218 = _errs1109 === errors; } else { valid1218 = true; } if (valid1218) { for (const key267 in data857) { if ( key267 !== "type" && key267 !== "name" && key267 !== "label" && key267 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/" + key267.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key267 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1216) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1215 = _errs1106 === errors; valid1198 = valid1215; } else if (tag42 === "group") { const _errs1110 = errors; let valid1220 = false; valid1220 = true; var valid1221; if (data857.fields !== undefined) { let data873 = data857.fields; const _errs1111 = errors; let valid1222 = false; if (!valid1222) { if (Array.isArray(data873)) { var valid1223 = true; const len59 = data873.length; for (let i59 = 0; i59 < len59; i59++) { let data874 = data873[i59]; const _errs1112 = errors; let valid1224 = false; if (data874 && typeof data874 == "object" && !Array.isArray(data874)) { const tag43 = data874.type; if (tag43 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag43 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag43 == "string") { if (tag43 === "fixed") { const _errs1113 = errors; let valid1226 = false; valid1226 = true; var valid1227; if (data874.name !== undefined) { let data875 = data874.name; const _errs1114 = errors; if ( !( typeof data875 == "string" && (data875 === "chrom" || data875 === "pos" || data875 === "id" || data875 === "ref" || data875 === "alt" || data875 === "qual" || data875 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.snv.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1227 = _errs1114 === errors; } else { valid1227 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1227) { var valid1228; if (data874.label !== undefined) { const _errs1115 = errors; if (!(typeof data874.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1228 = _errs1115 === errors; } else { valid1228 = true; } if (valid1228) { if (data874.description !== undefined) { const _errs1116 = errors; if (!(typeof data874.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1228 = _errs1116 === errors; } else { valid1228 = true; } if (valid1228) { for (const key268 in data874) { if ( key268 !== "type" && key268 !== "name" && key268 !== "label" && key268 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/" + key268.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key268, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1226) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1225 = _errs1113 === errors; valid1224 = valid1225; } else if (tag43 === "info") { const _errs1117 = errors; let valid1230 = false; valid1230 = true; var valid1231; if (data874.name !== undefined) { const _errs1118 = errors; if (!(typeof data874.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1231 = _errs1118 === errors; } else { valid1231 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1231) { var valid1232; if (data874.label !== undefined) { const _errs1119 = errors; if (!(typeof data874.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1232 = _errs1119 === errors; } else { valid1232 = true; } if (valid1232) { if (data874.description !== undefined) { const _errs1120 = errors; if (!(typeof data874.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1232 = _errs1120 === errors; } else { valid1232 = true; } if (valid1232) { for (const key269 in data874) { if ( key269 !== "type" && key269 !== "name" && key269 !== "label" && key269 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/" + key269.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key269, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1230) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1229 = _errs1117 === errors; valid1224 = valid1229; } else if (tag43 === "format") { const _errs1121 = errors; let valid1234 = false; valid1234 = true; var valid1235; if (data874.name !== undefined) { const _errs1122 = errors; if (!(typeof data874.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1235 = _errs1122 === errors; } else { valid1235 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1235) { var valid1236; if (data874.label !== undefined) { const _errs1123 = errors; if (!(typeof data874.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1236 = _errs1123 === errors; } else { valid1236 = true; } if (valid1236) { if (data874.description !== undefined) { const _errs1124 = errors; if (!(typeof data874.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1236 = _errs1124 === errors; } else { valid1236 = true; } if (valid1236) { for (const key270 in data874) { if ( key270 !== "type" && key270 !== "name" && key270 !== "label" && key270 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/" + key270.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key270, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1234) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1233 = _errs1121 === errors; valid1224 = valid1233; } else if (tag43 === "genotype") { const _errs1125 = errors; let valid1238 = false; valid1238 = true; var valid1239; if (data874.name !== undefined) { const _errs1126 = errors; if (!(typeof data874.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1239 = _errs1126 === errors; } else { valid1239 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1239) { var valid1240; if (data874.label !== undefined) { const _errs1127 = errors; if (!(typeof data874.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1240 = _errs1127 === errors; } else { valid1240 = true; } if (valid1240) { if (data874.description !== undefined) { const _errs1128 = errors; if (!(typeof data874.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1240 = _errs1128 === errors; } else { valid1240 = true; } if (valid1240) { for (const key271 in data874) { if ( key271 !== "type" && key271 !== "name" && key271 !== "label" && key271 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/" + key271.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key271, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1238) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1237 = _errs1125 === errors; valid1224 = valid1237; } else if (tag43 === "composed") { const _errs1129 = errors; let valid1242 = false; valid1242 = true; var valid1243; if (data874.name !== undefined) { let data887 = data874.name; const _errs1130 = errors; if ( !( typeof data887 == "string" && (data887 === "clinVar" || data887 === "gene" || data887 === "genotype" || data887 === "gnomAdAf" || data887 === "hpo" || data887 === "inheritancePattern" || data887 === "locus" || data887 === "ref" || data887 === "vipC" || data887 === "vipCS" || data887 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.snv.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1243 = _errs1130 === errors; } else { valid1243 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1243) { var valid1244; if (data874.label !== undefined) { const _errs1131 = errors; if (!(typeof data874.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1244 = _errs1131 === errors; } else { valid1244 = true; } if (valid1244) { if (data874.description !== undefined) { const _errs1132 = errors; if (!(typeof data874.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1244 = _errs1132 === errors; } else { valid1244 = true; } if (valid1244) { for (const key272 in data874) { if ( key272 !== "type" && key272 !== "name" && key272 !== "label" && key272 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/" + key272.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key272, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1242) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1241 = _errs1129 === errors; valid1224 = valid1241; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag43 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag43 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1224) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields/" + i59, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1223 = _errs1112 === errors; if (!valid1223) { break; } } valid1222 = valid1223; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/fields", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1221 = _errs1111 === errors; } else { valid1221 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1221) { for (const key273 in data857) { if (key273 !== "type" && key273 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/" + key273.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key273 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1220) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1219 = _errs1110 === errors; valid1198 = valid1219; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag42 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag42 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1198) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv/" + i58, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1197 = _errs1089 === errors; if (!valid1197) { break; } } valid1196 = valid1197; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/snv", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1145 = _errs1088 === errors; } else { valid1145 = true; } if (valid1145) { if (data821.str !== undefined) { let data890 = data821.str; const _errs1133 = errors; let valid1246 = false; if (!valid1246) { if (Array.isArray(data890)) { var valid1247 = true; const len60 = data890.length; for (let i60 = 0; i60 < len60; i60++) { let data891 = data890[i60]; const _errs1134 = errors; let valid1248 = false; if (data891 && typeof data891 == "object" && !Array.isArray(data891)) { const tag44 = data891.type; if (tag44 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag44 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag44 == "string") { if (tag44 === "fixed") { const _errs1135 = errors; let valid1250 = false; valid1250 = true; var valid1251; if (data891.name !== undefined) { let data892 = data891.name; const _errs1136 = errors; if ( !( typeof data892 == "string" && (data892 === "chrom" || data892 === "pos" || data892 === "id" || data892 === "ref" || data892 === "alt" || data892 === "qual" || data892 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties .str.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1251 = _errs1136 === errors; } else { valid1251 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1251) { var valid1252; if (data891.label !== undefined) { const _errs1137 = errors; if (!(typeof data891.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1252 = _errs1137 === errors; } else { valid1252 = true; } if (valid1252) { if (data891.description !== undefined) { const _errs1138 = errors; if (!(typeof data891.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1252 = _errs1138 === errors; } else { valid1252 = true; } if (valid1252) { for (const key274 in data891) { if ( key274 !== "type" && key274 !== "name" && key274 !== "label" && key274 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/" + key274.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key274 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1250) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1249 = _errs1135 === errors; valid1248 = valid1249; } else if (tag44 === "info") { const _errs1139 = errors; let valid1254 = false; valid1254 = true; var valid1255; if (data891.name !== undefined) { const _errs1140 = errors; if (!(typeof data891.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1255 = _errs1140 === errors; } else { valid1255 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1255) { var valid1256; if (data891.label !== undefined) { const _errs1141 = errors; if (!(typeof data891.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1256 = _errs1141 === errors; } else { valid1256 = true; } if (valid1256) { if (data891.description !== undefined) { const _errs1142 = errors; if (!(typeof data891.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1256 = _errs1142 === errors; } else { valid1256 = true; } if (valid1256) { for (const key275 in data891) { if ( key275 !== "type" && key275 !== "name" && key275 !== "label" && key275 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/" + key275.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key275 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1254) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1253 = _errs1139 === errors; valid1248 = valid1253; } else if (tag44 === "format") { const _errs1143 = errors; let valid1258 = false; valid1258 = true; var valid1259; if (data891.name !== undefined) { const _errs1144 = errors; if (!(typeof data891.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1259 = _errs1144 === errors; } else { valid1259 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1259) { var valid1260; if (data891.label !== undefined) { const _errs1145 = errors; if (!(typeof data891.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1260 = _errs1145 === errors; } else { valid1260 = true; } if (valid1260) { if (data891.description !== undefined) { const _errs1146 = errors; if (!(typeof data891.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1260 = _errs1146 === errors; } else { valid1260 = true; } if (valid1260) { for (const key276 in data891) { if ( key276 !== "type" && key276 !== "name" && key276 !== "label" && key276 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/" + key276.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key276 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1258) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1257 = _errs1143 === errors; valid1248 = valid1257; } else if (tag44 === "genotype") { const _errs1147 = errors; let valid1262 = false; valid1262 = true; var valid1263; if (data891.name !== undefined) { const _errs1148 = errors; if (!(typeof data891.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1263 = _errs1148 === errors; } else { valid1263 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1263) { var valid1264; if (data891.label !== undefined) { const _errs1149 = errors; if (!(typeof data891.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1264 = _errs1149 === errors; } else { valid1264 = true; } if (valid1264) { if (data891.description !== undefined) { const _errs1150 = errors; if (!(typeof data891.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1264 = _errs1150 === errors; } else { valid1264 = true; } if (valid1264) { for (const key277 in data891) { if ( key277 !== "type" && key277 !== "name" && key277 !== "label" && key277 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/" + key277.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key277 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1262) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1261 = _errs1147 === errors; valid1248 = valid1261; } else if (tag44 === "composed") { const _errs1151 = errors; let valid1266 = false; valid1266 = true; var valid1267; if (data891.name !== undefined) { let data904 = data891.name; const _errs1152 = errors; if ( !( typeof data904 == "string" && (data904 === "clinVar" || data904 === "confidenceInterval" || data904 === "gene" || data904 === "genotype" || data904 === "genotype_maternal" || data904 === "genotype_paternal" || data904 === "gnomAdAf" || data904 === "hpo" || data904 === "inheritancePattern" || data904 === "locus" || data904 === "spanningReads" || data904 === "vipC" || data904 === "vipCS" || data904 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties .str.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1267 = _errs1152 === errors; } else { valid1267 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1267) { var valid1268; if (data891.label !== undefined) { const _errs1153 = errors; if (!(typeof data891.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1268 = _errs1153 === errors; } else { valid1268 = true; } if (valid1268) { if (data891.description !== undefined) { const _errs1154 = errors; if (!(typeof data891.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1268 = _errs1154 === errors; } else { valid1268 = true; } if (valid1268) { for (const key278 in data891) { if ( key278 !== "type" && key278 !== "name" && key278 !== "label" && key278 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/" + key278.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key278 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1266) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1265 = _errs1151 === errors; valid1248 = valid1265; } else if (tag44 === "group") { const _errs1155 = errors; let valid1270 = false; valid1270 = true; var valid1271; if (data891.fields !== undefined) { let data907 = data891.fields; const _errs1156 = errors; let valid1272 = false; if (!valid1272) { if (Array.isArray(data907)) { var valid1273 = true; const len61 = data907.length; for (let i61 = 0; i61 < len61; i61++) { let data908 = data907[i61]; const _errs1157 = errors; let valid1274 = false; if (data908 && typeof data908 == "object" && !Array.isArray(data908)) { const tag45 = data908.type; if (tag45 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag45 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag45 == "string") { if (tag45 === "fixed") { const _errs1158 = errors; let valid1276 = false; valid1276 = true; var valid1277; if (data908.name !== undefined) { let data909 = data908.name; const _errs1159 = errors; if ( !( typeof data909 == "string" && (data909 === "chrom" || data909 === "pos" || data909 === "id" || data909 === "ref" || data909 === "alt" || data909 === "qual" || data909 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.str.elements.mapping.group .properties.fields.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1277 = _errs1159 === errors; } else { valid1277 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1277) { var valid1278; if (data908.label !== undefined) { const _errs1160 = errors; if (!(typeof data908.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1278 = _errs1160 === errors; } else { valid1278 = true; } if (valid1278) { if (data908.description !== undefined) { const _errs1161 = errors; if (!(typeof data908.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1278 = _errs1161 === errors; } else { valid1278 = true; } if (valid1278) { for (const key279 in data908) { if ( key279 !== "type" && key279 !== "name" && key279 !== "label" && key279 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/" + key279.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key279, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1276) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1275 = _errs1158 === errors; valid1274 = valid1275; } else if (tag45 === "info") { const _errs1162 = errors; let valid1280 = false; valid1280 = true; var valid1281; if (data908.name !== undefined) { const _errs1163 = errors; if (!(typeof data908.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1281 = _errs1163 === errors; } else { valid1281 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1281) { var valid1282; if (data908.label !== undefined) { const _errs1164 = errors; if (!(typeof data908.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1282 = _errs1164 === errors; } else { valid1282 = true; } if (valid1282) { if (data908.description !== undefined) { const _errs1165 = errors; if (!(typeof data908.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1282 = _errs1165 === errors; } else { valid1282 = true; } if (valid1282) { for (const key280 in data908) { if ( key280 !== "type" && key280 !== "name" && key280 !== "label" && key280 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/" + key280.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key280, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1280) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1279 = _errs1162 === errors; valid1274 = valid1279; } else if (tag45 === "format") { const _errs1166 = errors; let valid1284 = false; valid1284 = true; var valid1285; if (data908.name !== undefined) { const _errs1167 = errors; if (!(typeof data908.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1285 = _errs1167 === errors; } else { valid1285 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1285) { var valid1286; if (data908.label !== undefined) { const _errs1168 = errors; if (!(typeof data908.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1286 = _errs1168 === errors; } else { valid1286 = true; } if (valid1286) { if (data908.description !== undefined) { const _errs1169 = errors; if (!(typeof data908.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1286 = _errs1169 === errors; } else { valid1286 = true; } if (valid1286) { for (const key281 in data908) { if ( key281 !== "type" && key281 !== "name" && key281 !== "label" && key281 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/" + key281.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key281, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1284) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1283 = _errs1166 === errors; valid1274 = valid1283; } else if (tag45 === "genotype") { const _errs1170 = errors; let valid1288 = false; valid1288 = true; var valid1289; if (data908.name !== undefined) { const _errs1171 = errors; if (!(typeof data908.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1289 = _errs1171 === errors; } else { valid1289 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1289) { var valid1290; if (data908.label !== undefined) { const _errs1172 = errors; if (!(typeof data908.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1290 = _errs1172 === errors; } else { valid1290 = true; } if (valid1290) { if (data908.description !== undefined) { const _errs1173 = errors; if (!(typeof data908.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1290 = _errs1173 === errors; } else { valid1290 = true; } if (valid1290) { for (const key282 in data908) { if ( key282 !== "type" && key282 !== "name" && key282 !== "label" && key282 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/" + key282.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key282, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1288) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1287 = _errs1170 === errors; valid1274 = valid1287; } else if (tag45 === "composed") { const _errs1174 = errors; let valid1292 = false; valid1292 = true; var valid1293; if (data908.name !== undefined) { let data921 = data908.name; const _errs1175 = errors; if ( !( typeof data921 == "string" && (data921 === "clinVar" || data921 === "gene" || data921 === "genotype" || data921 === "gnomAdAf" || data921 === "hpo" || data921 === "inheritancePattern" || data921 === "locus" || data921 === "ref" || data921 === "vipC" || data921 === "vipCS" || data921 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.str.elements.mapping.group .properties.fields.elements.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1293 = _errs1175 === errors; } else { valid1293 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1293) { var valid1294; if (data908.label !== undefined) { const _errs1176 = errors; if (!(typeof data908.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1294 = _errs1176 === errors; } else { valid1294 = true; } if (valid1294) { if (data908.description !== undefined) { const _errs1177 = errors; if (!(typeof data908.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1294 = _errs1177 === errors; } else { valid1294 = true; } if (valid1294) { for (const key283 in data908) { if ( key283 !== "type" && key283 !== "name" && key283 !== "label" && key283 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/" + key283.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key283, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1292) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1291 = _errs1174 === errors; valid1274 = valid1291; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag45 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag45 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1274) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields/" + i61, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1273 = _errs1157 === errors; if (!valid1273) { break; } } valid1272 = valid1273; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/fields", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1271 = _errs1156 === errors; } else { valid1271 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1271) { for (const key284 in data891) { if (key284 !== "type" && key284 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/" + key284.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key284 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1270) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1269 = _errs1155 === errors; valid1248 = valid1269; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag44 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag44 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1248) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str/" + i60, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1247 = _errs1134 === errors; if (!valid1247) { break; } } valid1246 = valid1247; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/str", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1145 = _errs1133 === errors; } else { valid1145 = true; } if (valid1145) { if (data821.sv !== undefined) { let data924 = data821.sv; const _errs1178 = errors; let valid1296 = false; if (!valid1296) { if (Array.isArray(data924)) { var valid1297 = true; const len62 = data924.length; for (let i62 = 0; i62 < len62; i62++) { let data925 = data924[i62]; const _errs1179 = errors; let valid1298 = false; if (data925 && typeof data925 == "object" && !Array.isArray(data925)) { const tag46 = data925.type; if (tag46 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag46 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag46 == "string") { if (tag46 === "fixed") { const _errs1180 = errors; let valid1300 = false; valid1300 = true; var valid1301; if (data925.name !== undefined) { let data926 = data925.name; const _errs1181 = errors; if ( !( typeof data926 == "string" && (data926 === "chrom" || data926 === "pos" || data926 === "id" || data926 === "ref" || data926 === "alt" || data926 === "qual" || data926 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties .sv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1301 = _errs1181 === errors; } else { valid1301 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1301) { var valid1302; if (data925.label !== undefined) { const _errs1182 = errors; if (!(typeof data925.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1302 = _errs1182 === errors; } else { valid1302 = true; } if (valid1302) { if (data925.description !== undefined) { const _errs1183 = errors; if (!(typeof data925.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1302 = _errs1183 === errors; } else { valid1302 = true; } if (valid1302) { for (const key285 in data925) { if ( key285 !== "type" && key285 !== "name" && key285 !== "label" && key285 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/" + key285.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key285 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1300) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1299 = _errs1180 === errors; valid1298 = valid1299; } else if (tag46 === "info") { const _errs1184 = errors; let valid1304 = false; valid1304 = true; var valid1305; if (data925.name !== undefined) { const _errs1185 = errors; if (!(typeof data925.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1305 = _errs1185 === errors; } else { valid1305 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1305) { var valid1306; if (data925.label !== undefined) { const _errs1186 = errors; if (!(typeof data925.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1306 = _errs1186 === errors; } else { valid1306 = true; } if (valid1306) { if (data925.description !== undefined) { const _errs1187 = errors; if (!(typeof data925.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1306 = _errs1187 === errors; } else { valid1306 = true; } if (valid1306) { for (const key286 in data925) { if ( key286 !== "type" && key286 !== "name" && key286 !== "label" && key286 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/" + key286.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key286 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1304) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1303 = _errs1184 === errors; valid1298 = valid1303; } else if (tag46 === "format") { const _errs1188 = errors; let valid1308 = false; valid1308 = true; var valid1309; if (data925.name !== undefined) { const _errs1189 = errors; if (!(typeof data925.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1309 = _errs1189 === errors; } else { valid1309 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1309) { var valid1310; if (data925.label !== undefined) { const _errs1190 = errors; if (!(typeof data925.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1310 = _errs1190 === errors; } else { valid1310 = true; } if (valid1310) { if (data925.description !== undefined) { const _errs1191 = errors; if (!(typeof data925.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1310 = _errs1191 === errors; } else { valid1310 = true; } if (valid1310) { for (const key287 in data925) { if ( key287 !== "type" && key287 !== "name" && key287 !== "label" && key287 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/" + key287.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key287 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1308) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1307 = _errs1188 === errors; valid1298 = valid1307; } else if (tag46 === "genotype") { const _errs1192 = errors; let valid1312 = false; valid1312 = true; var valid1313; if (data925.name !== undefined) { const _errs1193 = errors; if (!(typeof data925.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1313 = _errs1193 === errors; } else { valid1313 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1313) { var valid1314; if (data925.label !== undefined) { const _errs1194 = errors; if (!(typeof data925.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1314 = _errs1194 === errors; } else { valid1314 = true; } if (valid1314) { if (data925.description !== undefined) { const _errs1195 = errors; if (!(typeof data925.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1314 = _errs1195 === errors; } else { valid1314 = true; } if (valid1314) { for (const key288 in data925) { if ( key288 !== "type" && key288 !== "name" && key288 !== "label" && key288 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/" + key288.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key288 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1312) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1311 = _errs1192 === errors; valid1298 = valid1311; } else if (tag46 === "composed") { const _errs1196 = errors; let valid1316 = false; valid1316 = true; var valid1317; if (data925.name !== undefined) { let data938 = data925.name; const _errs1197 = errors; if ( !( typeof data938 == "string" && (data938 === "clinVar" || data938 === "confidenceInterval" || data938 === "gene" || data938 === "genotype" || data938 === "genotype_maternal" || data938 === "genotype_paternal" || data938 === "gnomAdAf" || data938 === "hpo" || data938 === "inheritancePattern" || data938 === "locus" || data938 === "spanningReads" || data938 === "vipC" || data938 === "vipCS" || data938 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells.optionalProperties .sv.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1317 = _errs1197 === errors; } else { valid1317 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1317) { var valid1318; if (data925.label !== undefined) { const _errs1198 = errors; if (!(typeof data925.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1318 = _errs1198 === errors; } else { valid1318 = true; } if (valid1318) { if (data925.description !== undefined) { const _errs1199 = errors; if (!(typeof data925.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1318 = _errs1199 === errors; } else { valid1318 = true; } if (valid1318) { for (const key289 in data925) { if ( key289 !== "type" && key289 !== "name" && key289 !== "label" && key289 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/" + key289.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key289 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1316) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1315 = _errs1196 === errors; valid1298 = valid1315; } else if (tag46 === "group") { const _errs1200 = errors; let valid1320 = false; valid1320 = true; var valid1321; if (data925.fields !== undefined) { let data941 = data925.fields; const _errs1201 = errors; let valid1322 = false; if (!valid1322) { if (Array.isArray(data941)) { var valid1323 = true; const len63 = data941.length; for (let i63 = 0; i63 < len63; i63++) { let data942 = data941[i63]; const _errs1202 = errors; let valid1324 = false; if (data942 && typeof data942 == "object" && !Array.isArray(data942)) { const tag47 = data942.type; if (tag47 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag47 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag47 == "string") { if (tag47 === "fixed") { const _errs1203 = errors; let valid1326 = false; valid1326 = true; var valid1327; if (data942.name !== undefined) { let data943 = data942.name; const _errs1204 = errors; if ( !( typeof data943 == "string" && (data943 === "chrom" || data943 === "pos" || data943 === "id" || data943 === "ref" || data943 === "alt" || data943 === "qual" || data943 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1327 = _errs1204 === errors; } else { valid1327 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1327) { var valid1328; if (data942.label !== undefined) { const _errs1205 = errors; if (!(typeof data942.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1328 = _errs1205 === errors; } else { valid1328 = true; } if (valid1328) { if (data942.description !== undefined) { const _errs1206 = errors; if (!(typeof data942.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1328 = _errs1206 === errors; } else { valid1328 = true; } if (valid1328) { for (const key290 in data942) { if ( key290 !== "type" && key290 !== "name" && key290 !== "label" && key290 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/" + key290.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key290, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1326) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1325 = _errs1203 === errors; valid1324 = valid1325; } else if (tag47 === "info") { const _errs1207 = errors; let valid1330 = false; valid1330 = true; var valid1331; if (data942.name !== undefined) { const _errs1208 = errors; if (!(typeof data942.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1331 = _errs1208 === errors; } else { valid1331 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1331) { var valid1332; if (data942.label !== undefined) { const _errs1209 = errors; if (!(typeof data942.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1332 = _errs1209 === errors; } else { valid1332 = true; } if (valid1332) { if (data942.description !== undefined) { const _errs1210 = errors; if (!(typeof data942.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1332 = _errs1210 === errors; } else { valid1332 = true; } if (valid1332) { for (const key291 in data942) { if ( key291 !== "type" && key291 !== "name" && key291 !== "label" && key291 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/" + key291.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key291, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1330) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1329 = _errs1207 === errors; valid1324 = valid1329; } else if (tag47 === "format") { const _errs1211 = errors; let valid1334 = false; valid1334 = true; var valid1335; if (data942.name !== undefined) { const _errs1212 = errors; if (!(typeof data942.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1335 = _errs1212 === errors; } else { valid1335 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1335) { var valid1336; if (data942.label !== undefined) { const _errs1213 = errors; if (!(typeof data942.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1336 = _errs1213 === errors; } else { valid1336 = true; } if (valid1336) { if (data942.description !== undefined) { const _errs1214 = errors; if (!(typeof data942.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1336 = _errs1214 === errors; } else { valid1336 = true; } if (valid1336) { for (const key292 in data942) { if ( key292 !== "type" && key292 !== "name" && key292 !== "label" && key292 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/" + key292.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key292, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1334) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1333 = _errs1211 === errors; valid1324 = valid1333; } else if (tag47 === "genotype") { const _errs1215 = errors; let valid1338 = false; valid1338 = true; var valid1339; if (data942.name !== undefined) { const _errs1216 = errors; if (!(typeof data942.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1339 = _errs1216 === errors; } else { valid1339 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1339) { var valid1340; if (data942.label !== undefined) { const _errs1217 = errors; if (!(typeof data942.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1340 = _errs1217 === errors; } else { valid1340 = true; } if (valid1340) { if (data942.description !== undefined) { const _errs1218 = errors; if (!(typeof data942.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1340 = _errs1218 === errors; } else { valid1340 = true; } if (valid1340) { for (const key293 in data942) { if ( key293 !== "type" && key293 !== "name" && key293 !== "label" && key293 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/" + key293.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key293, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1338) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1337 = _errs1215 === errors; valid1324 = valid1337; } else if (tag47 === "composed") { const _errs1219 = errors; let valid1342 = false; valid1342 = true; var valid1343; if (data942.name !== undefined) { let data955 = data942.name; const _errs1220 = errors; if ( !( typeof data955 == "string" && (data955 === "clinVar" || data955 === "gene" || data955 === "genotype" || data955 === "gnomAdAf" || data955 === "hpo" || data955 === "inheritancePattern" || data955 === "locus" || data955 === "ref" || data955 === "vipC" || data955 === "vipCS" || data955 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/name", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.properties.cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1343 = _errs1220 === errors; } else { valid1343 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1343) { var valid1344; if (data942.label !== undefined) { const _errs1221 = errors; if (!(typeof data942.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/label", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1344 = _errs1221 === errors; } else { valid1344 = true; } if (valid1344) { if (data942.description !== undefined) { const _errs1222 = errors; if (!(typeof data942.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/description", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1344 = _errs1222 === errors; } else { valid1344 = true; } if (valid1344) { for (const key294 in data942) { if ( key294 !== "type" && key294 !== "name" && key294 !== "label" && key294 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/" + key294.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key294, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1342) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1341 = _errs1219 === errors; valid1324 = valid1341; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag47 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag47 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1324) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields/" + i63, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1323 = _errs1202 === errors; if (!valid1323) { break; } } valid1322 = valid1323; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/fields", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1321 = _errs1201 === errors; } else { valid1321 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1321) { for (const key295 in data925) { if (key295 !== "type" && key295 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/" + key295.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key295 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1320) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1319 = _errs1200 === errors; valid1298 = valid1319; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag46 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62 + "/type", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag46 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1298) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv/" + i62, schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1297 = _errs1179 === errors; if (!valid1297) { break; } } valid1296 = valid1297; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/sv", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1145 = _errs1178 === errors; } else { valid1145 = true; } if (valid1145) { for (const key296 in data821) { if (key296 !== "all" && key296 !== "snv" && key296 !== "str" && key296 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells/" + key296.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/properties/cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key296 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid1143) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/cells", schemaPath: "/properties/sample_variant/properties/cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1142 = _errs1042 === errors; } else { valid1142 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant", schemaPath: "/properties/sample_variant/properties/cells", keyword: "properties", params: { error: "missing", missingProperty: "cells" }, message: "must have property 'cells'", }, ]; return false; } if (valid1142) { var valid1346; if (data820.sample_cells !== undefined) { let data958 = data820.sample_cells; const _errs1223 = errors; let valid1347 = false; if (data958 && typeof data958 == "object" && !Array.isArray(data958)) { valid1347 = true; var valid1349; if (data958.all !== undefined) { let data959 = data958.all; const _errs1224 = errors; let valid1350 = false; if (!valid1350) { if (Array.isArray(data959)) { var valid1351 = true; const len64 = data959.length; for (let i64 = 0; i64 < len64; i64++) { let data960 = data959[i64]; const _errs1225 = errors; let valid1352 = false; if (data960 && typeof data960 == "object" && !Array.isArray(data960)) { const tag48 = data960.type; if (tag48 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag48 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag48 == "string") { if (tag48 === "fixed") { const _errs1226 = errors; let valid1354 = false; valid1354 = true; var valid1355; if (data960.name !== undefined) { let data961 = data960.name; const _errs1227 = errors; if ( !( typeof data961 == "string" && (data961 === "chrom" || data961 === "pos" || data961 === "id" || data961 === "ref" || data961 === "alt" || data961 === "qual" || data961 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.all.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1355 = _errs1227 === errors; } else { valid1355 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1355) { var valid1356; if (data960.label !== undefined) { const _errs1228 = errors; if (!(typeof data960.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1356 = _errs1228 === errors; } else { valid1356 = true; } if (valid1356) { if (data960.description !== undefined) { const _errs1229 = errors; if (!(typeof data960.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1356 = _errs1229 === errors; } else { valid1356 = true; } if (valid1356) { for (const key297 in data960) { if ( key297 !== "type" && key297 !== "name" && key297 !== "label" && key297 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/" + key297.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key297 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1354) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1353 = _errs1226 === errors; valid1352 = valid1353; } else if (tag48 === "info") { const _errs1230 = errors; let valid1358 = false; valid1358 = true; var valid1359; if (data960.name !== undefined) { const _errs1231 = errors; if (!(typeof data960.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1359 = _errs1231 === errors; } else { valid1359 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1359) { var valid1360; if (data960.label !== undefined) { const _errs1232 = errors; if (!(typeof data960.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1360 = _errs1232 === errors; } else { valid1360 = true; } if (valid1360) { if (data960.description !== undefined) { const _errs1233 = errors; if (!(typeof data960.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1360 = _errs1233 === errors; } else { valid1360 = true; } if (valid1360) { for (const key298 in data960) { if ( key298 !== "type" && key298 !== "name" && key298 !== "label" && key298 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/" + key298.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key298 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1358) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1357 = _errs1230 === errors; valid1352 = valid1357; } else if (tag48 === "format") { const _errs1234 = errors; let valid1362 = false; valid1362 = true; var valid1363; if (data960.name !== undefined) { const _errs1235 = errors; if (!(typeof data960.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1363 = _errs1235 === errors; } else { valid1363 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1363) { var valid1364; if (data960.label !== undefined) { const _errs1236 = errors; if (!(typeof data960.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1364 = _errs1236 === errors; } else { valid1364 = true; } if (valid1364) { if (data960.description !== undefined) { const _errs1237 = errors; if (!(typeof data960.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1364 = _errs1237 === errors; } else { valid1364 = true; } if (valid1364) { for (const key299 in data960) { if ( key299 !== "type" && key299 !== "name" && key299 !== "label" && key299 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/" + key299.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key299 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1362) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1361 = _errs1234 === errors; valid1352 = valid1361; } else if (tag48 === "genotype") { const _errs1238 = errors; let valid1366 = false; valid1366 = true; var valid1367; if (data960.name !== undefined) { const _errs1239 = errors; if (!(typeof data960.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1367 = _errs1239 === errors; } else { valid1367 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1367) { var valid1368; if (data960.label !== undefined) { const _errs1240 = errors; if (!(typeof data960.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1368 = _errs1240 === errors; } else { valid1368 = true; } if (valid1368) { if (data960.description !== undefined) { const _errs1241 = errors; if (!(typeof data960.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1368 = _errs1241 === errors; } else { valid1368 = true; } if (valid1368) { for (const key300 in data960) { if ( key300 !== "type" && key300 !== "name" && key300 !== "label" && key300 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/" + key300.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key300 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1366) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1365 = _errs1238 === errors; valid1352 = valid1365; } else if (tag48 === "composed") { const _errs1242 = errors; let valid1370 = false; valid1370 = true; var valid1371; if (data960.name !== undefined) { let data973 = data960.name; const _errs1243 = errors; if ( !( typeof data973 == "string" && (data973 === "clinVar" || data973 === "confidenceInterval" || data973 === "gene" || data973 === "genotype" || data973 === "genotype_maternal" || data973 === "genotype_paternal" || data973 === "gnomAdAf" || data973 === "hpo" || data973 === "inheritancePattern" || data973 === "locus" || data973 === "spanningReads" || data973 === "vipC" || data973 === "vipCS" || data973 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.all.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1371 = _errs1243 === errors; } else { valid1371 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1371) { var valid1372; if (data960.label !== undefined) { const _errs1244 = errors; if (!(typeof data960.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1372 = _errs1244 === errors; } else { valid1372 = true; } if (valid1372) { if (data960.description !== undefined) { const _errs1245 = errors; if (!(typeof data960.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1372 = _errs1245 === errors; } else { valid1372 = true; } if (valid1372) { for (const key301 in data960) { if ( key301 !== "type" && key301 !== "name" && key301 !== "label" && key301 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/" + key301.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key301 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1370) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1369 = _errs1242 === errors; valid1352 = valid1369; } else if (tag48 === "group") { const _errs1246 = errors; let valid1374 = false; valid1374 = true; var valid1375; if (data960.fields !== undefined) { let data976 = data960.fields; const _errs1247 = errors; let valid1376 = false; if (!valid1376) { if (Array.isArray(data976)) { var valid1377 = true; const len65 = data976.length; for (let i65 = 0; i65 < len65; i65++) { let data977 = data976[i65]; const _errs1248 = errors; let valid1378 = false; if (data977 && typeof data977 == "object" && !Array.isArray(data977)) { const tag49 = data977.type; if (tag49 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag49 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag49 == "string") { if (tag49 === "fixed") { const _errs1249 = errors; let valid1380 = false; valid1380 = true; var valid1381; if (data977.name !== undefined) { let data978 = data977.name; const _errs1250 = errors; if ( !( typeof data978 == "string" && (data978 === "chrom" || data978 === "pos" || data978 === "id" || data978 === "ref" || data978 === "alt" || data978 === "qual" || data978 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.all.elements.mapping .group.properties.fields.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1381 = _errs1250 === errors; } else { valid1381 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1381) { var valid1382; if (data977.label !== undefined) { const _errs1251 = errors; if (!(typeof data977.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1382 = _errs1251 === errors; } else { valid1382 = true; } if (valid1382) { if (data977.description !== undefined) { const _errs1252 = errors; if (!(typeof data977.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1382 = _errs1252 === errors; } else { valid1382 = true; } if (valid1382) { for (const key302 in data977) { if ( key302 !== "type" && key302 !== "name" && key302 !== "label" && key302 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/" + key302.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key302, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1380) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1379 = _errs1249 === errors; valid1378 = valid1379; } else if (tag49 === "info") { const _errs1253 = errors; let valid1384 = false; valid1384 = true; var valid1385; if (data977.name !== undefined) { const _errs1254 = errors; if (!(typeof data977.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1385 = _errs1254 === errors; } else { valid1385 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1385) { var valid1386; if (data977.label !== undefined) { const _errs1255 = errors; if (!(typeof data977.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1386 = _errs1255 === errors; } else { valid1386 = true; } if (valid1386) { if (data977.description !== undefined) { const _errs1256 = errors; if (!(typeof data977.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1386 = _errs1256 === errors; } else { valid1386 = true; } if (valid1386) { for (const key303 in data977) { if ( key303 !== "type" && key303 !== "name" && key303 !== "label" && key303 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/" + key303.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key303, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1384) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1383 = _errs1253 === errors; valid1378 = valid1383; } else if (tag49 === "format") { const _errs1257 = errors; let valid1388 = false; valid1388 = true; var valid1389; if (data977.name !== undefined) { const _errs1258 = errors; if (!(typeof data977.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1389 = _errs1258 === errors; } else { valid1389 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1389) { var valid1390; if (data977.label !== undefined) { const _errs1259 = errors; if (!(typeof data977.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1390 = _errs1259 === errors; } else { valid1390 = true; } if (valid1390) { if (data977.description !== undefined) { const _errs1260 = errors; if (!(typeof data977.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1390 = _errs1260 === errors; } else { valid1390 = true; } if (valid1390) { for (const key304 in data977) { if ( key304 !== "type" && key304 !== "name" && key304 !== "label" && key304 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/" + key304.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key304, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1388) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1387 = _errs1257 === errors; valid1378 = valid1387; } else if (tag49 === "genotype") { const _errs1261 = errors; let valid1392 = false; valid1392 = true; var valid1393; if (data977.name !== undefined) { const _errs1262 = errors; if (!(typeof data977.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1393 = _errs1262 === errors; } else { valid1393 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1393) { var valid1394; if (data977.label !== undefined) { const _errs1263 = errors; if (!(typeof data977.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1394 = _errs1263 === errors; } else { valid1394 = true; } if (valid1394) { if (data977.description !== undefined) { const _errs1264 = errors; if (!(typeof data977.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1394 = _errs1264 === errors; } else { valid1394 = true; } if (valid1394) { for (const key305 in data977) { if ( key305 !== "type" && key305 !== "name" && key305 !== "label" && key305 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/" + key305.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key305, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1392) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1391 = _errs1261 === errors; valid1378 = valid1391; } else if (tag49 === "composed") { const _errs1265 = errors; let valid1396 = false; valid1396 = true; var valid1397; if (data977.name !== undefined) { let data990 = data977.name; const _errs1266 = errors; if ( !( typeof data990 == "string" && (data990 === "clinVar" || data990 === "gene" || data990 === "genotype" || data990 === "gnomAdAf" || data990 === "hpo" || data990 === "inheritancePattern" || data990 === "locus" || data990 === "ref" || data990 === "vipC" || data990 === "vipCS" || data990 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.all.elements.mapping .group.properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1397 = _errs1266 === errors; } else { valid1397 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1397) { var valid1398; if (data977.label !== undefined) { const _errs1267 = errors; if (!(typeof data977.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1398 = _errs1267 === errors; } else { valid1398 = true; } if (valid1398) { if (data977.description !== undefined) { const _errs1268 = errors; if (!(typeof data977.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1398 = _errs1268 === errors; } else { valid1398 = true; } if (valid1398) { for (const key306 in data977) { if ( key306 !== "type" && key306 !== "name" && key306 !== "label" && key306 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/" + key306.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key306, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1396) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1395 = _errs1265 === errors; valid1378 = valid1395; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag49 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag49 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1378) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields/" + i65, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1377 = _errs1248 === errors; if (!valid1377) { break; } } valid1376 = valid1377; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/fields", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1375 = _errs1247 === errors; } else { valid1375 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1375) { for (const key307 in data960) { if (key307 !== "type" && key307 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/" + key307.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key307 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1374) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1373 = _errs1246 === errors; valid1352 = valid1373; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag48 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag48 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1352) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all/" + i64, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1351 = _errs1225 === errors; if (!valid1351) { break; } } valid1350 = valid1351; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/all", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1349 = _errs1224 === errors; } else { valid1349 = true; } if (valid1349) { if (data958.snv !== undefined) { let data993 = data958.snv; const _errs1269 = errors; let valid1400 = false; if (!valid1400) { if (Array.isArray(data993)) { var valid1401 = true; const len66 = data993.length; for (let i66 = 0; i66 < len66; i66++) { let data994 = data993[i66]; const _errs1270 = errors; let valid1402 = false; if (data994 && typeof data994 == "object" && !Array.isArray(data994)) { const tag50 = data994.type; if (tag50 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag50 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag50 == "string") { if (tag50 === "fixed") { const _errs1271 = errors; let valid1404 = false; valid1404 = true; var valid1405; if (data994.name !== undefined) { let data995 = data994.name; const _errs1272 = errors; if ( !( typeof data995 == "string" && (data995 === "chrom" || data995 === "pos" || data995 === "id" || data995 === "ref" || data995 === "alt" || data995 === "qual" || data995 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.snv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1405 = _errs1272 === errors; } else { valid1405 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1405) { var valid1406; if (data994.label !== undefined) { const _errs1273 = errors; if (!(typeof data994.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1406 = _errs1273 === errors; } else { valid1406 = true; } if (valid1406) { if (data994.description !== undefined) { const _errs1274 = errors; if (!(typeof data994.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1406 = _errs1274 === errors; } else { valid1406 = true; } if (valid1406) { for (const key308 in data994) { if ( key308 !== "type" && key308 !== "name" && key308 !== "label" && key308 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/" + key308.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key308 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1404) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1403 = _errs1271 === errors; valid1402 = valid1403; } else if (tag50 === "info") { const _errs1275 = errors; let valid1408 = false; valid1408 = true; var valid1409; if (data994.name !== undefined) { const _errs1276 = errors; if (!(typeof data994.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1409 = _errs1276 === errors; } else { valid1409 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1409) { var valid1410; if (data994.label !== undefined) { const _errs1277 = errors; if (!(typeof data994.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1410 = _errs1277 === errors; } else { valid1410 = true; } if (valid1410) { if (data994.description !== undefined) { const _errs1278 = errors; if (!(typeof data994.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1410 = _errs1278 === errors; } else { valid1410 = true; } if (valid1410) { for (const key309 in data994) { if ( key309 !== "type" && key309 !== "name" && key309 !== "label" && key309 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/" + key309.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key309 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1408) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1407 = _errs1275 === errors; valid1402 = valid1407; } else if (tag50 === "format") { const _errs1279 = errors; let valid1412 = false; valid1412 = true; var valid1413; if (data994.name !== undefined) { const _errs1280 = errors; if (!(typeof data994.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1413 = _errs1280 === errors; } else { valid1413 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1413) { var valid1414; if (data994.label !== undefined) { const _errs1281 = errors; if (!(typeof data994.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1414 = _errs1281 === errors; } else { valid1414 = true; } if (valid1414) { if (data994.description !== undefined) { const _errs1282 = errors; if (!(typeof data994.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1414 = _errs1282 === errors; } else { valid1414 = true; } if (valid1414) { for (const key310 in data994) { if ( key310 !== "type" && key310 !== "name" && key310 !== "label" && key310 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/" + key310.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key310 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1412) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1411 = _errs1279 === errors; valid1402 = valid1411; } else if (tag50 === "genotype") { const _errs1283 = errors; let valid1416 = false; valid1416 = true; var valid1417; if (data994.name !== undefined) { const _errs1284 = errors; if (!(typeof data994.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1417 = _errs1284 === errors; } else { valid1417 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1417) { var valid1418; if (data994.label !== undefined) { const _errs1285 = errors; if (!(typeof data994.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1418 = _errs1285 === errors; } else { valid1418 = true; } if (valid1418) { if (data994.description !== undefined) { const _errs1286 = errors; if (!(typeof data994.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1418 = _errs1286 === errors; } else { valid1418 = true; } if (valid1418) { for (const key311 in data994) { if ( key311 !== "type" && key311 !== "name" && key311 !== "label" && key311 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/" + key311.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key311 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1416) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1415 = _errs1283 === errors; valid1402 = valid1415; } else if (tag50 === "composed") { const _errs1287 = errors; let valid1420 = false; valid1420 = true; var valid1421; if (data994.name !== undefined) { let data1007 = data994.name; const _errs1288 = errors; if ( !( typeof data1007 == "string" && (data1007 === "clinVar" || data1007 === "confidenceInterval" || data1007 === "gene" || data1007 === "genotype" || data1007 === "genotype_maternal" || data1007 === "genotype_paternal" || data1007 === "gnomAdAf" || data1007 === "hpo" || data1007 === "inheritancePattern" || data1007 === "locus" || data1007 === "spanningReads" || data1007 === "vipC" || data1007 === "vipCS" || data1007 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.snv.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1421 = _errs1288 === errors; } else { valid1421 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1421) { var valid1422; if (data994.label !== undefined) { const _errs1289 = errors; if (!(typeof data994.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1422 = _errs1289 === errors; } else { valid1422 = true; } if (valid1422) { if (data994.description !== undefined) { const _errs1290 = errors; if (!(typeof data994.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1422 = _errs1290 === errors; } else { valid1422 = true; } if (valid1422) { for (const key312 in data994) { if ( key312 !== "type" && key312 !== "name" && key312 !== "label" && key312 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/" + key312.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key312 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1420) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1419 = _errs1287 === errors; valid1402 = valid1419; } else if (tag50 === "group") { const _errs1291 = errors; let valid1424 = false; valid1424 = true; var valid1425; if (data994.fields !== undefined) { let data1010 = data994.fields; const _errs1292 = errors; let valid1426 = false; if (!valid1426) { if (Array.isArray(data1010)) { var valid1427 = true; const len67 = data1010.length; for (let i67 = 0; i67 < len67; i67++) { let data1011 = data1010[i67]; const _errs1293 = errors; let valid1428 = false; if (data1011 && typeof data1011 == "object" && !Array.isArray(data1011)) { const tag51 = data1011.type; if (tag51 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag51 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag51 == "string") { if (tag51 === "fixed") { const _errs1294 = errors; let valid1430 = false; valid1430 = true; var valid1431; if (data1011.name !== undefined) { let data1012 = data1011.name; const _errs1295 = errors; if ( !( typeof data1012 == "string" && (data1012 === "chrom" || data1012 === "pos" || data1012 === "id" || data1012 === "ref" || data1012 === "alt" || data1012 === "qual" || data1012 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping .group.properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1431 = _errs1295 === errors; } else { valid1431 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1431) { var valid1432; if (data1011.label !== undefined) { const _errs1296 = errors; if (!(typeof data1011.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1432 = _errs1296 === errors; } else { valid1432 = true; } if (valid1432) { if (data1011.description !== undefined) { const _errs1297 = errors; if (!(typeof data1011.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1432 = _errs1297 === errors; } else { valid1432 = true; } if (valid1432) { for (const key313 in data1011) { if ( key313 !== "type" && key313 !== "name" && key313 !== "label" && key313 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/" + key313.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key313, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1430) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1429 = _errs1294 === errors; valid1428 = valid1429; } else if (tag51 === "info") { const _errs1298 = errors; let valid1434 = false; valid1434 = true; var valid1435; if (data1011.name !== undefined) { const _errs1299 = errors; if (!(typeof data1011.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1435 = _errs1299 === errors; } else { valid1435 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1435) { var valid1436; if (data1011.label !== undefined) { const _errs1300 = errors; if (!(typeof data1011.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1436 = _errs1300 === errors; } else { valid1436 = true; } if (valid1436) { if (data1011.description !== undefined) { const _errs1301 = errors; if (!(typeof data1011.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1436 = _errs1301 === errors; } else { valid1436 = true; } if (valid1436) { for (const key314 in data1011) { if ( key314 !== "type" && key314 !== "name" && key314 !== "label" && key314 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/" + key314.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key314, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1434) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1433 = _errs1298 === errors; valid1428 = valid1433; } else if (tag51 === "format") { const _errs1302 = errors; let valid1438 = false; valid1438 = true; var valid1439; if (data1011.name !== undefined) { const _errs1303 = errors; if (!(typeof data1011.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1439 = _errs1303 === errors; } else { valid1439 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1439) { var valid1440; if (data1011.label !== undefined) { const _errs1304 = errors; if (!(typeof data1011.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1440 = _errs1304 === errors; } else { valid1440 = true; } if (valid1440) { if (data1011.description !== undefined) { const _errs1305 = errors; if (!(typeof data1011.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1440 = _errs1305 === errors; } else { valid1440 = true; } if (valid1440) { for (const key315 in data1011) { if ( key315 !== "type" && key315 !== "name" && key315 !== "label" && key315 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/" + key315.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key315, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1438) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1437 = _errs1302 === errors; valid1428 = valid1437; } else if (tag51 === "genotype") { const _errs1306 = errors; let valid1442 = false; valid1442 = true; var valid1443; if (data1011.name !== undefined) { const _errs1307 = errors; if (!(typeof data1011.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1443 = _errs1307 === errors; } else { valid1443 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1443) { var valid1444; if (data1011.label !== undefined) { const _errs1308 = errors; if (!(typeof data1011.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1444 = _errs1308 === errors; } else { valid1444 = true; } if (valid1444) { if (data1011.description !== undefined) { const _errs1309 = errors; if (!(typeof data1011.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1444 = _errs1309 === errors; } else { valid1444 = true; } if (valid1444) { for (const key316 in data1011) { if ( key316 !== "type" && key316 !== "name" && key316 !== "label" && key316 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/" + key316.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key316, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1442) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1441 = _errs1306 === errors; valid1428 = valid1441; } else if (tag51 === "composed") { const _errs1310 = errors; let valid1446 = false; valid1446 = true; var valid1447; if (data1011.name !== undefined) { let data1024 = data1011.name; const _errs1311 = errors; if ( !( typeof data1024 == "string" && (data1024 === "clinVar" || data1024 === "gene" || data1024 === "genotype" || data1024 === "gnomAdAf" || data1024 === "hpo" || data1024 === "inheritancePattern" || data1024 === "locus" || data1024 === "ref" || data1024 === "vipC" || data1024 === "vipCS" || data1024 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping .group.properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1447 = _errs1311 === errors; } else { valid1447 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1447) { var valid1448; if (data1011.label !== undefined) { const _errs1312 = errors; if (!(typeof data1011.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1448 = _errs1312 === errors; } else { valid1448 = true; } if (valid1448) { if (data1011.description !== undefined) { const _errs1313 = errors; if (!(typeof data1011.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1448 = _errs1313 === errors; } else { valid1448 = true; } if (valid1448) { for (const key317 in data1011) { if ( key317 !== "type" && key317 !== "name" && key317 !== "label" && key317 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/" + key317.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key317, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1446) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1445 = _errs1310 === errors; valid1428 = valid1445; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag51 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag51 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1428) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields/" + i67, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1427 = _errs1293 === errors; if (!valid1427) { break; } } valid1426 = valid1427; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/fields", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1425 = _errs1292 === errors; } else { valid1425 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1425) { for (const key318 in data994) { if (key318 !== "type" && key318 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/" + key318.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key318 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1424) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1423 = _errs1291 === errors; valid1402 = valid1423; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag50 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag50 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1402) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv/" + i66, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1401 = _errs1270 === errors; if (!valid1401) { break; } } valid1400 = valid1401; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/snv", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1349 = _errs1269 === errors; } else { valid1349 = true; } if (valid1349) { if (data958.str !== undefined) { let data1027 = data958.str; const _errs1314 = errors; let valid1450 = false; if (!valid1450) { if (Array.isArray(data1027)) { var valid1451 = true; const len68 = data1027.length; for (let i68 = 0; i68 < len68; i68++) { let data1028 = data1027[i68]; const _errs1315 = errors; let valid1452 = false; if (data1028 && typeof data1028 == "object" && !Array.isArray(data1028)) { const tag52 = data1028.type; if (tag52 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag52 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag52 == "string") { if (tag52 === "fixed") { const _errs1316 = errors; let valid1454 = false; valid1454 = true; var valid1455; if (data1028.name !== undefined) { let data1029 = data1028.name; const _errs1317 = errors; if ( !( typeof data1029 == "string" && (data1029 === "chrom" || data1029 === "pos" || data1029 === "id" || data1029 === "ref" || data1029 === "alt" || data1029 === "qual" || data1029 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.str.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1455 = _errs1317 === errors; } else { valid1455 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1455) { var valid1456; if (data1028.label !== undefined) { const _errs1318 = errors; if (!(typeof data1028.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1456 = _errs1318 === errors; } else { valid1456 = true; } if (valid1456) { if (data1028.description !== undefined) { const _errs1319 = errors; if (!(typeof data1028.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1456 = _errs1319 === errors; } else { valid1456 = true; } if (valid1456) { for (const key319 in data1028) { if ( key319 !== "type" && key319 !== "name" && key319 !== "label" && key319 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/" + key319.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key319 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1454) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1453 = _errs1316 === errors; valid1452 = valid1453; } else if (tag52 === "info") { const _errs1320 = errors; let valid1458 = false; valid1458 = true; var valid1459; if (data1028.name !== undefined) { const _errs1321 = errors; if (!(typeof data1028.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1459 = _errs1321 === errors; } else { valid1459 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1459) { var valid1460; if (data1028.label !== undefined) { const _errs1322 = errors; if (!(typeof data1028.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1460 = _errs1322 === errors; } else { valid1460 = true; } if (valid1460) { if (data1028.description !== undefined) { const _errs1323 = errors; if (!(typeof data1028.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1460 = _errs1323 === errors; } else { valid1460 = true; } if (valid1460) { for (const key320 in data1028) { if ( key320 !== "type" && key320 !== "name" && key320 !== "label" && key320 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/" + key320.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key320 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1458) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1457 = _errs1320 === errors; valid1452 = valid1457; } else if (tag52 === "format") { const _errs1324 = errors; let valid1462 = false; valid1462 = true; var valid1463; if (data1028.name !== undefined) { const _errs1325 = errors; if (!(typeof data1028.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1463 = _errs1325 === errors; } else { valid1463 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1463) { var valid1464; if (data1028.label !== undefined) { const _errs1326 = errors; if (!(typeof data1028.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1464 = _errs1326 === errors; } else { valid1464 = true; } if (valid1464) { if (data1028.description !== undefined) { const _errs1327 = errors; if (!(typeof data1028.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1464 = _errs1327 === errors; } else { valid1464 = true; } if (valid1464) { for (const key321 in data1028) { if ( key321 !== "type" && key321 !== "name" && key321 !== "label" && key321 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/" + key321.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key321 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1462) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1461 = _errs1324 === errors; valid1452 = valid1461; } else if (tag52 === "genotype") { const _errs1328 = errors; let valid1466 = false; valid1466 = true; var valid1467; if (data1028.name !== undefined) { const _errs1329 = errors; if (!(typeof data1028.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1467 = _errs1329 === errors; } else { valid1467 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1467) { var valid1468; if (data1028.label !== undefined) { const _errs1330 = errors; if (!(typeof data1028.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1468 = _errs1330 === errors; } else { valid1468 = true; } if (valid1468) { if (data1028.description !== undefined) { const _errs1331 = errors; if (!(typeof data1028.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1468 = _errs1331 === errors; } else { valid1468 = true; } if (valid1468) { for (const key322 in data1028) { if ( key322 !== "type" && key322 !== "name" && key322 !== "label" && key322 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/" + key322.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key322 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1466) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1465 = _errs1328 === errors; valid1452 = valid1465; } else if (tag52 === "composed") { const _errs1332 = errors; let valid1470 = false; valid1470 = true; var valid1471; if (data1028.name !== undefined) { let data1041 = data1028.name; const _errs1333 = errors; if ( !( typeof data1041 == "string" && (data1041 === "clinVar" || data1041 === "confidenceInterval" || data1041 === "gene" || data1041 === "genotype" || data1041 === "genotype_maternal" || data1041 === "genotype_paternal" || data1041 === "gnomAdAf" || data1041 === "hpo" || data1041 === "inheritancePattern" || data1041 === "locus" || data1041 === "spanningReads" || data1041 === "vipC" || data1041 === "vipCS" || data1041 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.str.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1471 = _errs1333 === errors; } else { valid1471 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1471) { var valid1472; if (data1028.label !== undefined) { const _errs1334 = errors; if (!(typeof data1028.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1472 = _errs1334 === errors; } else { valid1472 = true; } if (valid1472) { if (data1028.description !== undefined) { const _errs1335 = errors; if (!(typeof data1028.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1472 = _errs1335 === errors; } else { valid1472 = true; } if (valid1472) { for (const key323 in data1028) { if ( key323 !== "type" && key323 !== "name" && key323 !== "label" && key323 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/" + key323.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key323 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1470) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1469 = _errs1332 === errors; valid1452 = valid1469; } else if (tag52 === "group") { const _errs1336 = errors; let valid1474 = false; valid1474 = true; var valid1475; if (data1028.fields !== undefined) { let data1044 = data1028.fields; const _errs1337 = errors; let valid1476 = false; if (!valid1476) { if (Array.isArray(data1044)) { var valid1477 = true; const len69 = data1044.length; for (let i69 = 0; i69 < len69; i69++) { let data1045 = data1044[i69]; const _errs1338 = errors; let valid1478 = false; if (data1045 && typeof data1045 == "object" && !Array.isArray(data1045)) { const tag53 = data1045.type; if (tag53 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag53 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag53 == "string") { if (tag53 === "fixed") { const _errs1339 = errors; let valid1480 = false; valid1480 = true; var valid1481; if (data1045.name !== undefined) { let data1046 = data1045.name; const _errs1340 = errors; if ( !( typeof data1046 == "string" && (data1046 === "chrom" || data1046 === "pos" || data1046 === "id" || data1046 === "ref" || data1046 === "alt" || data1046 === "qual" || data1046 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.str.elements.mapping .group.properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1481 = _errs1340 === errors; } else { valid1481 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1481) { var valid1482; if (data1045.label !== undefined) { const _errs1341 = errors; if (!(typeof data1045.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1482 = _errs1341 === errors; } else { valid1482 = true; } if (valid1482) { if (data1045.description !== undefined) { const _errs1342 = errors; if (!(typeof data1045.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1482 = _errs1342 === errors; } else { valid1482 = true; } if (valid1482) { for (const key324 in data1045) { if ( key324 !== "type" && key324 !== "name" && key324 !== "label" && key324 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/" + key324.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key324, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1480) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1479 = _errs1339 === errors; valid1478 = valid1479; } else if (tag53 === "info") { const _errs1343 = errors; let valid1484 = false; valid1484 = true; var valid1485; if (data1045.name !== undefined) { const _errs1344 = errors; if (!(typeof data1045.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1485 = _errs1344 === errors; } else { valid1485 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1485) { var valid1486; if (data1045.label !== undefined) { const _errs1345 = errors; if (!(typeof data1045.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1486 = _errs1345 === errors; } else { valid1486 = true; } if (valid1486) { if (data1045.description !== undefined) { const _errs1346 = errors; if (!(typeof data1045.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1486 = _errs1346 === errors; } else { valid1486 = true; } if (valid1486) { for (const key325 in data1045) { if ( key325 !== "type" && key325 !== "name" && key325 !== "label" && key325 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/" + key325.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key325, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1484) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1483 = _errs1343 === errors; valid1478 = valid1483; } else if (tag53 === "format") { const _errs1347 = errors; let valid1488 = false; valid1488 = true; var valid1489; if (data1045.name !== undefined) { const _errs1348 = errors; if (!(typeof data1045.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1489 = _errs1348 === errors; } else { valid1489 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1489) { var valid1490; if (data1045.label !== undefined) { const _errs1349 = errors; if (!(typeof data1045.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1490 = _errs1349 === errors; } else { valid1490 = true; } if (valid1490) { if (data1045.description !== undefined) { const _errs1350 = errors; if (!(typeof data1045.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1490 = _errs1350 === errors; } else { valid1490 = true; } if (valid1490) { for (const key326 in data1045) { if ( key326 !== "type" && key326 !== "name" && key326 !== "label" && key326 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/" + key326.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key326, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1488) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1487 = _errs1347 === errors; valid1478 = valid1487; } else if (tag53 === "genotype") { const _errs1351 = errors; let valid1492 = false; valid1492 = true; var valid1493; if (data1045.name !== undefined) { const _errs1352 = errors; if (!(typeof data1045.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1493 = _errs1352 === errors; } else { valid1493 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1493) { var valid1494; if (data1045.label !== undefined) { const _errs1353 = errors; if (!(typeof data1045.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1494 = _errs1353 === errors; } else { valid1494 = true; } if (valid1494) { if (data1045.description !== undefined) { const _errs1354 = errors; if (!(typeof data1045.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1494 = _errs1354 === errors; } else { valid1494 = true; } if (valid1494) { for (const key327 in data1045) { if ( key327 !== "type" && key327 !== "name" && key327 !== "label" && key327 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/" + key327.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key327, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1492) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1491 = _errs1351 === errors; valid1478 = valid1491; } else if (tag53 === "composed") { const _errs1355 = errors; let valid1496 = false; valid1496 = true; var valid1497; if (data1045.name !== undefined) { let data1058 = data1045.name; const _errs1356 = errors; if ( !( typeof data1058 == "string" && (data1058 === "clinVar" || data1058 === "gene" || data1058 === "genotype" || data1058 === "gnomAdAf" || data1058 === "hpo" || data1058 === "inheritancePattern" || data1058 === "locus" || data1058 === "ref" || data1058 === "vipC" || data1058 === "vipCS" || data1058 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.str.elements.mapping .group.properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1497 = _errs1356 === errors; } else { valid1497 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1497) { var valid1498; if (data1045.label !== undefined) { const _errs1357 = errors; if (!(typeof data1045.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1498 = _errs1357 === errors; } else { valid1498 = true; } if (valid1498) { if (data1045.description !== undefined) { const _errs1358 = errors; if (!(typeof data1045.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1498 = _errs1358 === errors; } else { valid1498 = true; } if (valid1498) { for (const key328 in data1045) { if ( key328 !== "type" && key328 !== "name" && key328 !== "label" && key328 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/" + key328.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key328, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1496) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1495 = _errs1355 === errors; valid1478 = valid1495; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag53 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag53 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1478) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields/" + i69, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1477 = _errs1338 === errors; if (!valid1477) { break; } } valid1476 = valid1477; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/fields", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1475 = _errs1337 === errors; } else { valid1475 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1475) { for (const key329 in data1028) { if (key329 !== "type" && key329 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/" + key329.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key329 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1474) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1473 = _errs1336 === errors; valid1452 = valid1473; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag52 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag52 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1452) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str/" + i68, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1451 = _errs1315 === errors; if (!valid1451) { break; } } valid1450 = valid1451; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/str", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1349 = _errs1314 === errors; } else { valid1349 = true; } if (valid1349) { if (data958.sv !== undefined) { let data1061 = data958.sv; const _errs1359 = errors; let valid1500 = false; if (!valid1500) { if (Array.isArray(data1061)) { var valid1501 = true; const len70 = data1061.length; for (let i70 = 0; i70 < len70; i70++) { let data1062 = data1061[i70]; const _errs1360 = errors; let valid1502 = false; if (data1062 && typeof data1062 == "object" && !Array.isArray(data1062)) { const tag54 = data1062.type; if (tag54 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag54 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag54 == "string") { if (tag54 === "fixed") { const _errs1361 = errors; let valid1504 = false; valid1504 = true; var valid1505; if (data1062.name !== undefined) { let data1063 = data1062.name; const _errs1362 = errors; if ( !( typeof data1063 == "string" && (data1063 === "chrom" || data1063 === "pos" || data1063 === "id" || data1063 === "ref" || data1063 === "alt" || data1063 === "qual" || data1063 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1505 = _errs1362 === errors; } else { valid1505 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1505) { var valid1506; if (data1062.label !== undefined) { const _errs1363 = errors; if (!(typeof data1062.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1506 = _errs1363 === errors; } else { valid1506 = true; } if (valid1506) { if (data1062.description !== undefined) { const _errs1364 = errors; if (!(typeof data1062.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1506 = _errs1364 === errors; } else { valid1506 = true; } if (valid1506) { for (const key330 in data1062) { if ( key330 !== "type" && key330 !== "name" && key330 !== "label" && key330 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/" + key330.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key330 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1504) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1503 = _errs1361 === errors; valid1502 = valid1503; } else if (tag54 === "info") { const _errs1365 = errors; let valid1508 = false; valid1508 = true; var valid1509; if (data1062.name !== undefined) { const _errs1366 = errors; if (!(typeof data1062.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1509 = _errs1366 === errors; } else { valid1509 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1509) { var valid1510; if (data1062.label !== undefined) { const _errs1367 = errors; if (!(typeof data1062.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1510 = _errs1367 === errors; } else { valid1510 = true; } if (valid1510) { if (data1062.description !== undefined) { const _errs1368 = errors; if (!(typeof data1062.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1510 = _errs1368 === errors; } else { valid1510 = true; } if (valid1510) { for (const key331 in data1062) { if ( key331 !== "type" && key331 !== "name" && key331 !== "label" && key331 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/" + key331.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key331 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1508) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1507 = _errs1365 === errors; valid1502 = valid1507; } else if (tag54 === "format") { const _errs1369 = errors; let valid1512 = false; valid1512 = true; var valid1513; if (data1062.name !== undefined) { const _errs1370 = errors; if (!(typeof data1062.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1513 = _errs1370 === errors; } else { valid1513 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1513) { var valid1514; if (data1062.label !== undefined) { const _errs1371 = errors; if (!(typeof data1062.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1514 = _errs1371 === errors; } else { valid1514 = true; } if (valid1514) { if (data1062.description !== undefined) { const _errs1372 = errors; if (!(typeof data1062.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1514 = _errs1372 === errors; } else { valid1514 = true; } if (valid1514) { for (const key332 in data1062) { if ( key332 !== "type" && key332 !== "name" && key332 !== "label" && key332 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/" + key332.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key332 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1512) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1511 = _errs1369 === errors; valid1502 = valid1511; } else if (tag54 === "genotype") { const _errs1373 = errors; let valid1516 = false; valid1516 = true; var valid1517; if (data1062.name !== undefined) { const _errs1374 = errors; if (!(typeof data1062.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1517 = _errs1374 === errors; } else { valid1517 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1517) { var valid1518; if (data1062.label !== undefined) { const _errs1375 = errors; if (!(typeof data1062.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1518 = _errs1375 === errors; } else { valid1518 = true; } if (valid1518) { if (data1062.description !== undefined) { const _errs1376 = errors; if (!(typeof data1062.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1518 = _errs1376 === errors; } else { valid1518 = true; } if (valid1518) { for (const key333 in data1062) { if ( key333 !== "type" && key333 !== "name" && key333 !== "label" && key333 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/" + key333.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key333 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1516) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1515 = _errs1373 === errors; valid1502 = valid1515; } else if (tag54 === "composed") { const _errs1377 = errors; let valid1520 = false; valid1520 = true; var valid1521; if (data1062.name !== undefined) { let data1075 = data1062.name; const _errs1378 = errors; if ( !( typeof data1075 == "string" && (data1075 === "clinVar" || data1075 === "confidenceInterval" || data1075 === "gene" || data1075 === "genotype" || data1075 === "genotype_maternal" || data1075 === "genotype_paternal" || data1075 === "gnomAdAf" || data1075 === "hpo" || data1075 === "inheritancePattern" || data1075 === "locus" || data1075 === "spanningReads" || data1075 === "vipC" || data1075 === "vipCS" || data1075 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1521 = _errs1378 === errors; } else { valid1521 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1521) { var valid1522; if (data1062.label !== undefined) { const _errs1379 = errors; if (!(typeof data1062.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1522 = _errs1379 === errors; } else { valid1522 = true; } if (valid1522) { if (data1062.description !== undefined) { const _errs1380 = errors; if (!(typeof data1062.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1522 = _errs1380 === errors; } else { valid1522 = true; } if (valid1522) { for (const key334 in data1062) { if ( key334 !== "type" && key334 !== "name" && key334 !== "label" && key334 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/" + key334.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key334 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1520) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1519 = _errs1377 === errors; valid1502 = valid1519; } else if (tag54 === "group") { const _errs1381 = errors; let valid1524 = false; valid1524 = true; var valid1525; if (data1062.fields !== undefined) { let data1078 = data1062.fields; const _errs1382 = errors; let valid1526 = false; if (!valid1526) { if (Array.isArray(data1078)) { var valid1527 = true; const len71 = data1078.length; for (let i71 = 0; i71 < len71; i71++) { let data1079 = data1078[i71]; const _errs1383 = errors; let valid1528 = false; if ( data1079 && typeof data1079 == "object" && !Array.isArray(data1079) ) { const tag55 = data1079.type; if (tag55 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag55 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag55 == "string") { if (tag55 === "fixed") { const _errs1384 = errors; let valid1530 = false; valid1530 = true; var valid1531; if (data1079.name !== undefined) { let data1080 = data1079.name; const _errs1385 = errors; if ( !( typeof data1080 == "string" && (data1080 === "chrom" || data1080 === "pos" || data1080 === "id" || data1080 === "ref" || data1080 === "alt" || data1080 === "qual" || data1080 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.sv.elements.mapping .group.properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1531 = _errs1385 === errors; } else { valid1531 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1531) { var valid1532; if (data1079.label !== undefined) { const _errs1386 = errors; if (!(typeof data1079.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1532 = _errs1386 === errors; } else { valid1532 = true; } if (valid1532) { if (data1079.description !== undefined) { const _errs1387 = errors; if (!(typeof data1079.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1532 = _errs1387 === errors; } else { valid1532 = true; } if (valid1532) { for (const key335 in data1079) { if ( key335 !== "type" && key335 !== "name" && key335 !== "label" && key335 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/" + key335.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key335, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1530) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1529 = _errs1384 === errors; valid1528 = valid1529; } else if (tag55 === "info") { const _errs1388 = errors; let valid1534 = false; valid1534 = true; var valid1535; if (data1079.name !== undefined) { const _errs1389 = errors; if (!(typeof data1079.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1535 = _errs1389 === errors; } else { valid1535 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1535) { var valid1536; if (data1079.label !== undefined) { const _errs1390 = errors; if (!(typeof data1079.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1536 = _errs1390 === errors; } else { valid1536 = true; } if (valid1536) { if (data1079.description !== undefined) { const _errs1391 = errors; if (!(typeof data1079.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1536 = _errs1391 === errors; } else { valid1536 = true; } if (valid1536) { for (const key336 in data1079) { if ( key336 !== "type" && key336 !== "name" && key336 !== "label" && key336 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/" + key336.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key336, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1534) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1533 = _errs1388 === errors; valid1528 = valid1533; } else if (tag55 === "format") { const _errs1392 = errors; let valid1538 = false; valid1538 = true; var valid1539; if (data1079.name !== undefined) { const _errs1393 = errors; if (!(typeof data1079.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1539 = _errs1393 === errors; } else { valid1539 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1539) { var valid1540; if (data1079.label !== undefined) { const _errs1394 = errors; if (!(typeof data1079.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1540 = _errs1394 === errors; } else { valid1540 = true; } if (valid1540) { if (data1079.description !== undefined) { const _errs1395 = errors; if (!(typeof data1079.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1540 = _errs1395 === errors; } else { valid1540 = true; } if (valid1540) { for (const key337 in data1079) { if ( key337 !== "type" && key337 !== "name" && key337 !== "label" && key337 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/" + key337.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key337, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1538) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1537 = _errs1392 === errors; valid1528 = valid1537; } else if (tag55 === "genotype") { const _errs1396 = errors; let valid1542 = false; valid1542 = true; var valid1543; if (data1079.name !== undefined) { const _errs1397 = errors; if (!(typeof data1079.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1543 = _errs1397 === errors; } else { valid1543 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1543) { var valid1544; if (data1079.label !== undefined) { const _errs1398 = errors; if (!(typeof data1079.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1544 = _errs1398 === errors; } else { valid1544 = true; } if (valid1544) { if (data1079.description !== undefined) { const _errs1399 = errors; if (!(typeof data1079.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1544 = _errs1399 === errors; } else { valid1544 = true; } if (valid1544) { for (const key338 in data1079) { if ( key338 !== "type" && key338 !== "name" && key338 !== "label" && key338 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/" + key338.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key338, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1542) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1541 = _errs1396 === errors; valid1528 = valid1541; } else if (tag55 === "composed") { const _errs1400 = errors; let valid1546 = false; valid1546 = true; var valid1547; if (data1079.name !== undefined) { let data1092 = data1079.name; const _errs1401 = errors; if ( !( typeof data1092 == "string" && (data1092 === "clinVar" || data1092 === "gene" || data1092 === "genotype" || data1092 === "gnomAdAf" || data1092 === "hpo" || data1092 === "inheritancePattern" || data1092 === "locus" || data1092 === "ref" || data1092 === "vipC" || data1092 === "vipCS" || data1092 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/name", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant.optionalProperties .sample_cells.optionalProperties.sv.elements.mapping .group.properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1547 = _errs1401 === errors; } else { valid1547 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1547) { var valid1548; if (data1079.label !== undefined) { const _errs1402 = errors; if (!(typeof data1079.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/label", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1548 = _errs1402 === errors; } else { valid1548 = true; } if (valid1548) { if (data1079.description !== undefined) { const _errs1403 = errors; if (!(typeof data1079.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/description", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1548 = _errs1403 === errors; } else { valid1548 = true; } if (valid1548) { for (const key339 in data1079) { if ( key339 !== "type" && key339 !== "name" && key339 !== "label" && key339 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/" + key339.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key339, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1546) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1545 = _errs1400 === errors; valid1528 = valid1545; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag55 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag55 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1528) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields/" + i71, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1527 = _errs1383 === errors; if (!valid1527) { break; } } valid1526 = valid1527; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/fields", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1525 = _errs1382 === errors; } else { valid1525 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1525) { for (const key340 in data1062) { if (key340 !== "type" && key340 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/" + key340.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key340 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1524) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1523 = _errs1381 === errors; valid1502 = valid1523; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag54 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70 + "/type", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag54 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1502) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv/" + i70, schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1501 = _errs1360 === errors; if (!valid1501) { break; } } valid1500 = valid1501; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/sv", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1349 = _errs1359 === errors; } else { valid1349 = true; } if (valid1349) { for (const key341 in data958) { if (key341 !== "all" && key341 !== "snv" && key341 !== "str" && key341 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells/" + key341.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant/optionalProperties/sample_cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key341 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid1347) { validate57.errors = [ { instancePath: instancePath + "/sample_variant/sample_cells", schemaPath: "/properties/sample_variant/optionalProperties/sample_cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1346 = _errs1223 === errors; } else { valid1346 = true; } if (valid1346) { for (const key342 in data820) { if (key342 !== "cells" && key342 !== "sample_cells") { validate57.errors = [ { instancePath: instancePath + "/sample_variant/" + key342.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant", keyword: "properties", params: { error: "additional", additionalProperty: key342 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1141) { validate57.errors = [ { instancePath: instancePath + "/sample_variant", schemaPath: "/properties/sample_variant/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs1041 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/sample_variant", keyword: "properties", params: { error: "missing", missingProperty: "sample_variant" }, message: "must have property 'sample_variant'", }, ]; return false; } if (valid1) { if (data.variant !== undefined) { let data1095 = data.variant; const _errs1404 = errors; let valid1550 = false; if (data1095 && typeof data1095 == "object" && !Array.isArray(data1095)) { valid1550 = true; var valid1551; if (data1095.cells !== undefined) { let data1096 = data1095.cells; const _errs1405 = errors; let valid1552 = false; if (data1096 && typeof data1096 == "object" && !Array.isArray(data1096)) { valid1552 = true; var valid1554; if (data1096.all !== undefined) { let data1097 = data1096.all; const _errs1406 = errors; let valid1555 = false; if (!valid1555) { if (Array.isArray(data1097)) { var valid1556 = true; const len72 = data1097.length; for (let i72 = 0; i72 < len72; i72++) { let data1098 = data1097[i72]; const _errs1407 = errors; let valid1557 = false; if (data1098 && typeof data1098 == "object" && !Array.isArray(data1098)) { const tag56 = data1098.type; if (tag56 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag56 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag56 == "string") { if (tag56 === "fixed") { const _errs1408 = errors; let valid1559 = false; valid1559 = true; var valid1560; if (data1098.name !== undefined) { let data1099 = data1098.name; const _errs1409 = errors; if ( !( typeof data1099 == "string" && (data1099 === "chrom" || data1099 === "pos" || data1099 === "id" || data1099 === "ref" || data1099 === "alt" || data1099 === "qual" || data1099 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.all .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1560 = _errs1409 === errors; } else { valid1560 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1560) { var valid1561; if (data1098.label !== undefined) { const _errs1410 = errors; if (!(typeof data1098.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1561 = _errs1410 === errors; } else { valid1561 = true; } if (valid1561) { if (data1098.description !== undefined) { const _errs1411 = errors; if (!(typeof data1098.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1561 = _errs1411 === errors; } else { valid1561 = true; } if (valid1561) { for (const key343 in data1098) { if ( key343 !== "type" && key343 !== "name" && key343 !== "label" && key343 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/" + key343.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key343 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1559) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1558 = _errs1408 === errors; valid1557 = valid1558; } else if (tag56 === "info") { const _errs1412 = errors; let valid1563 = false; valid1563 = true; var valid1564; if (data1098.name !== undefined) { const _errs1413 = errors; if (!(typeof data1098.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1564 = _errs1413 === errors; } else { valid1564 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1564) { var valid1565; if (data1098.label !== undefined) { const _errs1414 = errors; if (!(typeof data1098.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1565 = _errs1414 === errors; } else { valid1565 = true; } if (valid1565) { if (data1098.description !== undefined) { const _errs1415 = errors; if (!(typeof data1098.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1565 = _errs1415 === errors; } else { valid1565 = true; } if (valid1565) { for (const key344 in data1098) { if ( key344 !== "type" && key344 !== "name" && key344 !== "label" && key344 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/" + key344.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key344 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1563) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1562 = _errs1412 === errors; valid1557 = valid1562; } else if (tag56 === "format") { const _errs1416 = errors; let valid1567 = false; valid1567 = true; var valid1568; if (data1098.name !== undefined) { const _errs1417 = errors; if (!(typeof data1098.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1568 = _errs1417 === errors; } else { valid1568 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1568) { var valid1569; if (data1098.label !== undefined) { const _errs1418 = errors; if (!(typeof data1098.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1569 = _errs1418 === errors; } else { valid1569 = true; } if (valid1569) { if (data1098.description !== undefined) { const _errs1419 = errors; if (!(typeof data1098.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1569 = _errs1419 === errors; } else { valid1569 = true; } if (valid1569) { for (const key345 in data1098) { if ( key345 !== "type" && key345 !== "name" && key345 !== "label" && key345 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/" + key345.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key345 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1567) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1566 = _errs1416 === errors; valid1557 = valid1566; } else if (tag56 === "genotype") { const _errs1420 = errors; let valid1571 = false; valid1571 = true; var valid1572; if (data1098.name !== undefined) { const _errs1421 = errors; if (!(typeof data1098.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1572 = _errs1421 === errors; } else { valid1572 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1572) { var valid1573; if (data1098.label !== undefined) { const _errs1422 = errors; if (!(typeof data1098.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1573 = _errs1422 === errors; } else { valid1573 = true; } if (valid1573) { if (data1098.description !== undefined) { const _errs1423 = errors; if (!(typeof data1098.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1573 = _errs1423 === errors; } else { valid1573 = true; } if (valid1573) { for (const key346 in data1098) { if ( key346 !== "type" && key346 !== "name" && key346 !== "label" && key346 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/" + key346.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key346 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1571) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1570 = _errs1420 === errors; valid1557 = valid1570; } else if (tag56 === "composed") { const _errs1424 = errors; let valid1575 = false; valid1575 = true; var valid1576; if (data1098.name !== undefined) { let data1111 = data1098.name; const _errs1425 = errors; if ( !( typeof data1111 == "string" && (data1111 === "clinVar" || data1111 === "confidenceInterval" || data1111 === "gene" || data1111 === "genotype" || data1111 === "genotype_maternal" || data1111 === "genotype_paternal" || data1111 === "gnomAdAf" || data1111 === "hpo" || data1111 === "inheritancePattern" || data1111 === "locus" || data1111 === "spanningReads" || data1111 === "vipC" || data1111 === "vipCS" || data1111 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.all .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1576 = _errs1425 === errors; } else { valid1576 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1576) { var valid1577; if (data1098.label !== undefined) { const _errs1426 = errors; if (!(typeof data1098.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1577 = _errs1426 === errors; } else { valid1577 = true; } if (valid1577) { if (data1098.description !== undefined) { const _errs1427 = errors; if (!(typeof data1098.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1577 = _errs1427 === errors; } else { valid1577 = true; } if (valid1577) { for (const key347 in data1098) { if ( key347 !== "type" && key347 !== "name" && key347 !== "label" && key347 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/" + key347.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key347 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1575) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1574 = _errs1424 === errors; valid1557 = valid1574; } else if (tag56 === "group") { const _errs1428 = errors; let valid1579 = false; valid1579 = true; var valid1580; if (data1098.fields !== undefined) { let data1114 = data1098.fields; const _errs1429 = errors; let valid1581 = false; if (!valid1581) { if (Array.isArray(data1114)) { var valid1582 = true; const len73 = data1114.length; for (let i73 = 0; i73 < len73; i73++) { let data1115 = data1114[i73]; const _errs1430 = errors; let valid1583 = false; if (data1115 && typeof data1115 == "object" && !Array.isArray(data1115)) { const tag57 = data1115.type; if (tag57 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag57 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag57 == "string") { if (tag57 === "fixed") { const _errs1431 = errors; let valid1585 = false; valid1585 = true; var valid1586; if (data1115.name !== undefined) { let data1116 = data1115.name; const _errs1432 = errors; if ( !( typeof data1116 == "string" && (data1116 === "chrom" || data1116 === "pos" || data1116 === "id" || data1116 === "ref" || data1116 === "alt" || data1116 === "qual" || data1116 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.all.elements.mapping.group.properties .fields.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1586 = _errs1432 === errors; } else { valid1586 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1586) { var valid1587; if (data1115.label !== undefined) { const _errs1433 = errors; if (!(typeof data1115.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1587 = _errs1433 === errors; } else { valid1587 = true; } if (valid1587) { if (data1115.description !== undefined) { const _errs1434 = errors; if (!(typeof data1115.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1587 = _errs1434 === errors; } else { valid1587 = true; } if (valid1587) { for (const key348 in data1115) { if ( key348 !== "type" && key348 !== "name" && key348 !== "label" && key348 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/" + key348.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key348, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1585) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1584 = _errs1431 === errors; valid1583 = valid1584; } else if (tag57 === "info") { const _errs1435 = errors; let valid1589 = false; valid1589 = true; var valid1590; if (data1115.name !== undefined) { const _errs1436 = errors; if (!(typeof data1115.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1590 = _errs1436 === errors; } else { valid1590 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1590) { var valid1591; if (data1115.label !== undefined) { const _errs1437 = errors; if (!(typeof data1115.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1591 = _errs1437 === errors; } else { valid1591 = true; } if (valid1591) { if (data1115.description !== undefined) { const _errs1438 = errors; if (!(typeof data1115.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1591 = _errs1438 === errors; } else { valid1591 = true; } if (valid1591) { for (const key349 in data1115) { if ( key349 !== "type" && key349 !== "name" && key349 !== "label" && key349 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/" + key349.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key349, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1589) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1588 = _errs1435 === errors; valid1583 = valid1588; } else if (tag57 === "format") { const _errs1439 = errors; let valid1593 = false; valid1593 = true; var valid1594; if (data1115.name !== undefined) { const _errs1440 = errors; if (!(typeof data1115.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1594 = _errs1440 === errors; } else { valid1594 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1594) { var valid1595; if (data1115.label !== undefined) { const _errs1441 = errors; if (!(typeof data1115.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1595 = _errs1441 === errors; } else { valid1595 = true; } if (valid1595) { if (data1115.description !== undefined) { const _errs1442 = errors; if (!(typeof data1115.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1595 = _errs1442 === errors; } else { valid1595 = true; } if (valid1595) { for (const key350 in data1115) { if ( key350 !== "type" && key350 !== "name" && key350 !== "label" && key350 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/" + key350.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key350, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1593) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1592 = _errs1439 === errors; valid1583 = valid1592; } else if (tag57 === "genotype") { const _errs1443 = errors; let valid1597 = false; valid1597 = true; var valid1598; if (data1115.name !== undefined) { const _errs1444 = errors; if (!(typeof data1115.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1598 = _errs1444 === errors; } else { valid1598 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1598) { var valid1599; if (data1115.label !== undefined) { const _errs1445 = errors; if (!(typeof data1115.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1599 = _errs1445 === errors; } else { valid1599 = true; } if (valid1599) { if (data1115.description !== undefined) { const _errs1446 = errors; if (!(typeof data1115.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1599 = _errs1446 === errors; } else { valid1599 = true; } if (valid1599) { for (const key351 in data1115) { if ( key351 !== "type" && key351 !== "name" && key351 !== "label" && key351 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/" + key351.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key351, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1597) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1596 = _errs1443 === errors; valid1583 = valid1596; } else if (tag57 === "composed") { const _errs1447 = errors; let valid1601 = false; valid1601 = true; var valid1602; if (data1115.name !== undefined) { let data1128 = data1115.name; const _errs1448 = errors; if ( !( typeof data1128 == "string" && (data1128 === "clinVar" || data1128 === "gene" || data1128 === "genotype" || data1128 === "gnomAdAf" || data1128 === "hpo" || data1128 === "inheritancePattern" || data1128 === "locus" || data1128 === "ref" || data1128 === "vipC" || data1128 === "vipCS" || data1128 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.all.elements.mapping.group.properties .fields.elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1602 = _errs1448 === errors; } else { valid1602 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1602) { var valid1603; if (data1115.label !== undefined) { const _errs1449 = errors; if (!(typeof data1115.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1603 = _errs1449 === errors; } else { valid1603 = true; } if (valid1603) { if (data1115.description !== undefined) { const _errs1450 = errors; if (!(typeof data1115.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1603 = _errs1450 === errors; } else { valid1603 = true; } if (valid1603) { for (const key352 in data1115) { if ( key352 !== "type" && key352 !== "name" && key352 !== "label" && key352 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/" + key352.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key352, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1601) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1600 = _errs1447 === errors; valid1583 = valid1600; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag57 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag57 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1583) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields/" + i73, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1582 = _errs1430 === errors; if (!valid1582) { break; } } valid1581 = valid1582; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/fields", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1580 = _errs1429 === errors; } else { valid1580 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1580) { for (const key353 in data1098) { if (key353 !== "type" && key353 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/" + key353.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key353 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1579) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1578 = _errs1428 === errors; valid1557 = valid1578; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag56 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag56 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1557) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all/" + i72, schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1556 = _errs1407 === errors; if (!valid1556) { break; } } valid1555 = valid1556; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/all", schemaPath: "/properties/variant/properties/cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1554 = _errs1406 === errors; } else { valid1554 = true; } if (valid1554) { if (data1096.snv !== undefined) { let data1131 = data1096.snv; const _errs1451 = errors; let valid1605 = false; if (!valid1605) { if (Array.isArray(data1131)) { var valid1606 = true; const len74 = data1131.length; for (let i74 = 0; i74 < len74; i74++) { let data1132 = data1131[i74]; const _errs1452 = errors; let valid1607 = false; if (data1132 && typeof data1132 == "object" && !Array.isArray(data1132)) { const tag58 = data1132.type; if (tag58 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag58 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag58 == "string") { if (tag58 === "fixed") { const _errs1453 = errors; let valid1609 = false; valid1609 = true; var valid1610; if (data1132.name !== undefined) { let data1133 = data1132.name; const _errs1454 = errors; if ( !( typeof data1133 == "string" && (data1133 === "chrom" || data1133 === "pos" || data1133 === "id" || data1133 === "ref" || data1133 === "alt" || data1133 === "qual" || data1133 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.snv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1610 = _errs1454 === errors; } else { valid1610 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1610) { var valid1611; if (data1132.label !== undefined) { const _errs1455 = errors; if (!(typeof data1132.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1611 = _errs1455 === errors; } else { valid1611 = true; } if (valid1611) { if (data1132.description !== undefined) { const _errs1456 = errors; if (!(typeof data1132.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1611 = _errs1456 === errors; } else { valid1611 = true; } if (valid1611) { for (const key354 in data1132) { if ( key354 !== "type" && key354 !== "name" && key354 !== "label" && key354 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/" + key354.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key354 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1609) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1608 = _errs1453 === errors; valid1607 = valid1608; } else if (tag58 === "info") { const _errs1457 = errors; let valid1613 = false; valid1613 = true; var valid1614; if (data1132.name !== undefined) { const _errs1458 = errors; if (!(typeof data1132.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1614 = _errs1458 === errors; } else { valid1614 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1614) { var valid1615; if (data1132.label !== undefined) { const _errs1459 = errors; if (!(typeof data1132.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1615 = _errs1459 === errors; } else { valid1615 = true; } if (valid1615) { if (data1132.description !== undefined) { const _errs1460 = errors; if (!(typeof data1132.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1615 = _errs1460 === errors; } else { valid1615 = true; } if (valid1615) { for (const key355 in data1132) { if ( key355 !== "type" && key355 !== "name" && key355 !== "label" && key355 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/" + key355.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key355 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1613) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1612 = _errs1457 === errors; valid1607 = valid1612; } else if (tag58 === "format") { const _errs1461 = errors; let valid1617 = false; valid1617 = true; var valid1618; if (data1132.name !== undefined) { const _errs1462 = errors; if (!(typeof data1132.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1618 = _errs1462 === errors; } else { valid1618 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1618) { var valid1619; if (data1132.label !== undefined) { const _errs1463 = errors; if (!(typeof data1132.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1619 = _errs1463 === errors; } else { valid1619 = true; } if (valid1619) { if (data1132.description !== undefined) { const _errs1464 = errors; if (!(typeof data1132.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1619 = _errs1464 === errors; } else { valid1619 = true; } if (valid1619) { for (const key356 in data1132) { if ( key356 !== "type" && key356 !== "name" && key356 !== "label" && key356 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/" + key356.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key356 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1617) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1616 = _errs1461 === errors; valid1607 = valid1616; } else if (tag58 === "genotype") { const _errs1465 = errors; let valid1621 = false; valid1621 = true; var valid1622; if (data1132.name !== undefined) { const _errs1466 = errors; if (!(typeof data1132.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1622 = _errs1466 === errors; } else { valid1622 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1622) { var valid1623; if (data1132.label !== undefined) { const _errs1467 = errors; if (!(typeof data1132.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1623 = _errs1467 === errors; } else { valid1623 = true; } if (valid1623) { if (data1132.description !== undefined) { const _errs1468 = errors; if (!(typeof data1132.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1623 = _errs1468 === errors; } else { valid1623 = true; } if (valid1623) { for (const key357 in data1132) { if ( key357 !== "type" && key357 !== "name" && key357 !== "label" && key357 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/" + key357.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key357 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1621) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1620 = _errs1465 === errors; valid1607 = valid1620; } else if (tag58 === "composed") { const _errs1469 = errors; let valid1625 = false; valid1625 = true; var valid1626; if (data1132.name !== undefined) { let data1145 = data1132.name; const _errs1470 = errors; if ( !( typeof data1145 == "string" && (data1145 === "clinVar" || data1145 === "confidenceInterval" || data1145 === "gene" || data1145 === "genotype" || data1145 === "genotype_maternal" || data1145 === "genotype_paternal" || data1145 === "gnomAdAf" || data1145 === "hpo" || data1145 === "inheritancePattern" || data1145 === "locus" || data1145 === "spanningReads" || data1145 === "vipC" || data1145 === "vipCS" || data1145 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.snv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1626 = _errs1470 === errors; } else { valid1626 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1626) { var valid1627; if (data1132.label !== undefined) { const _errs1471 = errors; if (!(typeof data1132.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1627 = _errs1471 === errors; } else { valid1627 = true; } if (valid1627) { if (data1132.description !== undefined) { const _errs1472 = errors; if (!(typeof data1132.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1627 = _errs1472 === errors; } else { valid1627 = true; } if (valid1627) { for (const key358 in data1132) { if ( key358 !== "type" && key358 !== "name" && key358 !== "label" && key358 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/" + key358.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key358 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1625) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1624 = _errs1469 === errors; valid1607 = valid1624; } else if (tag58 === "group") { const _errs1473 = errors; let valid1629 = false; valid1629 = true; var valid1630; if (data1132.fields !== undefined) { let data1148 = data1132.fields; const _errs1474 = errors; let valid1631 = false; if (!valid1631) { if (Array.isArray(data1148)) { var valid1632 = true; const len75 = data1148.length; for (let i75 = 0; i75 < len75; i75++) { let data1149 = data1148[i75]; const _errs1475 = errors; let valid1633 = false; if (data1149 && typeof data1149 == "object" && !Array.isArray(data1149)) { const tag59 = data1149.type; if (tag59 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag59 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag59 == "string") { if (tag59 === "fixed") { const _errs1476 = errors; let valid1635 = false; valid1635 = true; var valid1636; if (data1149.name !== undefined) { let data1150 = data1149.name; const _errs1477 = errors; if ( !( typeof data1150 == "string" && (data1150 === "chrom" || data1150 === "pos" || data1150 === "id" || data1150 === "ref" || data1150 === "alt" || data1150 === "qual" || data1150 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.snv.elements.mapping.group .properties.fields.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1636 = _errs1477 === errors; } else { valid1636 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1636) { var valid1637; if (data1149.label !== undefined) { const _errs1478 = errors; if (!(typeof data1149.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1637 = _errs1478 === errors; } else { valid1637 = true; } if (valid1637) { if (data1149.description !== undefined) { const _errs1479 = errors; if (!(typeof data1149.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1637 = _errs1479 === errors; } else { valid1637 = true; } if (valid1637) { for (const key359 in data1149) { if ( key359 !== "type" && key359 !== "name" && key359 !== "label" && key359 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/" + key359.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key359, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1635) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1634 = _errs1476 === errors; valid1633 = valid1634; } else if (tag59 === "info") { const _errs1480 = errors; let valid1639 = false; valid1639 = true; var valid1640; if (data1149.name !== undefined) { const _errs1481 = errors; if (!(typeof data1149.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1640 = _errs1481 === errors; } else { valid1640 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1640) { var valid1641; if (data1149.label !== undefined) { const _errs1482 = errors; if (!(typeof data1149.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1641 = _errs1482 === errors; } else { valid1641 = true; } if (valid1641) { if (data1149.description !== undefined) { const _errs1483 = errors; if (!(typeof data1149.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1641 = _errs1483 === errors; } else { valid1641 = true; } if (valid1641) { for (const key360 in data1149) { if ( key360 !== "type" && key360 !== "name" && key360 !== "label" && key360 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/" + key360.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key360, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1639) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1638 = _errs1480 === errors; valid1633 = valid1638; } else if (tag59 === "format") { const _errs1484 = errors; let valid1643 = false; valid1643 = true; var valid1644; if (data1149.name !== undefined) { const _errs1485 = errors; if (!(typeof data1149.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1644 = _errs1485 === errors; } else { valid1644 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1644) { var valid1645; if (data1149.label !== undefined) { const _errs1486 = errors; if (!(typeof data1149.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1645 = _errs1486 === errors; } else { valid1645 = true; } if (valid1645) { if (data1149.description !== undefined) { const _errs1487 = errors; if (!(typeof data1149.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1645 = _errs1487 === errors; } else { valid1645 = true; } if (valid1645) { for (const key361 in data1149) { if ( key361 !== "type" && key361 !== "name" && key361 !== "label" && key361 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/" + key361.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key361, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1643) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1642 = _errs1484 === errors; valid1633 = valid1642; } else if (tag59 === "genotype") { const _errs1488 = errors; let valid1647 = false; valid1647 = true; var valid1648; if (data1149.name !== undefined) { const _errs1489 = errors; if (!(typeof data1149.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1648 = _errs1489 === errors; } else { valid1648 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1648) { var valid1649; if (data1149.label !== undefined) { const _errs1490 = errors; if (!(typeof data1149.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1649 = _errs1490 === errors; } else { valid1649 = true; } if (valid1649) { if (data1149.description !== undefined) { const _errs1491 = errors; if (!(typeof data1149.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1649 = _errs1491 === errors; } else { valid1649 = true; } if (valid1649) { for (const key362 in data1149) { if ( key362 !== "type" && key362 !== "name" && key362 !== "label" && key362 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/" + key362.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key362, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1647) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1646 = _errs1488 === errors; valid1633 = valid1646; } else if (tag59 === "composed") { const _errs1492 = errors; let valid1651 = false; valid1651 = true; var valid1652; if (data1149.name !== undefined) { let data1162 = data1149.name; const _errs1493 = errors; if ( !( typeof data1162 == "string" && (data1162 === "clinVar" || data1162 === "gene" || data1162 === "genotype" || data1162 === "gnomAdAf" || data1162 === "hpo" || data1162 === "inheritancePattern" || data1162 === "locus" || data1162 === "ref" || data1162 === "vipC" || data1162 === "vipCS" || data1162 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.snv.elements.mapping.group .properties.fields.elements.mapping.composed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1652 = _errs1493 === errors; } else { valid1652 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1652) { var valid1653; if (data1149.label !== undefined) { const _errs1494 = errors; if (!(typeof data1149.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1653 = _errs1494 === errors; } else { valid1653 = true; } if (valid1653) { if (data1149.description !== undefined) { const _errs1495 = errors; if (!(typeof data1149.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1653 = _errs1495 === errors; } else { valid1653 = true; } if (valid1653) { for (const key363 in data1149) { if ( key363 !== "type" && key363 !== "name" && key363 !== "label" && key363 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/" + key363.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key363, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1651) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1650 = _errs1492 === errors; valid1633 = valid1650; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag59 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag59 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1633) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields/" + i75, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1632 = _errs1475 === errors; if (!valid1632) { break; } } valid1631 = valid1632; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/fields", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1630 = _errs1474 === errors; } else { valid1630 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1630) { for (const key364 in data1132) { if (key364 !== "type" && key364 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/" + key364.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key364 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1629) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1628 = _errs1473 === errors; valid1607 = valid1628; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag58 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag58 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1607) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv/" + i74, schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1606 = _errs1452 === errors; if (!valid1606) { break; } } valid1605 = valid1606; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/snv", schemaPath: "/properties/variant/properties/cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1554 = _errs1451 === errors; } else { valid1554 = true; } if (valid1554) { if (data1096.str !== undefined) { let data1165 = data1096.str; const _errs1496 = errors; let valid1655 = false; if (!valid1655) { if (Array.isArray(data1165)) { var valid1656 = true; const len76 = data1165.length; for (let i76 = 0; i76 < len76; i76++) { let data1166 = data1165[i76]; const _errs1497 = errors; let valid1657 = false; if (data1166 && typeof data1166 == "object" && !Array.isArray(data1166)) { const tag60 = data1166.type; if (tag60 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag60 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag60 == "string") { if (tag60 === "fixed") { const _errs1498 = errors; let valid1659 = false; valid1659 = true; var valid1660; if (data1166.name !== undefined) { let data1167 = data1166.name; const _errs1499 = errors; if ( !( typeof data1167 == "string" && (data1167 === "chrom" || data1167 === "pos" || data1167 === "id" || data1167 === "ref" || data1167 === "alt" || data1167 === "qual" || data1167 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.str .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1660 = _errs1499 === errors; } else { valid1660 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1660) { var valid1661; if (data1166.label !== undefined) { const _errs1500 = errors; if (!(typeof data1166.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1661 = _errs1500 === errors; } else { valid1661 = true; } if (valid1661) { if (data1166.description !== undefined) { const _errs1501 = errors; if (!(typeof data1166.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1661 = _errs1501 === errors; } else { valid1661 = true; } if (valid1661) { for (const key365 in data1166) { if ( key365 !== "type" && key365 !== "name" && key365 !== "label" && key365 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/" + key365.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key365 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1659) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1658 = _errs1498 === errors; valid1657 = valid1658; } else if (tag60 === "info") { const _errs1502 = errors; let valid1663 = false; valid1663 = true; var valid1664; if (data1166.name !== undefined) { const _errs1503 = errors; if (!(typeof data1166.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1664 = _errs1503 === errors; } else { valid1664 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1664) { var valid1665; if (data1166.label !== undefined) { const _errs1504 = errors; if (!(typeof data1166.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1665 = _errs1504 === errors; } else { valid1665 = true; } if (valid1665) { if (data1166.description !== undefined) { const _errs1505 = errors; if (!(typeof data1166.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1665 = _errs1505 === errors; } else { valid1665 = true; } if (valid1665) { for (const key366 in data1166) { if ( key366 !== "type" && key366 !== "name" && key366 !== "label" && key366 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/" + key366.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key366 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1663) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1662 = _errs1502 === errors; valid1657 = valid1662; } else if (tag60 === "format") { const _errs1506 = errors; let valid1667 = false; valid1667 = true; var valid1668; if (data1166.name !== undefined) { const _errs1507 = errors; if (!(typeof data1166.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1668 = _errs1507 === errors; } else { valid1668 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1668) { var valid1669; if (data1166.label !== undefined) { const _errs1508 = errors; if (!(typeof data1166.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1669 = _errs1508 === errors; } else { valid1669 = true; } if (valid1669) { if (data1166.description !== undefined) { const _errs1509 = errors; if (!(typeof data1166.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1669 = _errs1509 === errors; } else { valid1669 = true; } if (valid1669) { for (const key367 in data1166) { if ( key367 !== "type" && key367 !== "name" && key367 !== "label" && key367 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/" + key367.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key367 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1667) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1666 = _errs1506 === errors; valid1657 = valid1666; } else if (tag60 === "genotype") { const _errs1510 = errors; let valid1671 = false; valid1671 = true; var valid1672; if (data1166.name !== undefined) { const _errs1511 = errors; if (!(typeof data1166.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1672 = _errs1511 === errors; } else { valid1672 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1672) { var valid1673; if (data1166.label !== undefined) { const _errs1512 = errors; if (!(typeof data1166.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1673 = _errs1512 === errors; } else { valid1673 = true; } if (valid1673) { if (data1166.description !== undefined) { const _errs1513 = errors; if (!(typeof data1166.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1673 = _errs1513 === errors; } else { valid1673 = true; } if (valid1673) { for (const key368 in data1166) { if ( key368 !== "type" && key368 !== "name" && key368 !== "label" && key368 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/" + key368.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key368 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1671) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1670 = _errs1510 === errors; valid1657 = valid1670; } else if (tag60 === "composed") { const _errs1514 = errors; let valid1675 = false; valid1675 = true; var valid1676; if (data1166.name !== undefined) { let data1179 = data1166.name; const _errs1515 = errors; if ( !( typeof data1179 == "string" && (data1179 === "clinVar" || data1179 === "confidenceInterval" || data1179 === "gene" || data1179 === "genotype" || data1179 === "genotype_maternal" || data1179 === "genotype_paternal" || data1179 === "gnomAdAf" || data1179 === "hpo" || data1179 === "inheritancePattern" || data1179 === "locus" || data1179 === "spanningReads" || data1179 === "vipC" || data1179 === "vipCS" || data1179 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.str .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1676 = _errs1515 === errors; } else { valid1676 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1676) { var valid1677; if (data1166.label !== undefined) { const _errs1516 = errors; if (!(typeof data1166.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1677 = _errs1516 === errors; } else { valid1677 = true; } if (valid1677) { if (data1166.description !== undefined) { const _errs1517 = errors; if (!(typeof data1166.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1677 = _errs1517 === errors; } else { valid1677 = true; } if (valid1677) { for (const key369 in data1166) { if ( key369 !== "type" && key369 !== "name" && key369 !== "label" && key369 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/" + key369.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key369 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1675) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1674 = _errs1514 === errors; valid1657 = valid1674; } else if (tag60 === "group") { const _errs1518 = errors; let valid1679 = false; valid1679 = true; var valid1680; if (data1166.fields !== undefined) { let data1182 = data1166.fields; const _errs1519 = errors; let valid1681 = false; if (!valid1681) { if (Array.isArray(data1182)) { var valid1682 = true; const len77 = data1182.length; for (let i77 = 0; i77 < len77; i77++) { let data1183 = data1182[i77]; const _errs1520 = errors; let valid1683 = false; if (data1183 && typeof data1183 == "object" && !Array.isArray(data1183)) { const tag61 = data1183.type; if (tag61 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag61 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag61 == "string") { if (tag61 === "fixed") { const _errs1521 = errors; let valid1685 = false; valid1685 = true; var valid1686; if (data1183.name !== undefined) { let data1184 = data1183.name; const _errs1522 = errors; if ( !( typeof data1184 == "string" && (data1184 === "chrom" || data1184 === "pos" || data1184 === "id" || data1184 === "ref" || data1184 === "alt" || data1184 === "qual" || data1184 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.str.elements.mapping.group .properties.fields.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1686 = _errs1522 === errors; } else { valid1686 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1686) { var valid1687; if (data1183.label !== undefined) { const _errs1523 = errors; if (!(typeof data1183.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1687 = _errs1523 === errors; } else { valid1687 = true; } if (valid1687) { if (data1183.description !== undefined) { const _errs1524 = errors; if (!(typeof data1183.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1687 = _errs1524 === errors; } else { valid1687 = true; } if (valid1687) { for (const key370 in data1183) { if ( key370 !== "type" && key370 !== "name" && key370 !== "label" && key370 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/" + key370.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key370, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1685) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1684 = _errs1521 === errors; valid1683 = valid1684; } else if (tag61 === "info") { const _errs1525 = errors; let valid1689 = false; valid1689 = true; var valid1690; if (data1183.name !== undefined) { const _errs1526 = errors; if (!(typeof data1183.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1690 = _errs1526 === errors; } else { valid1690 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1690) { var valid1691; if (data1183.label !== undefined) { const _errs1527 = errors; if (!(typeof data1183.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1691 = _errs1527 === errors; } else { valid1691 = true; } if (valid1691) { if (data1183.description !== undefined) { const _errs1528 = errors; if (!(typeof data1183.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1691 = _errs1528 === errors; } else { valid1691 = true; } if (valid1691) { for (const key371 in data1183) { if ( key371 !== "type" && key371 !== "name" && key371 !== "label" && key371 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/" + key371.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key371, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1689) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1688 = _errs1525 === errors; valid1683 = valid1688; } else if (tag61 === "format") { const _errs1529 = errors; let valid1693 = false; valid1693 = true; var valid1694; if (data1183.name !== undefined) { const _errs1530 = errors; if (!(typeof data1183.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1694 = _errs1530 === errors; } else { valid1694 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1694) { var valid1695; if (data1183.label !== undefined) { const _errs1531 = errors; if (!(typeof data1183.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1695 = _errs1531 === errors; } else { valid1695 = true; } if (valid1695) { if (data1183.description !== undefined) { const _errs1532 = errors; if (!(typeof data1183.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1695 = _errs1532 === errors; } else { valid1695 = true; } if (valid1695) { for (const key372 in data1183) { if ( key372 !== "type" && key372 !== "name" && key372 !== "label" && key372 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/" + key372.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key372, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1693) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1692 = _errs1529 === errors; valid1683 = valid1692; } else if (tag61 === "genotype") { const _errs1533 = errors; let valid1697 = false; valid1697 = true; var valid1698; if (data1183.name !== undefined) { const _errs1534 = errors; if (!(typeof data1183.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1698 = _errs1534 === errors; } else { valid1698 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1698) { var valid1699; if (data1183.label !== undefined) { const _errs1535 = errors; if (!(typeof data1183.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1699 = _errs1535 === errors; } else { valid1699 = true; } if (valid1699) { if (data1183.description !== undefined) { const _errs1536 = errors; if (!(typeof data1183.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1699 = _errs1536 === errors; } else { valid1699 = true; } if (valid1699) { for (const key373 in data1183) { if ( key373 !== "type" && key373 !== "name" && key373 !== "label" && key373 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/" + key373.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key373, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1697) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1696 = _errs1533 === errors; valid1683 = valid1696; } else if (tag61 === "composed") { const _errs1537 = errors; let valid1701 = false; valid1701 = true; var valid1702; if (data1183.name !== undefined) { let data1196 = data1183.name; const _errs1538 = errors; if ( !( typeof data1196 == "string" && (data1196 === "clinVar" || data1196 === "gene" || data1196 === "genotype" || data1196 === "gnomAdAf" || data1196 === "hpo" || data1196 === "inheritancePattern" || data1196 === "locus" || data1196 === "ref" || data1196 === "vipC" || data1196 === "vipCS" || data1196 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.str.elements.mapping.group .properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1702 = _errs1538 === errors; } else { valid1702 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1702) { var valid1703; if (data1183.label !== undefined) { const _errs1539 = errors; if (!(typeof data1183.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1703 = _errs1539 === errors; } else { valid1703 = true; } if (valid1703) { if (data1183.description !== undefined) { const _errs1540 = errors; if (!(typeof data1183.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1703 = _errs1540 === errors; } else { valid1703 = true; } if (valid1703) { for (const key374 in data1183) { if ( key374 !== "type" && key374 !== "name" && key374 !== "label" && key374 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/" + key374.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key374, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1701) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1700 = _errs1537 === errors; valid1683 = valid1700; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag61 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag61 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1683) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields/" + i77, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1682 = _errs1520 === errors; if (!valid1682) { break; } } valid1681 = valid1682; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/fields", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1680 = _errs1519 === errors; } else { valid1680 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1680) { for (const key375 in data1166) { if (key375 !== "type" && key375 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/" + key375.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key375 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1679) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1678 = _errs1518 === errors; valid1657 = valid1678; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag60 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag60 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1657) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str/" + i76, schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1656 = _errs1497 === errors; if (!valid1656) { break; } } valid1655 = valid1656; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/str", schemaPath: "/properties/variant/properties/cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1554 = _errs1496 === errors; } else { valid1554 = true; } if (valid1554) { if (data1096.sv !== undefined) { let data1199 = data1096.sv; const _errs1541 = errors; let valid1705 = false; if (!valid1705) { if (Array.isArray(data1199)) { var valid1706 = true; const len78 = data1199.length; for (let i78 = 0; i78 < len78; i78++) { let data1200 = data1199[i78]; const _errs1542 = errors; let valid1707 = false; if (data1200 && typeof data1200 == "object" && !Array.isArray(data1200)) { const tag62 = data1200.type; if (tag62 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag62 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag62 == "string") { if (tag62 === "fixed") { const _errs1543 = errors; let valid1709 = false; valid1709 = true; var valid1710; if (data1200.name !== undefined) { let data1201 = data1200.name; const _errs1544 = errors; if ( !( typeof data1201 == "string" && (data1201 === "chrom" || data1201 === "pos" || data1201 === "id" || data1201 === "ref" || data1201 === "alt" || data1201 === "qual" || data1201 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.sv .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1710 = _errs1544 === errors; } else { valid1710 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1710) { var valid1711; if (data1200.label !== undefined) { const _errs1545 = errors; if (!(typeof data1200.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1711 = _errs1545 === errors; } else { valid1711 = true; } if (valid1711) { if (data1200.description !== undefined) { const _errs1546 = errors; if (!(typeof data1200.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1711 = _errs1546 === errors; } else { valid1711 = true; } if (valid1711) { for (const key376 in data1200) { if ( key376 !== "type" && key376 !== "name" && key376 !== "label" && key376 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/" + key376.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key376 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1709) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1708 = _errs1543 === errors; valid1707 = valid1708; } else if (tag62 === "info") { const _errs1547 = errors; let valid1713 = false; valid1713 = true; var valid1714; if (data1200.name !== undefined) { const _errs1548 = errors; if (!(typeof data1200.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1714 = _errs1548 === errors; } else { valid1714 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1714) { var valid1715; if (data1200.label !== undefined) { const _errs1549 = errors; if (!(typeof data1200.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1715 = _errs1549 === errors; } else { valid1715 = true; } if (valid1715) { if (data1200.description !== undefined) { const _errs1550 = errors; if (!(typeof data1200.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1715 = _errs1550 === errors; } else { valid1715 = true; } if (valid1715) { for (const key377 in data1200) { if ( key377 !== "type" && key377 !== "name" && key377 !== "label" && key377 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/" + key377.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key377 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1713) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1712 = _errs1547 === errors; valid1707 = valid1712; } else if (tag62 === "format") { const _errs1551 = errors; let valid1717 = false; valid1717 = true; var valid1718; if (data1200.name !== undefined) { const _errs1552 = errors; if (!(typeof data1200.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1718 = _errs1552 === errors; } else { valid1718 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1718) { var valid1719; if (data1200.label !== undefined) { const _errs1553 = errors; if (!(typeof data1200.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1719 = _errs1553 === errors; } else { valid1719 = true; } if (valid1719) { if (data1200.description !== undefined) { const _errs1554 = errors; if (!(typeof data1200.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1719 = _errs1554 === errors; } else { valid1719 = true; } if (valid1719) { for (const key378 in data1200) { if ( key378 !== "type" && key378 !== "name" && key378 !== "label" && key378 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/" + key378.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key378 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1717) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1716 = _errs1551 === errors; valid1707 = valid1716; } else if (tag62 === "genotype") { const _errs1555 = errors; let valid1721 = false; valid1721 = true; var valid1722; if (data1200.name !== undefined) { const _errs1556 = errors; if (!(typeof data1200.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1722 = _errs1556 === errors; } else { valid1722 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1722) { var valid1723; if (data1200.label !== undefined) { const _errs1557 = errors; if (!(typeof data1200.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1723 = _errs1557 === errors; } else { valid1723 = true; } if (valid1723) { if (data1200.description !== undefined) { const _errs1558 = errors; if (!(typeof data1200.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1723 = _errs1558 === errors; } else { valid1723 = true; } if (valid1723) { for (const key379 in data1200) { if ( key379 !== "type" && key379 !== "name" && key379 !== "label" && key379 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/" + key379.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key379 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1721) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1720 = _errs1555 === errors; valid1707 = valid1720; } else if (tag62 === "composed") { const _errs1559 = errors; let valid1725 = false; valid1725 = true; var valid1726; if (data1200.name !== undefined) { let data1213 = data1200.name; const _errs1560 = errors; if ( !( typeof data1213 == "string" && (data1213 === "clinVar" || data1213 === "confidenceInterval" || data1213 === "gene" || data1213 === "genotype" || data1213 === "genotype_maternal" || data1213 === "genotype_paternal" || data1213 === "gnomAdAf" || data1213 === "hpo" || data1213 === "inheritancePattern" || data1213 === "locus" || data1213 === "spanningReads" || data1213 === "vipC" || data1213 === "vipCS" || data1213 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells.optionalProperties.sv .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1726 = _errs1560 === errors; } else { valid1726 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1726) { var valid1727; if (data1200.label !== undefined) { const _errs1561 = errors; if (!(typeof data1200.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1727 = _errs1561 === errors; } else { valid1727 = true; } if (valid1727) { if (data1200.description !== undefined) { const _errs1562 = errors; if (!(typeof data1200.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1727 = _errs1562 === errors; } else { valid1727 = true; } if (valid1727) { for (const key380 in data1200) { if ( key380 !== "type" && key380 !== "name" && key380 !== "label" && key380 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/" + key380.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key380 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1725) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1724 = _errs1559 === errors; valid1707 = valid1724; } else if (tag62 === "group") { const _errs1563 = errors; let valid1729 = false; valid1729 = true; var valid1730; if (data1200.fields !== undefined) { let data1216 = data1200.fields; const _errs1564 = errors; let valid1731 = false; if (!valid1731) { if (Array.isArray(data1216)) { var valid1732 = true; const len79 = data1216.length; for (let i79 = 0; i79 < len79; i79++) { let data1217 = data1216[i79]; const _errs1565 = errors; let valid1733 = false; if ( data1217 && typeof data1217 == "object" && !Array.isArray(data1217) ) { const tag63 = data1217.type; if (tag63 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag63 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag63 == "string") { if (tag63 === "fixed") { const _errs1566 = errors; let valid1735 = false; valid1735 = true; var valid1736; if (data1217.name !== undefined) { let data1218 = data1217.name; const _errs1567 = errors; if ( !( typeof data1218 == "string" && (data1218 === "chrom" || data1218 === "pos" || data1218 === "id" || data1218 === "ref" || data1218 === "alt" || data1218 === "qual" || data1218 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1736 = _errs1567 === errors; } else { valid1736 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1736) { var valid1737; if (data1217.label !== undefined) { const _errs1568 = errors; if (!(typeof data1217.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1737 = _errs1568 === errors; } else { valid1737 = true; } if (valid1737) { if (data1217.description !== undefined) { const _errs1569 = errors; if (!(typeof data1217.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1737 = _errs1569 === errors; } else { valid1737 = true; } if (valid1737) { for (const key381 in data1217) { if ( key381 !== "type" && key381 !== "name" && key381 !== "label" && key381 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/" + key381.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key381, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1735) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1734 = _errs1566 === errors; valid1733 = valid1734; } else if (tag63 === "info") { const _errs1570 = errors; let valid1739 = false; valid1739 = true; var valid1740; if (data1217.name !== undefined) { const _errs1571 = errors; if (!(typeof data1217.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1740 = _errs1571 === errors; } else { valid1740 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1740) { var valid1741; if (data1217.label !== undefined) { const _errs1572 = errors; if (!(typeof data1217.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1741 = _errs1572 === errors; } else { valid1741 = true; } if (valid1741) { if (data1217.description !== undefined) { const _errs1573 = errors; if (!(typeof data1217.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1741 = _errs1573 === errors; } else { valid1741 = true; } if (valid1741) { for (const key382 in data1217) { if ( key382 !== "type" && key382 !== "name" && key382 !== "label" && key382 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/" + key382.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key382, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1739) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1738 = _errs1570 === errors; valid1733 = valid1738; } else if (tag63 === "format") { const _errs1574 = errors; let valid1743 = false; valid1743 = true; var valid1744; if (data1217.name !== undefined) { const _errs1575 = errors; if (!(typeof data1217.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1744 = _errs1575 === errors; } else { valid1744 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1744) { var valid1745; if (data1217.label !== undefined) { const _errs1576 = errors; if (!(typeof data1217.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1745 = _errs1576 === errors; } else { valid1745 = true; } if (valid1745) { if (data1217.description !== undefined) { const _errs1577 = errors; if (!(typeof data1217.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1745 = _errs1577 === errors; } else { valid1745 = true; } if (valid1745) { for (const key383 in data1217) { if ( key383 !== "type" && key383 !== "name" && key383 !== "label" && key383 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/" + key383.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key383, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1743) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1742 = _errs1574 === errors; valid1733 = valid1742; } else if (tag63 === "genotype") { const _errs1578 = errors; let valid1747 = false; valid1747 = true; var valid1748; if (data1217.name !== undefined) { const _errs1579 = errors; if (!(typeof data1217.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1748 = _errs1579 === errors; } else { valid1748 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1748) { var valid1749; if (data1217.label !== undefined) { const _errs1580 = errors; if (!(typeof data1217.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1749 = _errs1580 === errors; } else { valid1749 = true; } if (valid1749) { if (data1217.description !== undefined) { const _errs1581 = errors; if (!(typeof data1217.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1749 = _errs1581 === errors; } else { valid1749 = true; } if (valid1749) { for (const key384 in data1217) { if ( key384 !== "type" && key384 !== "name" && key384 !== "label" && key384 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/" + key384.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key384, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1747) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1746 = _errs1578 === errors; valid1733 = valid1746; } else if (tag63 === "composed") { const _errs1582 = errors; let valid1751 = false; valid1751 = true; var valid1752; if (data1217.name !== undefined) { let data1230 = data1217.name; const _errs1583 = errors; if ( !( typeof data1230 == "string" && (data1230 === "clinVar" || data1230 === "gene" || data1230 === "genotype" || data1230 === "gnomAdAf" || data1230 === "hpo" || data1230 === "inheritancePattern" || data1230 === "locus" || data1230 === "ref" || data1230 === "vipC" || data1230 === "vipCS" || data1230 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/name", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.properties.cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1752 = _errs1583 === errors; } else { valid1752 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1752) { var valid1753; if (data1217.label !== undefined) { const _errs1584 = errors; if (!(typeof data1217.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/label", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1753 = _errs1584 === errors; } else { valid1753 = true; } if (valid1753) { if (data1217.description !== undefined) { const _errs1585 = errors; if (!(typeof data1217.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/description", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1753 = _errs1585 === errors; } else { valid1753 = true; } if (valid1753) { for (const key385 in data1217) { if ( key385 !== "type" && key385 !== "name" && key385 !== "label" && key385 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/" + key385.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key385, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1751) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1750 = _errs1582 === errors; valid1733 = valid1750; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag63 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag63 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1733) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields/" + i79, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1732 = _errs1565 === errors; if (!valid1732) { break; } } valid1731 = valid1732; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/fields", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1730 = _errs1564 === errors; } else { valid1730 = false; validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1730) { for (const key386 in data1200) { if (key386 !== "type" && key386 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/" + key386.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key386 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1729) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1728 = _errs1563 === errors; valid1707 = valid1728; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag62 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78 + "/type", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag62 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1707) { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv/" + i78, schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1706 = _errs1542 === errors; if (!valid1706) { break; } } valid1705 = valid1706; } else { validate57.errors = [ { instancePath: instancePath + "/variant/cells/sv", schemaPath: "/properties/variant/properties/cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1554 = _errs1541 === errors; } else { valid1554 = true; } if (valid1554) { for (const key387 in data1096) { if (key387 !== "all" && key387 !== "snv" && key387 !== "str" && key387 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variant/cells/" + key387.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/properties/cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key387 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid1552) { validate57.errors = [ { instancePath: instancePath + "/variant/cells", schemaPath: "/properties/variant/properties/cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1551 = _errs1405 === errors; } else { valid1551 = false; validate57.errors = [ { instancePath: instancePath + "/variant", schemaPath: "/properties/variant/properties/cells", keyword: "properties", params: { error: "missing", missingProperty: "cells" }, message: "must have property 'cells'", }, ]; return false; } if (valid1551) { var valid1755; if (data1095.sample_cells !== undefined) { let data1233 = data1095.sample_cells; const _errs1586 = errors; let valid1756 = false; if (data1233 && typeof data1233 == "object" && !Array.isArray(data1233)) { valid1756 = true; var valid1758; if (data1233.all !== undefined) { let data1234 = data1233.all; const _errs1587 = errors; let valid1759 = false; if (!valid1759) { if (Array.isArray(data1234)) { var valid1760 = true; const len80 = data1234.length; for (let i80 = 0; i80 < len80; i80++) { let data1235 = data1234[i80]; const _errs1588 = errors; let valid1761 = false; if (data1235 && typeof data1235 == "object" && !Array.isArray(data1235)) { const tag64 = data1235.type; if (tag64 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag64 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag64 == "string") { if (tag64 === "fixed") { const _errs1589 = errors; let valid1763 = false; valid1763 = true; var valid1764; if (data1235.name !== undefined) { let data1236 = data1235.name; const _errs1590 = errors; if ( !( typeof data1236 == "string" && (data1236 === "chrom" || data1236 === "pos" || data1236 === "id" || data1236 === "ref" || data1236 === "alt" || data1236 === "qual" || data1236 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.all.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1764 = _errs1590 === errors; } else { valid1764 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1764) { var valid1765; if (data1235.label !== undefined) { const _errs1591 = errors; if (!(typeof data1235.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1765 = _errs1591 === errors; } else { valid1765 = true; } if (valid1765) { if (data1235.description !== undefined) { const _errs1592 = errors; if (!(typeof data1235.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1765 = _errs1592 === errors; } else { valid1765 = true; } if (valid1765) { for (const key388 in data1235) { if ( key388 !== "type" && key388 !== "name" && key388 !== "label" && key388 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/" + key388.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key388 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1763) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1762 = _errs1589 === errors; valid1761 = valid1762; } else if (tag64 === "info") { const _errs1593 = errors; let valid1767 = false; valid1767 = true; var valid1768; if (data1235.name !== undefined) { const _errs1594 = errors; if (!(typeof data1235.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1768 = _errs1594 === errors; } else { valid1768 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1768) { var valid1769; if (data1235.label !== undefined) { const _errs1595 = errors; if (!(typeof data1235.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1769 = _errs1595 === errors; } else { valid1769 = true; } if (valid1769) { if (data1235.description !== undefined) { const _errs1596 = errors; if (!(typeof data1235.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1769 = _errs1596 === errors; } else { valid1769 = true; } if (valid1769) { for (const key389 in data1235) { if ( key389 !== "type" && key389 !== "name" && key389 !== "label" && key389 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/" + key389.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key389 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1767) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1766 = _errs1593 === errors; valid1761 = valid1766; } else if (tag64 === "format") { const _errs1597 = errors; let valid1771 = false; valid1771 = true; var valid1772; if (data1235.name !== undefined) { const _errs1598 = errors; if (!(typeof data1235.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1772 = _errs1598 === errors; } else { valid1772 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1772) { var valid1773; if (data1235.label !== undefined) { const _errs1599 = errors; if (!(typeof data1235.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1773 = _errs1599 === errors; } else { valid1773 = true; } if (valid1773) { if (data1235.description !== undefined) { const _errs1600 = errors; if (!(typeof data1235.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1773 = _errs1600 === errors; } else { valid1773 = true; } if (valid1773) { for (const key390 in data1235) { if ( key390 !== "type" && key390 !== "name" && key390 !== "label" && key390 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/" + key390.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key390 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1771) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1770 = _errs1597 === errors; valid1761 = valid1770; } else if (tag64 === "genotype") { const _errs1601 = errors; let valid1775 = false; valid1775 = true; var valid1776; if (data1235.name !== undefined) { const _errs1602 = errors; if (!(typeof data1235.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1776 = _errs1602 === errors; } else { valid1776 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1776) { var valid1777; if (data1235.label !== undefined) { const _errs1603 = errors; if (!(typeof data1235.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1777 = _errs1603 === errors; } else { valid1777 = true; } if (valid1777) { if (data1235.description !== undefined) { const _errs1604 = errors; if (!(typeof data1235.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1777 = _errs1604 === errors; } else { valid1777 = true; } if (valid1777) { for (const key391 in data1235) { if ( key391 !== "type" && key391 !== "name" && key391 !== "label" && key391 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/" + key391.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key391 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1775) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1774 = _errs1601 === errors; valid1761 = valid1774; } else if (tag64 === "composed") { const _errs1605 = errors; let valid1779 = false; valid1779 = true; var valid1780; if (data1235.name !== undefined) { let data1248 = data1235.name; const _errs1606 = errors; if ( !( typeof data1248 == "string" && (data1248 === "clinVar" || data1248 === "confidenceInterval" || data1248 === "gene" || data1248 === "genotype" || data1248 === "genotype_maternal" || data1248 === "genotype_paternal" || data1248 === "gnomAdAf" || data1248 === "hpo" || data1248 === "inheritancePattern" || data1248 === "locus" || data1248 === "spanningReads" || data1248 === "vipC" || data1248 === "vipCS" || data1248 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.all.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1780 = _errs1606 === errors; } else { valid1780 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1780) { var valid1781; if (data1235.label !== undefined) { const _errs1607 = errors; if (!(typeof data1235.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1781 = _errs1607 === errors; } else { valid1781 = true; } if (valid1781) { if (data1235.description !== undefined) { const _errs1608 = errors; if (!(typeof data1235.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1781 = _errs1608 === errors; } else { valid1781 = true; } if (valid1781) { for (const key392 in data1235) { if ( key392 !== "type" && key392 !== "name" && key392 !== "label" && key392 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/" + key392.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key392 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1779) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1778 = _errs1605 === errors; valid1761 = valid1778; } else if (tag64 === "group") { const _errs1609 = errors; let valid1783 = false; valid1783 = true; var valid1784; if (data1235.fields !== undefined) { let data1251 = data1235.fields; const _errs1610 = errors; let valid1785 = false; if (!valid1785) { if (Array.isArray(data1251)) { var valid1786 = true; const len81 = data1251.length; for (let i81 = 0; i81 < len81; i81++) { let data1252 = data1251[i81]; const _errs1611 = errors; let valid1787 = false; if (data1252 && typeof data1252 == "object" && !Array.isArray(data1252)) { const tag65 = data1252.type; if (tag65 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag65 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag65 == "string") { if (tag65 === "fixed") { const _errs1612 = errors; let valid1789 = false; valid1789 = true; var valid1790; if (data1252.name !== undefined) { let data1253 = data1252.name; const _errs1613 = errors; if ( !( typeof data1253 == "string" && (data1253 === "chrom" || data1253 === "pos" || data1253 === "id" || data1253 === "ref" || data1253 === "alt" || data1253 === "qual" || data1253 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.all.elements.mapping .group.properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1790 = _errs1613 === errors; } else { valid1790 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1790) { var valid1791; if (data1252.label !== undefined) { const _errs1614 = errors; if (!(typeof data1252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1791 = _errs1614 === errors; } else { valid1791 = true; } if (valid1791) { if (data1252.description !== undefined) { const _errs1615 = errors; if (!(typeof data1252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1791 = _errs1615 === errors; } else { valid1791 = true; } if (valid1791) { for (const key393 in data1252) { if ( key393 !== "type" && key393 !== "name" && key393 !== "label" && key393 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/" + key393.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key393, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1789) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1788 = _errs1612 === errors; valid1787 = valid1788; } else if (tag65 === "info") { const _errs1616 = errors; let valid1793 = false; valid1793 = true; var valid1794; if (data1252.name !== undefined) { const _errs1617 = errors; if (!(typeof data1252.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1794 = _errs1617 === errors; } else { valid1794 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1794) { var valid1795; if (data1252.label !== undefined) { const _errs1618 = errors; if (!(typeof data1252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1795 = _errs1618 === errors; } else { valid1795 = true; } if (valid1795) { if (data1252.description !== undefined) { const _errs1619 = errors; if (!(typeof data1252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1795 = _errs1619 === errors; } else { valid1795 = true; } if (valid1795) { for (const key394 in data1252) { if ( key394 !== "type" && key394 !== "name" && key394 !== "label" && key394 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/" + key394.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key394, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1793) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1792 = _errs1616 === errors; valid1787 = valid1792; } else if (tag65 === "format") { const _errs1620 = errors; let valid1797 = false; valid1797 = true; var valid1798; if (data1252.name !== undefined) { const _errs1621 = errors; if (!(typeof data1252.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1798 = _errs1621 === errors; } else { valid1798 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1798) { var valid1799; if (data1252.label !== undefined) { const _errs1622 = errors; if (!(typeof data1252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1799 = _errs1622 === errors; } else { valid1799 = true; } if (valid1799) { if (data1252.description !== undefined) { const _errs1623 = errors; if (!(typeof data1252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1799 = _errs1623 === errors; } else { valid1799 = true; } if (valid1799) { for (const key395 in data1252) { if ( key395 !== "type" && key395 !== "name" && key395 !== "label" && key395 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/" + key395.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key395, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1797) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1796 = _errs1620 === errors; valid1787 = valid1796; } else if (tag65 === "genotype") { const _errs1624 = errors; let valid1801 = false; valid1801 = true; var valid1802; if (data1252.name !== undefined) { const _errs1625 = errors; if (!(typeof data1252.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1802 = _errs1625 === errors; } else { valid1802 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1802) { var valid1803; if (data1252.label !== undefined) { const _errs1626 = errors; if (!(typeof data1252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1803 = _errs1626 === errors; } else { valid1803 = true; } if (valid1803) { if (data1252.description !== undefined) { const _errs1627 = errors; if (!(typeof data1252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1803 = _errs1627 === errors; } else { valid1803 = true; } if (valid1803) { for (const key396 in data1252) { if ( key396 !== "type" && key396 !== "name" && key396 !== "label" && key396 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/" + key396.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key396, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1801) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1800 = _errs1624 === errors; valid1787 = valid1800; } else if (tag65 === "composed") { const _errs1628 = errors; let valid1805 = false; valid1805 = true; var valid1806; if (data1252.name !== undefined) { let data1265 = data1252.name; const _errs1629 = errors; if ( !( typeof data1265 == "string" && (data1265 === "clinVar" || data1265 === "gene" || data1265 === "genotype" || data1265 === "gnomAdAf" || data1265 === "hpo" || data1265 === "inheritancePattern" || data1265 === "locus" || data1265 === "ref" || data1265 === "vipC" || data1265 === "vipCS" || data1265 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.all.elements.mapping .group.properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1806 = _errs1629 === errors; } else { valid1806 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1806) { var valid1807; if (data1252.label !== undefined) { const _errs1630 = errors; if (!(typeof data1252.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1807 = _errs1630 === errors; } else { valid1807 = true; } if (valid1807) { if (data1252.description !== undefined) { const _errs1631 = errors; if (!(typeof data1252.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1807 = _errs1631 === errors; } else { valid1807 = true; } if (valid1807) { for (const key397 in data1252) { if ( key397 !== "type" && key397 !== "name" && key397 !== "label" && key397 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/" + key397.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key397, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1805) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1804 = _errs1628 === errors; valid1787 = valid1804; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag65 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag65 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1787) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields/" + i81, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1786 = _errs1611 === errors; if (!valid1786) { break; } } valid1785 = valid1786; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/fields", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1784 = _errs1610 === errors; } else { valid1784 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1784) { for (const key398 in data1235) { if (key398 !== "type" && key398 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/" + key398.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key398 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1783) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1782 = _errs1609 === errors; valid1761 = valid1782; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag64 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag64 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1761) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all/" + i80, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1760 = _errs1588 === errors; if (!valid1760) { break; } } valid1759 = valid1760; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/all", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1758 = _errs1587 === errors; } else { valid1758 = true; } if (valid1758) { if (data1233.snv !== undefined) { let data1268 = data1233.snv; const _errs1632 = errors; let valid1809 = false; if (!valid1809) { if (Array.isArray(data1268)) { var valid1810 = true; const len82 = data1268.length; for (let i82 = 0; i82 < len82; i82++) { let data1269 = data1268[i82]; const _errs1633 = errors; let valid1811 = false; if (data1269 && typeof data1269 == "object" && !Array.isArray(data1269)) { const tag66 = data1269.type; if (tag66 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag66 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag66 == "string") { if (tag66 === "fixed") { const _errs1634 = errors; let valid1813 = false; valid1813 = true; var valid1814; if (data1269.name !== undefined) { let data1270 = data1269.name; const _errs1635 = errors; if ( !( typeof data1270 == "string" && (data1270 === "chrom" || data1270 === "pos" || data1270 === "id" || data1270 === "ref" || data1270 === "alt" || data1270 === "qual" || data1270 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.snv.elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1814 = _errs1635 === errors; } else { valid1814 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1814) { var valid1815; if (data1269.label !== undefined) { const _errs1636 = errors; if (!(typeof data1269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1815 = _errs1636 === errors; } else { valid1815 = true; } if (valid1815) { if (data1269.description !== undefined) { const _errs1637 = errors; if (!(typeof data1269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1815 = _errs1637 === errors; } else { valid1815 = true; } if (valid1815) { for (const key399 in data1269) { if ( key399 !== "type" && key399 !== "name" && key399 !== "label" && key399 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/" + key399.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key399 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1813) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1812 = _errs1634 === errors; valid1811 = valid1812; } else if (tag66 === "info") { const _errs1638 = errors; let valid1817 = false; valid1817 = true; var valid1818; if (data1269.name !== undefined) { const _errs1639 = errors; if (!(typeof data1269.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1818 = _errs1639 === errors; } else { valid1818 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1818) { var valid1819; if (data1269.label !== undefined) { const _errs1640 = errors; if (!(typeof data1269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1819 = _errs1640 === errors; } else { valid1819 = true; } if (valid1819) { if (data1269.description !== undefined) { const _errs1641 = errors; if (!(typeof data1269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1819 = _errs1641 === errors; } else { valid1819 = true; } if (valid1819) { for (const key400 in data1269) { if ( key400 !== "type" && key400 !== "name" && key400 !== "label" && key400 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/" + key400.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key400 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1817) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1816 = _errs1638 === errors; valid1811 = valid1816; } else if (tag66 === "format") { const _errs1642 = errors; let valid1821 = false; valid1821 = true; var valid1822; if (data1269.name !== undefined) { const _errs1643 = errors; if (!(typeof data1269.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1822 = _errs1643 === errors; } else { valid1822 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1822) { var valid1823; if (data1269.label !== undefined) { const _errs1644 = errors; if (!(typeof data1269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1823 = _errs1644 === errors; } else { valid1823 = true; } if (valid1823) { if (data1269.description !== undefined) { const _errs1645 = errors; if (!(typeof data1269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1823 = _errs1645 === errors; } else { valid1823 = true; } if (valid1823) { for (const key401 in data1269) { if ( key401 !== "type" && key401 !== "name" && key401 !== "label" && key401 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/" + key401.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key401 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1821) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1820 = _errs1642 === errors; valid1811 = valid1820; } else if (tag66 === "genotype") { const _errs1646 = errors; let valid1825 = false; valid1825 = true; var valid1826; if (data1269.name !== undefined) { const _errs1647 = errors; if (!(typeof data1269.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1826 = _errs1647 === errors; } else { valid1826 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1826) { var valid1827; if (data1269.label !== undefined) { const _errs1648 = errors; if (!(typeof data1269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1827 = _errs1648 === errors; } else { valid1827 = true; } if (valid1827) { if (data1269.description !== undefined) { const _errs1649 = errors; if (!(typeof data1269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1827 = _errs1649 === errors; } else { valid1827 = true; } if (valid1827) { for (const key402 in data1269) { if ( key402 !== "type" && key402 !== "name" && key402 !== "label" && key402 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/" + key402.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key402 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1825) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1824 = _errs1646 === errors; valid1811 = valid1824; } else if (tag66 === "composed") { const _errs1650 = errors; let valid1829 = false; valid1829 = true; var valid1830; if (data1269.name !== undefined) { let data1282 = data1269.name; const _errs1651 = errors; if ( !( typeof data1282 == "string" && (data1282 === "clinVar" || data1282 === "confidenceInterval" || data1282 === "gene" || data1282 === "genotype" || data1282 === "genotype_maternal" || data1282 === "genotype_paternal" || data1282 === "gnomAdAf" || data1282 === "hpo" || data1282 === "inheritancePattern" || data1282 === "locus" || data1282 === "spanningReads" || data1282 === "vipC" || data1282 === "vipCS" || data1282 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.snv.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1830 = _errs1651 === errors; } else { valid1830 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1830) { var valid1831; if (data1269.label !== undefined) { const _errs1652 = errors; if (!(typeof data1269.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1831 = _errs1652 === errors; } else { valid1831 = true; } if (valid1831) { if (data1269.description !== undefined) { const _errs1653 = errors; if (!(typeof data1269.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1831 = _errs1653 === errors; } else { valid1831 = true; } if (valid1831) { for (const key403 in data1269) { if ( key403 !== "type" && key403 !== "name" && key403 !== "label" && key403 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/" + key403.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key403 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1829) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1828 = _errs1650 === errors; valid1811 = valid1828; } else if (tag66 === "group") { const _errs1654 = errors; let valid1833 = false; valid1833 = true; var valid1834; if (data1269.fields !== undefined) { let data1285 = data1269.fields; const _errs1655 = errors; let valid1835 = false; if (!valid1835) { if (Array.isArray(data1285)) { var valid1836 = true; const len83 = data1285.length; for (let i83 = 0; i83 < len83; i83++) { let data1286 = data1285[i83]; const _errs1656 = errors; let valid1837 = false; if (data1286 && typeof data1286 == "object" && !Array.isArray(data1286)) { const tag67 = data1286.type; if (tag67 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag67 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag67 == "string") { if (tag67 === "fixed") { const _errs1657 = errors; let valid1839 = false; valid1839 = true; var valid1840; if (data1286.name !== undefined) { let data1287 = data1286.name; const _errs1658 = errors; if ( !( typeof data1287 == "string" && (data1287 === "chrom" || data1287 === "pos" || data1287 === "id" || data1287 === "ref" || data1287 === "alt" || data1287 === "qual" || data1287 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping .group.properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1840 = _errs1658 === errors; } else { valid1840 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1840) { var valid1841; if (data1286.label !== undefined) { const _errs1659 = errors; if (!(typeof data1286.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1841 = _errs1659 === errors; } else { valid1841 = true; } if (valid1841) { if (data1286.description !== undefined) { const _errs1660 = errors; if (!(typeof data1286.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1841 = _errs1660 === errors; } else { valid1841 = true; } if (valid1841) { for (const key404 in data1286) { if ( key404 !== "type" && key404 !== "name" && key404 !== "label" && key404 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/" + key404.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key404, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1839) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1838 = _errs1657 === errors; valid1837 = valid1838; } else if (tag67 === "info") { const _errs1661 = errors; let valid1843 = false; valid1843 = true; var valid1844; if (data1286.name !== undefined) { const _errs1662 = errors; if (!(typeof data1286.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1844 = _errs1662 === errors; } else { valid1844 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1844) { var valid1845; if (data1286.label !== undefined) { const _errs1663 = errors; if (!(typeof data1286.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1845 = _errs1663 === errors; } else { valid1845 = true; } if (valid1845) { if (data1286.description !== undefined) { const _errs1664 = errors; if (!(typeof data1286.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1845 = _errs1664 === errors; } else { valid1845 = true; } if (valid1845) { for (const key405 in data1286) { if ( key405 !== "type" && key405 !== "name" && key405 !== "label" && key405 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/" + key405.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key405, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1843) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1842 = _errs1661 === errors; valid1837 = valid1842; } else if (tag67 === "format") { const _errs1665 = errors; let valid1847 = false; valid1847 = true; var valid1848; if (data1286.name !== undefined) { const _errs1666 = errors; if (!(typeof data1286.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1848 = _errs1666 === errors; } else { valid1848 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1848) { var valid1849; if (data1286.label !== undefined) { const _errs1667 = errors; if (!(typeof data1286.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1849 = _errs1667 === errors; } else { valid1849 = true; } if (valid1849) { if (data1286.description !== undefined) { const _errs1668 = errors; if (!(typeof data1286.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1849 = _errs1668 === errors; } else { valid1849 = true; } if (valid1849) { for (const key406 in data1286) { if ( key406 !== "type" && key406 !== "name" && key406 !== "label" && key406 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/" + key406.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key406, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1847) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1846 = _errs1665 === errors; valid1837 = valid1846; } else if (tag67 === "genotype") { const _errs1669 = errors; let valid1851 = false; valid1851 = true; var valid1852; if (data1286.name !== undefined) { const _errs1670 = errors; if (!(typeof data1286.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1852 = _errs1670 === errors; } else { valid1852 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1852) { var valid1853; if (data1286.label !== undefined) { const _errs1671 = errors; if (!(typeof data1286.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1853 = _errs1671 === errors; } else { valid1853 = true; } if (valid1853) { if (data1286.description !== undefined) { const _errs1672 = errors; if (!(typeof data1286.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1853 = _errs1672 === errors; } else { valid1853 = true; } if (valid1853) { for (const key407 in data1286) { if ( key407 !== "type" && key407 !== "name" && key407 !== "label" && key407 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/" + key407.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key407, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1851) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1850 = _errs1669 === errors; valid1837 = valid1850; } else if (tag67 === "composed") { const _errs1673 = errors; let valid1855 = false; valid1855 = true; var valid1856; if (data1286.name !== undefined) { let data1299 = data1286.name; const _errs1674 = errors; if ( !( typeof data1299 == "string" && (data1299 === "clinVar" || data1299 === "gene" || data1299 === "genotype" || data1299 === "gnomAdAf" || data1299 === "hpo" || data1299 === "inheritancePattern" || data1299 === "locus" || data1299 === "ref" || data1299 === "vipC" || data1299 === "vipCS" || data1299 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping .group.properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1856 = _errs1674 === errors; } else { valid1856 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1856) { var valid1857; if (data1286.label !== undefined) { const _errs1675 = errors; if (!(typeof data1286.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1857 = _errs1675 === errors; } else { valid1857 = true; } if (valid1857) { if (data1286.description !== undefined) { const _errs1676 = errors; if (!(typeof data1286.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1857 = _errs1676 === errors; } else { valid1857 = true; } if (valid1857) { for (const key408 in data1286) { if ( key408 !== "type" && key408 !== "name" && key408 !== "label" && key408 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/" + key408.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key408, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1855) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1854 = _errs1673 === errors; valid1837 = valid1854; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag67 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag67 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1837) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields/" + i83, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1836 = _errs1656 === errors; if (!valid1836) { break; } } valid1835 = valid1836; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/fields", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1834 = _errs1655 === errors; } else { valid1834 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1834) { for (const key409 in data1269) { if (key409 !== "type" && key409 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/" + key409.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key409 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1833) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1832 = _errs1654 === errors; valid1811 = valid1832; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag66 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag66 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1811) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv/" + i82, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1810 = _errs1633 === errors; if (!valid1810) { break; } } valid1809 = valid1810; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/snv", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1758 = _errs1632 === errors; } else { valid1758 = true; } if (valid1758) { if (data1233.str !== undefined) { let data1302 = data1233.str; const _errs1677 = errors; let valid1859 = false; if (!valid1859) { if (Array.isArray(data1302)) { var valid1860 = true; const len84 = data1302.length; for (let i84 = 0; i84 < len84; i84++) { let data1303 = data1302[i84]; const _errs1678 = errors; let valid1861 = false; if (data1303 && typeof data1303 == "object" && !Array.isArray(data1303)) { const tag68 = data1303.type; if (tag68 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag68 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag68 == "string") { if (tag68 === "fixed") { const _errs1679 = errors; let valid1863 = false; valid1863 = true; var valid1864; if (data1303.name !== undefined) { let data1304 = data1303.name; const _errs1680 = errors; if ( !( typeof data1304 == "string" && (data1304 === "chrom" || data1304 === "pos" || data1304 === "id" || data1304 === "ref" || data1304 === "alt" || data1304 === "qual" || data1304 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.str.elements.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1864 = _errs1680 === errors; } else { valid1864 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1864) { var valid1865; if (data1303.label !== undefined) { const _errs1681 = errors; if (!(typeof data1303.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1865 = _errs1681 === errors; } else { valid1865 = true; } if (valid1865) { if (data1303.description !== undefined) { const _errs1682 = errors; if (!(typeof data1303.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1865 = _errs1682 === errors; } else { valid1865 = true; } if (valid1865) { for (const key410 in data1303) { if ( key410 !== "type" && key410 !== "name" && key410 !== "label" && key410 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/" + key410.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key410 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1863) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1862 = _errs1679 === errors; valid1861 = valid1862; } else if (tag68 === "info") { const _errs1683 = errors; let valid1867 = false; valid1867 = true; var valid1868; if (data1303.name !== undefined) { const _errs1684 = errors; if (!(typeof data1303.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1868 = _errs1684 === errors; } else { valid1868 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1868) { var valid1869; if (data1303.label !== undefined) { const _errs1685 = errors; if (!(typeof data1303.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1869 = _errs1685 === errors; } else { valid1869 = true; } if (valid1869) { if (data1303.description !== undefined) { const _errs1686 = errors; if (!(typeof data1303.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1869 = _errs1686 === errors; } else { valid1869 = true; } if (valid1869) { for (const key411 in data1303) { if ( key411 !== "type" && key411 !== "name" && key411 !== "label" && key411 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/" + key411.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key411 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1867) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1866 = _errs1683 === errors; valid1861 = valid1866; } else if (tag68 === "format") { const _errs1687 = errors; let valid1871 = false; valid1871 = true; var valid1872; if (data1303.name !== undefined) { const _errs1688 = errors; if (!(typeof data1303.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1872 = _errs1688 === errors; } else { valid1872 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1872) { var valid1873; if (data1303.label !== undefined) { const _errs1689 = errors; if (!(typeof data1303.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1873 = _errs1689 === errors; } else { valid1873 = true; } if (valid1873) { if (data1303.description !== undefined) { const _errs1690 = errors; if (!(typeof data1303.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1873 = _errs1690 === errors; } else { valid1873 = true; } if (valid1873) { for (const key412 in data1303) { if ( key412 !== "type" && key412 !== "name" && key412 !== "label" && key412 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/" + key412.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key412 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1871) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1870 = _errs1687 === errors; valid1861 = valid1870; } else if (tag68 === "genotype") { const _errs1691 = errors; let valid1875 = false; valid1875 = true; var valid1876; if (data1303.name !== undefined) { const _errs1692 = errors; if (!(typeof data1303.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1876 = _errs1692 === errors; } else { valid1876 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1876) { var valid1877; if (data1303.label !== undefined) { const _errs1693 = errors; if (!(typeof data1303.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1877 = _errs1693 === errors; } else { valid1877 = true; } if (valid1877) { if (data1303.description !== undefined) { const _errs1694 = errors; if (!(typeof data1303.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1877 = _errs1694 === errors; } else { valid1877 = true; } if (valid1877) { for (const key413 in data1303) { if ( key413 !== "type" && key413 !== "name" && key413 !== "label" && key413 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/" + key413.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key413 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1875) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1874 = _errs1691 === errors; valid1861 = valid1874; } else if (tag68 === "composed") { const _errs1695 = errors; let valid1879 = false; valid1879 = true; var valid1880; if (data1303.name !== undefined) { let data1316 = data1303.name; const _errs1696 = errors; if ( !( typeof data1316 == "string" && (data1316 === "clinVar" || data1316 === "confidenceInterval" || data1316 === "gene" || data1316 === "genotype" || data1316 === "genotype_maternal" || data1316 === "genotype_paternal" || data1316 === "gnomAdAf" || data1316 === "hpo" || data1316 === "inheritancePattern" || data1316 === "locus" || data1316 === "spanningReads" || data1316 === "vipC" || data1316 === "vipCS" || data1316 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.str.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1880 = _errs1696 === errors; } else { valid1880 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1880) { var valid1881; if (data1303.label !== undefined) { const _errs1697 = errors; if (!(typeof data1303.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1881 = _errs1697 === errors; } else { valid1881 = true; } if (valid1881) { if (data1303.description !== undefined) { const _errs1698 = errors; if (!(typeof data1303.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1881 = _errs1698 === errors; } else { valid1881 = true; } if (valid1881) { for (const key414 in data1303) { if ( key414 !== "type" && key414 !== "name" && key414 !== "label" && key414 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/" + key414.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key414 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1879) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1878 = _errs1695 === errors; valid1861 = valid1878; } else if (tag68 === "group") { const _errs1699 = errors; let valid1883 = false; valid1883 = true; var valid1884; if (data1303.fields !== undefined) { let data1319 = data1303.fields; const _errs1700 = errors; let valid1885 = false; if (!valid1885) { if (Array.isArray(data1319)) { var valid1886 = true; const len85 = data1319.length; for (let i85 = 0; i85 < len85; i85++) { let data1320 = data1319[i85]; const _errs1701 = errors; let valid1887 = false; if ( data1320 && typeof data1320 == "object" && !Array.isArray(data1320) ) { const tag69 = data1320.type; if (tag69 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag69 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag69 == "string") { if (tag69 === "fixed") { const _errs1702 = errors; let valid1889 = false; valid1889 = true; var valid1890; if (data1320.name !== undefined) { let data1321 = data1320.name; const _errs1703 = errors; if ( !( typeof data1321 == "string" && (data1321 === "chrom" || data1321 === "pos" || data1321 === "id" || data1321 === "ref" || data1321 === "alt" || data1321 === "qual" || data1321 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.str.elements .mapping.group.properties.fields.elements.mapping .fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1890 = _errs1703 === errors; } else { valid1890 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1890) { var valid1891; if (data1320.label !== undefined) { const _errs1704 = errors; if (!(typeof data1320.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1891 = _errs1704 === errors; } else { valid1891 = true; } if (valid1891) { if (data1320.description !== undefined) { const _errs1705 = errors; if (!(typeof data1320.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1891 = _errs1705 === errors; } else { valid1891 = true; } if (valid1891) { for (const key415 in data1320) { if ( key415 !== "type" && key415 !== "name" && key415 !== "label" && key415 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/" + key415.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key415, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1889) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1888 = _errs1702 === errors; valid1887 = valid1888; } else if (tag69 === "info") { const _errs1706 = errors; let valid1893 = false; valid1893 = true; var valid1894; if (data1320.name !== undefined) { const _errs1707 = errors; if (!(typeof data1320.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1894 = _errs1707 === errors; } else { valid1894 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1894) { var valid1895; if (data1320.label !== undefined) { const _errs1708 = errors; if (!(typeof data1320.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1895 = _errs1708 === errors; } else { valid1895 = true; } if (valid1895) { if (data1320.description !== undefined) { const _errs1709 = errors; if (!(typeof data1320.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1895 = _errs1709 === errors; } else { valid1895 = true; } if (valid1895) { for (const key416 in data1320) { if ( key416 !== "type" && key416 !== "name" && key416 !== "label" && key416 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/" + key416.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key416, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1893) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1892 = _errs1706 === errors; valid1887 = valid1892; } else if (tag69 === "format") { const _errs1710 = errors; let valid1897 = false; valid1897 = true; var valid1898; if (data1320.name !== undefined) { const _errs1711 = errors; if (!(typeof data1320.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1898 = _errs1711 === errors; } else { valid1898 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1898) { var valid1899; if (data1320.label !== undefined) { const _errs1712 = errors; if (!(typeof data1320.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1899 = _errs1712 === errors; } else { valid1899 = true; } if (valid1899) { if (data1320.description !== undefined) { const _errs1713 = errors; if (!(typeof data1320.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1899 = _errs1713 === errors; } else { valid1899 = true; } if (valid1899) { for (const key417 in data1320) { if ( key417 !== "type" && key417 !== "name" && key417 !== "label" && key417 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/" + key417.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key417, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1897) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1896 = _errs1710 === errors; valid1887 = valid1896; } else if (tag69 === "genotype") { const _errs1714 = errors; let valid1901 = false; valid1901 = true; var valid1902; if (data1320.name !== undefined) { const _errs1715 = errors; if (!(typeof data1320.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1902 = _errs1715 === errors; } else { valid1902 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1902) { var valid1903; if (data1320.label !== undefined) { const _errs1716 = errors; if (!(typeof data1320.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1903 = _errs1716 === errors; } else { valid1903 = true; } if (valid1903) { if (data1320.description !== undefined) { const _errs1717 = errors; if (!(typeof data1320.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1903 = _errs1717 === errors; } else { valid1903 = true; } if (valid1903) { for (const key418 in data1320) { if ( key418 !== "type" && key418 !== "name" && key418 !== "label" && key418 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/" + key418.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key418, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1901) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1900 = _errs1714 === errors; valid1887 = valid1900; } else if (tag69 === "composed") { const _errs1718 = errors; let valid1905 = false; valid1905 = true; var valid1906; if (data1320.name !== undefined) { let data1333 = data1320.name; const _errs1719 = errors; if ( !( typeof data1333 == "string" && (data1333 === "clinVar" || data1333 === "gene" || data1333 === "genotype" || data1333 === "gnomAdAf" || data1333 === "hpo" || data1333 === "inheritancePattern" || data1333 === "locus" || data1333 === "ref" || data1333 === "vipC" || data1333 === "vipCS" || data1333 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.str.elements .mapping.group.properties.fields.elements.mapping .composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1906 = _errs1719 === errors; } else { valid1906 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1906) { var valid1907; if (data1320.label !== undefined) { const _errs1720 = errors; if (!(typeof data1320.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1907 = _errs1720 === errors; } else { valid1907 = true; } if (valid1907) { if (data1320.description !== undefined) { const _errs1721 = errors; if (!(typeof data1320.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1907 = _errs1721 === errors; } else { valid1907 = true; } if (valid1907) { for (const key419 in data1320) { if ( key419 !== "type" && key419 !== "name" && key419 !== "label" && key419 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/" + key419.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key419, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1905) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1904 = _errs1718 === errors; valid1887 = valid1904; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag69 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag69 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1887) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields/" + i85, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1886 = _errs1701 === errors; if (!valid1886) { break; } } valid1885 = valid1886; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/fields", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1884 = _errs1700 === errors; } else { valid1884 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1884) { for (const key420 in data1303) { if (key420 !== "type" && key420 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/" + key420.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key420 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1883) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1882 = _errs1699 === errors; valid1861 = valid1882; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag68 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag68 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1861) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str/" + i84, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1860 = _errs1678 === errors; if (!valid1860) { break; } } valid1859 = valid1860; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/str", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1758 = _errs1677 === errors; } else { valid1758 = true; } if (valid1758) { if (data1233.sv !== undefined) { let data1336 = data1233.sv; const _errs1722 = errors; let valid1909 = false; if (!valid1909) { if (Array.isArray(data1336)) { var valid1910 = true; const len86 = data1336.length; for (let i86 = 0; i86 < len86; i86++) { let data1337 = data1336[i86]; const _errs1723 = errors; let valid1911 = false; if (data1337 && typeof data1337 == "object" && !Array.isArray(data1337)) { const tag70 = data1337.type; if (tag70 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag70 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag70 == "string") { if (tag70 === "fixed") { const _errs1724 = errors; let valid1913 = false; valid1913 = true; var valid1914; if (data1337.name !== undefined) { let data1338 = data1337.name; const _errs1725 = errors; if ( !( typeof data1338 == "string" && (data1338 === "chrom" || data1338 === "pos" || data1338 === "id" || data1338 === "ref" || data1338 === "alt" || data1338 === "qual" || data1338 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.fixed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1914 = _errs1725 === errors; } else { valid1914 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1914) { var valid1915; if (data1337.label !== undefined) { const _errs1726 = errors; if (!(typeof data1337.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1915 = _errs1726 === errors; } else { valid1915 = true; } if (valid1915) { if (data1337.description !== undefined) { const _errs1727 = errors; if (!(typeof data1337.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1915 = _errs1727 === errors; } else { valid1915 = true; } if (valid1915) { for (const key421 in data1337) { if ( key421 !== "type" && key421 !== "name" && key421 !== "label" && key421 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/" + key421.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key421 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1913) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1912 = _errs1724 === errors; valid1911 = valid1912; } else if (tag70 === "info") { const _errs1728 = errors; let valid1917 = false; valid1917 = true; var valid1918; if (data1337.name !== undefined) { const _errs1729 = errors; if (!(typeof data1337.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1918 = _errs1729 === errors; } else { valid1918 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1918) { var valid1919; if (data1337.label !== undefined) { const _errs1730 = errors; if (!(typeof data1337.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1919 = _errs1730 === errors; } else { valid1919 = true; } if (valid1919) { if (data1337.description !== undefined) { const _errs1731 = errors; if (!(typeof data1337.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1919 = _errs1731 === errors; } else { valid1919 = true; } if (valid1919) { for (const key422 in data1337) { if ( key422 !== "type" && key422 !== "name" && key422 !== "label" && key422 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/" + key422.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key422 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1917) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1916 = _errs1728 === errors; valid1911 = valid1916; } else if (tag70 === "format") { const _errs1732 = errors; let valid1921 = false; valid1921 = true; var valid1922; if (data1337.name !== undefined) { const _errs1733 = errors; if (!(typeof data1337.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1922 = _errs1733 === errors; } else { valid1922 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1922) { var valid1923; if (data1337.label !== undefined) { const _errs1734 = errors; if (!(typeof data1337.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1923 = _errs1734 === errors; } else { valid1923 = true; } if (valid1923) { if (data1337.description !== undefined) { const _errs1735 = errors; if (!(typeof data1337.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1923 = _errs1735 === errors; } else { valid1923 = true; } if (valid1923) { for (const key423 in data1337) { if ( key423 !== "type" && key423 !== "name" && key423 !== "label" && key423 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/" + key423.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key423 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1921) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1920 = _errs1732 === errors; valid1911 = valid1920; } else if (tag70 === "genotype") { const _errs1736 = errors; let valid1925 = false; valid1925 = true; var valid1926; if (data1337.name !== undefined) { const _errs1737 = errors; if (!(typeof data1337.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1926 = _errs1737 === errors; } else { valid1926 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1926) { var valid1927; if (data1337.label !== undefined) { const _errs1738 = errors; if (!(typeof data1337.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1927 = _errs1738 === errors; } else { valid1927 = true; } if (valid1927) { if (data1337.description !== undefined) { const _errs1739 = errors; if (!(typeof data1337.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1927 = _errs1739 === errors; } else { valid1927 = true; } if (valid1927) { for (const key424 in data1337) { if ( key424 !== "type" && key424 !== "name" && key424 !== "label" && key424 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/" + key424.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key424 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1925) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1924 = _errs1736 === errors; valid1911 = valid1924; } else if (tag70 === "composed") { const _errs1740 = errors; let valid1929 = false; valid1929 = true; var valid1930; if (data1337.name !== undefined) { let data1350 = data1337.name; const _errs1741 = errors; if ( !( typeof data1350 == "string" && (data1350 === "clinVar" || data1350 === "confidenceInterval" || data1350 === "gene" || data1350 === "genotype" || data1350 === "genotype_maternal" || data1350 === "genotype_paternal" || data1350 === "gnomAdAf" || data1350 === "hpo" || data1350 === "inheritancePattern" || data1350 === "locus" || data1350 === "spanningReads" || data1350 === "vipC" || data1350 === "vipCS" || data1350 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.composed.properties.name .enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1930 = _errs1741 === errors; } else { valid1930 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1930) { var valid1931; if (data1337.label !== undefined) { const _errs1742 = errors; if (!(typeof data1337.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1931 = _errs1742 === errors; } else { valid1931 = true; } if (valid1931) { if (data1337.description !== undefined) { const _errs1743 = errors; if (!(typeof data1337.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1931 = _errs1743 === errors; } else { valid1931 = true; } if (valid1931) { for (const key425 in data1337) { if ( key425 !== "type" && key425 !== "name" && key425 !== "label" && key425 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/" + key425.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key425 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1929) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1928 = _errs1740 === errors; valid1911 = valid1928; } else if (tag70 === "group") { const _errs1744 = errors; let valid1933 = false; valid1933 = true; var valid1934; if (data1337.fields !== undefined) { let data1353 = data1337.fields; const _errs1745 = errors; let valid1935 = false; if (!valid1935) { if (Array.isArray(data1353)) { var valid1936 = true; const len87 = data1353.length; for (let i87 = 0; i87 < len87; i87++) { let data1354 = data1353[i87]; const _errs1746 = errors; let valid1937 = false; if ( data1354 && typeof data1354 == "object" && !Array.isArray(data1354) ) { const tag71 = data1354.type; if (tag71 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag71 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag71 == "string") { if (tag71 === "fixed") { const _errs1747 = errors; let valid1939 = false; valid1939 = true; var valid1940; if (data1354.name !== undefined) { let data1355 = data1354.name; const _errs1748 = errors; if ( !( typeof data1355 == "string" && (data1355 === "chrom" || data1355 === "pos" || data1355 === "id" || data1355 === "ref" || data1355 === "alt" || data1355 === "qual" || data1355 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.sv.elements .mapping.group.properties.fields.elements.mapping .fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1940 = _errs1748 === errors; } else { valid1940 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1940) { var valid1941; if (data1354.label !== undefined) { const _errs1749 = errors; if (!(typeof data1354.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1941 = _errs1749 === errors; } else { valid1941 = true; } if (valid1941) { if (data1354.description !== undefined) { const _errs1750 = errors; if (!(typeof data1354.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1941 = _errs1750 === errors; } else { valid1941 = true; } if (valid1941) { for (const key426 in data1354) { if ( key426 !== "type" && key426 !== "name" && key426 !== "label" && key426 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/" + key426.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key426, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1939) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1938 = _errs1747 === errors; valid1937 = valid1938; } else if (tag71 === "info") { const _errs1751 = errors; let valid1943 = false; valid1943 = true; var valid1944; if (data1354.name !== undefined) { const _errs1752 = errors; if (!(typeof data1354.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1944 = _errs1752 === errors; } else { valid1944 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1944) { var valid1945; if (data1354.label !== undefined) { const _errs1753 = errors; if (!(typeof data1354.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1945 = _errs1753 === errors; } else { valid1945 = true; } if (valid1945) { if (data1354.description !== undefined) { const _errs1754 = errors; if (!(typeof data1354.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1945 = _errs1754 === errors; } else { valid1945 = true; } if (valid1945) { for (const key427 in data1354) { if ( key427 !== "type" && key427 !== "name" && key427 !== "label" && key427 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/" + key427.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key427, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1943) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1942 = _errs1751 === errors; valid1937 = valid1942; } else if (tag71 === "format") { const _errs1755 = errors; let valid1947 = false; valid1947 = true; var valid1948; if (data1354.name !== undefined) { const _errs1756 = errors; if (!(typeof data1354.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1948 = _errs1756 === errors; } else { valid1948 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1948) { var valid1949; if (data1354.label !== undefined) { const _errs1757 = errors; if (!(typeof data1354.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1949 = _errs1757 === errors; } else { valid1949 = true; } if (valid1949) { if (data1354.description !== undefined) { const _errs1758 = errors; if (!(typeof data1354.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1949 = _errs1758 === errors; } else { valid1949 = true; } if (valid1949) { for (const key428 in data1354) { if ( key428 !== "type" && key428 !== "name" && key428 !== "label" && key428 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/" + key428.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key428, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1947) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1946 = _errs1755 === errors; valid1937 = valid1946; } else if (tag71 === "genotype") { const _errs1759 = errors; let valid1951 = false; valid1951 = true; var valid1952; if (data1354.name !== undefined) { const _errs1760 = errors; if (!(typeof data1354.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1952 = _errs1760 === errors; } else { valid1952 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1952) { var valid1953; if (data1354.label !== undefined) { const _errs1761 = errors; if (!(typeof data1354.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1953 = _errs1761 === errors; } else { valid1953 = true; } if (valid1953) { if (data1354.description !== undefined) { const _errs1762 = errors; if (!(typeof data1354.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1953 = _errs1762 === errors; } else { valid1953 = true; } if (valid1953) { for (const key429 in data1354) { if ( key429 !== "type" && key429 !== "name" && key429 !== "label" && key429 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/" + key429.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key429, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1951) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1950 = _errs1759 === errors; valid1937 = valid1950; } else if (tag71 === "composed") { const _errs1763 = errors; let valid1955 = false; valid1955 = true; var valid1956; if (data1354.name !== undefined) { let data1367 = data1354.name; const _errs1764 = errors; if ( !( typeof data1367 == "string" && (data1367 === "clinVar" || data1367 === "gene" || data1367 === "genotype" || data1367 === "gnomAdAf" || data1367 === "hpo" || data1367 === "inheritancePattern" || data1367 === "locus" || data1367 === "ref" || data1367 === "vipC" || data1367 === "vipCS" || data1367 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/name", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant.optionalProperties .sample_cells.optionalProperties.sv.elements .mapping.group.properties.fields.elements.mapping .composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1956 = _errs1764 === errors; } else { valid1956 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1956) { var valid1957; if (data1354.label !== undefined) { const _errs1765 = errors; if (!(typeof data1354.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/label", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1957 = _errs1765 === errors; } else { valid1957 = true; } if (valid1957) { if (data1354.description !== undefined) { const _errs1766 = errors; if (!(typeof data1354.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/description", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1957 = _errs1766 === errors; } else { valid1957 = true; } if (valid1957) { for (const key430 in data1354) { if ( key430 !== "type" && key430 !== "name" && key430 !== "label" && key430 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/" + key430.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key430, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1955) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1954 = _errs1763 === errors; valid1937 = valid1954; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag71 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag71 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1937) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields/" + i87, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1936 = _errs1746 === errors; if (!valid1936) { break; } } valid1935 = valid1936; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/fields", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1934 = _errs1745 === errors; } else { valid1934 = false; validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1934) { for (const key431 in data1337) { if (key431 !== "type" && key431 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/" + key431.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key431 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1933) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1932 = _errs1744 === errors; valid1911 = valid1932; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag70 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86 + "/type", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag70 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1911) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv/" + i86, schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1910 = _errs1723 === errors; if (!valid1910) { break; } } valid1909 = valid1910; } else { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/sv", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1758 = _errs1722 === errors; } else { valid1758 = true; } if (valid1758) { for (const key432 in data1233) { if (key432 !== "all" && key432 !== "snv" && key432 !== "str" && key432 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells/" + key432.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant/optionalProperties/sample_cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key432 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid1756) { validate57.errors = [ { instancePath: instancePath + "/variant/sample_cells", schemaPath: "/properties/variant/optionalProperties/sample_cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1755 = _errs1586 === errors; } else { valid1755 = true; } if (valid1755) { for (const key433 in data1095) { if (key433 !== "cells" && key433 !== "sample_cells") { validate57.errors = [ { instancePath: instancePath + "/variant/" + key433.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant", keyword: "properties", params: { error: "additional", additionalProperty: key433 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1550) { validate57.errors = [ { instancePath: instancePath + "/variant", schemaPath: "/properties/variant/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs1404 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/variant", keyword: "properties", params: { error: "missing", missingProperty: "variant" }, message: "must have property 'variant'", }, ]; return false; } if (valid1) { if (data.sample_variant_consequence !== undefined) { let data1370 = data.sample_variant_consequence; const _errs1767 = errors; let valid1959 = false; if (data1370 && typeof data1370 == "object" && !Array.isArray(data1370)) { valid1959 = true; var valid1961; if (data1370.sample_cells !== undefined) { let data1371 = data1370.sample_cells; const _errs1768 = errors; let valid1962 = false; if (data1371 && typeof data1371 == "object" && !Array.isArray(data1371)) { valid1962 = true; var valid1964; if (data1371.all !== undefined) { let data1372 = data1371.all; const _errs1769 = errors; let valid1965 = false; if (!valid1965) { if (Array.isArray(data1372)) { var valid1966 = true; const len88 = data1372.length; for (let i88 = 0; i88 < len88; i88++) { let data1373 = data1372[i88]; const _errs1770 = errors; let valid1967 = false; if (data1373 && typeof data1373 == "object" && !Array.isArray(data1373)) { const tag72 = data1373.type; if (tag72 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag72 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag72 == "string") { if (tag72 === "fixed") { const _errs1771 = errors; let valid1969 = false; valid1969 = true; var valid1970; if (data1373.name !== undefined) { let data1374 = data1373.name; const _errs1772 = errors; if ( !( typeof data1374 == "string" && (data1374 === "chrom" || data1374 === "pos" || data1374 === "id" || data1374 === "ref" || data1374 === "alt" || data1374 === "qual" || data1374 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.all.elements.mapping.fixed.properties .name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1970 = _errs1772 === errors; } else { valid1970 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1970) { var valid1971; if (data1373.label !== undefined) { const _errs1773 = errors; if (!(typeof data1373.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1971 = _errs1773 === errors; } else { valid1971 = true; } if (valid1971) { if (data1373.description !== undefined) { const _errs1774 = errors; if (!(typeof data1373.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1971 = _errs1774 === errors; } else { valid1971 = true; } if (valid1971) { for (const key434 in data1373) { if ( key434 !== "type" && key434 !== "name" && key434 !== "label" && key434 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/" + key434.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key434 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1969) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1968 = _errs1771 === errors; valid1967 = valid1968; } else if (tag72 === "info") { const _errs1775 = errors; let valid1973 = false; valid1973 = true; var valid1974; if (data1373.name !== undefined) { const _errs1776 = errors; if (!(typeof data1373.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1974 = _errs1776 === errors; } else { valid1974 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1974) { var valid1975; if (data1373.label !== undefined) { const _errs1777 = errors; if (!(typeof data1373.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1975 = _errs1777 === errors; } else { valid1975 = true; } if (valid1975) { if (data1373.description !== undefined) { const _errs1778 = errors; if (!(typeof data1373.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1975 = _errs1778 === errors; } else { valid1975 = true; } if (valid1975) { for (const key435 in data1373) { if ( key435 !== "type" && key435 !== "name" && key435 !== "label" && key435 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/" + key435.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key435 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1973) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1972 = _errs1775 === errors; valid1967 = valid1972; } else if (tag72 === "format") { const _errs1779 = errors; let valid1977 = false; valid1977 = true; var valid1978; if (data1373.name !== undefined) { const _errs1780 = errors; if (!(typeof data1373.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1978 = _errs1780 === errors; } else { valid1978 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1978) { var valid1979; if (data1373.label !== undefined) { const _errs1781 = errors; if (!(typeof data1373.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1979 = _errs1781 === errors; } else { valid1979 = true; } if (valid1979) { if (data1373.description !== undefined) { const _errs1782 = errors; if (!(typeof data1373.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1979 = _errs1782 === errors; } else { valid1979 = true; } if (valid1979) { for (const key436 in data1373) { if ( key436 !== "type" && key436 !== "name" && key436 !== "label" && key436 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/" + key436.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key436 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1977) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1976 = _errs1779 === errors; valid1967 = valid1976; } else if (tag72 === "genotype") { const _errs1783 = errors; let valid1981 = false; valid1981 = true; var valid1982; if (data1373.name !== undefined) { const _errs1784 = errors; if (!(typeof data1373.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1982 = _errs1784 === errors; } else { valid1982 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1982) { var valid1983; if (data1373.label !== undefined) { const _errs1785 = errors; if (!(typeof data1373.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1983 = _errs1785 === errors; } else { valid1983 = true; } if (valid1983) { if (data1373.description !== undefined) { const _errs1786 = errors; if (!(typeof data1373.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1983 = _errs1786 === errors; } else { valid1983 = true; } if (valid1983) { for (const key437 in data1373) { if ( key437 !== "type" && key437 !== "name" && key437 !== "label" && key437 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/" + key437.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key437 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1981) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1980 = _errs1783 === errors; valid1967 = valid1980; } else if (tag72 === "composed") { const _errs1787 = errors; let valid1985 = false; valid1985 = true; var valid1986; if (data1373.name !== undefined) { let data1386 = data1373.name; const _errs1788 = errors; if ( !( typeof data1386 == "string" && (data1386 === "clinVar" || data1386 === "confidenceInterval" || data1386 === "gene" || data1386 === "genotype" || data1386 === "genotype_maternal" || data1386 === "genotype_paternal" || data1386 === "gnomAdAf" || data1386 === "hpo" || data1386 === "inheritancePattern" || data1386 === "locus" || data1386 === "spanningReads" || data1386 === "vipC" || data1386 === "vipCS" || data1386 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.all.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1986 = _errs1788 === errors; } else { valid1986 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1986) { var valid1987; if (data1373.label !== undefined) { const _errs1789 = errors; if (!(typeof data1373.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1987 = _errs1789 === errors; } else { valid1987 = true; } if (valid1987) { if (data1373.description !== undefined) { const _errs1790 = errors; if (!(typeof data1373.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1987 = _errs1790 === errors; } else { valid1987 = true; } if (valid1987) { for (const key438 in data1373) { if ( key438 !== "type" && key438 !== "name" && key438 !== "label" && key438 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/" + key438.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key438 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1985) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1984 = _errs1787 === errors; valid1967 = valid1984; } else if (tag72 === "group") { const _errs1791 = errors; let valid1989 = false; valid1989 = true; var valid1990; if (data1373.fields !== undefined) { let data1389 = data1373.fields; const _errs1792 = errors; let valid1991 = false; if (!valid1991) { if (Array.isArray(data1389)) { var valid1992 = true; const len89 = data1389.length; for (let i89 = 0; i89 < len89; i89++) { let data1390 = data1389[i89]; const _errs1793 = errors; let valid1993 = false; if (data1390 && typeof data1390 == "object" && !Array.isArray(data1390)) { const tag73 = data1390.type; if (tag73 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag73 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag73 == "string") { if (tag73 === "fixed") { const _errs1794 = errors; let valid1995 = false; valid1995 = true; var valid1996; if (data1390.name !== undefined) { let data1391 = data1390.name; const _errs1795 = errors; if ( !( typeof data1391 == "string" && (data1391 === "chrom" || data1391 === "pos" || data1391 === "id" || data1391 === "ref" || data1391 === "alt" || data1391 === "qual" || data1391 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells.optionalProperties.all .elements.mapping.group.properties.fields.elements .mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid1996 = _errs1795 === errors; } else { valid1996 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid1996) { var valid1997; if (data1390.label !== undefined) { const _errs1796 = errors; if (!(typeof data1390.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1997 = _errs1796 === errors; } else { valid1997 = true; } if (valid1997) { if (data1390.description !== undefined) { const _errs1797 = errors; if (!(typeof data1390.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid1997 = _errs1797 === errors; } else { valid1997 = true; } if (valid1997) { for (const key439 in data1390) { if ( key439 !== "type" && key439 !== "name" && key439 !== "label" && key439 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/" + key439.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key439, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1995) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1994 = _errs1794 === errors; valid1993 = valid1994; } else if (tag73 === "info") { const _errs1798 = errors; let valid1999 = false; valid1999 = true; var valid2000; if (data1390.name !== undefined) { const _errs1799 = errors; if (!(typeof data1390.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2000 = _errs1799 === errors; } else { valid2000 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2000) { var valid2001; if (data1390.label !== undefined) { const _errs1800 = errors; if (!(typeof data1390.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2001 = _errs1800 === errors; } else { valid2001 = true; } if (valid2001) { if (data1390.description !== undefined) { const _errs1801 = errors; if (!(typeof data1390.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2001 = _errs1801 === errors; } else { valid2001 = true; } if (valid2001) { for (const key440 in data1390) { if ( key440 !== "type" && key440 !== "name" && key440 !== "label" && key440 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/" + key440.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key440, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid1999) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1998 = _errs1798 === errors; valid1993 = valid1998; } else if (tag73 === "format") { const _errs1802 = errors; let valid2003 = false; valid2003 = true; var valid2004; if (data1390.name !== undefined) { const _errs1803 = errors; if (!(typeof data1390.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2004 = _errs1803 === errors; } else { valid2004 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2004) { var valid2005; if (data1390.label !== undefined) { const _errs1804 = errors; if (!(typeof data1390.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2005 = _errs1804 === errors; } else { valid2005 = true; } if (valid2005) { if (data1390.description !== undefined) { const _errs1805 = errors; if (!(typeof data1390.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2005 = _errs1805 === errors; } else { valid2005 = true; } if (valid2005) { for (const key441 in data1390) { if ( key441 !== "type" && key441 !== "name" && key441 !== "label" && key441 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/" + key441.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key441, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2003) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2002 = _errs1802 === errors; valid1993 = valid2002; } else if (tag73 === "genotype") { const _errs1806 = errors; let valid2007 = false; valid2007 = true; var valid2008; if (data1390.name !== undefined) { const _errs1807 = errors; if (!(typeof data1390.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2008 = _errs1807 === errors; } else { valid2008 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2008) { var valid2009; if (data1390.label !== undefined) { const _errs1808 = errors; if (!(typeof data1390.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2009 = _errs1808 === errors; } else { valid2009 = true; } if (valid2009) { if (data1390.description !== undefined) { const _errs1809 = errors; if (!(typeof data1390.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2009 = _errs1809 === errors; } else { valid2009 = true; } if (valid2009) { for (const key442 in data1390) { if ( key442 !== "type" && key442 !== "name" && key442 !== "label" && key442 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/" + key442.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key442, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2007) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2006 = _errs1806 === errors; valid1993 = valid2006; } else if (tag73 === "composed") { const _errs1810 = errors; let valid2011 = false; valid2011 = true; var valid2012; if (data1390.name !== undefined) { let data1403 = data1390.name; const _errs1811 = errors; if ( !( typeof data1403 == "string" && (data1403 === "clinVar" || data1403 === "gene" || data1403 === "genotype" || data1403 === "gnomAdAf" || data1403 === "hpo" || data1403 === "inheritancePattern" || data1403 === "locus" || data1403 === "ref" || data1403 === "vipC" || data1403 === "vipCS" || data1403 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells.optionalProperties.all .elements.mapping.group.properties.fields.elements .mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2012 = _errs1811 === errors; } else { valid2012 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2012) { var valid2013; if (data1390.label !== undefined) { const _errs1812 = errors; if (!(typeof data1390.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2013 = _errs1812 === errors; } else { valid2013 = true; } if (valid2013) { if (data1390.description !== undefined) { const _errs1813 = errors; if (!(typeof data1390.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2013 = _errs1813 === errors; } else { valid2013 = true; } if (valid2013) { for (const key443 in data1390) { if ( key443 !== "type" && key443 !== "name" && key443 !== "label" && key443 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/" + key443.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key443, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2011) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2010 = _errs1810 === errors; valid1993 = valid2010; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag73 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag73 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1993) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields/" + i89, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1992 = _errs1793 === errors; if (!valid1992) { break; } } valid1991 = valid1992; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/fields", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1990 = _errs1792 === errors; } else { valid1990 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid1990) { for (const key444 in data1373) { if (key444 !== "type" && key444 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/" + key444.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key444 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid1989) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1988 = _errs1791 === errors; valid1967 = valid1988; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag72 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag72 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid1967) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all/" + i88, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1966 = _errs1770 === errors; if (!valid1966) { break; } } valid1965 = valid1966; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/all", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1964 = _errs1769 === errors; } else { valid1964 = true; } if (valid1964) { if (data1371.snv !== undefined) { let data1406 = data1371.snv; const _errs1814 = errors; let valid2015 = false; if (!valid2015) { if (Array.isArray(data1406)) { var valid2016 = true; const len90 = data1406.length; for (let i90 = 0; i90 < len90; i90++) { let data1407 = data1406[i90]; const _errs1815 = errors; let valid2017 = false; if (data1407 && typeof data1407 == "object" && !Array.isArray(data1407)) { const tag74 = data1407.type; if (tag74 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag74 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag74 == "string") { if (tag74 === "fixed") { const _errs1816 = errors; let valid2019 = false; valid2019 = true; var valid2020; if (data1407.name !== undefined) { let data1408 = data1407.name; const _errs1817 = errors; if ( !( typeof data1408 == "string" && (data1408 === "chrom" || data1408 === "pos" || data1408 === "id" || data1408 === "ref" || data1408 === "alt" || data1408 === "qual" || data1408 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2020 = _errs1817 === errors; } else { valid2020 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2020) { var valid2021; if (data1407.label !== undefined) { const _errs1818 = errors; if (!(typeof data1407.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2021 = _errs1818 === errors; } else { valid2021 = true; } if (valid2021) { if (data1407.description !== undefined) { const _errs1819 = errors; if (!(typeof data1407.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2021 = _errs1819 === errors; } else { valid2021 = true; } if (valid2021) { for (const key445 in data1407) { if ( key445 !== "type" && key445 !== "name" && key445 !== "label" && key445 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/" + key445.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key445 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2019) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2018 = _errs1816 === errors; valid2017 = valid2018; } else if (tag74 === "info") { const _errs1820 = errors; let valid2023 = false; valid2023 = true; var valid2024; if (data1407.name !== undefined) { const _errs1821 = errors; if (!(typeof data1407.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2024 = _errs1821 === errors; } else { valid2024 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2024) { var valid2025; if (data1407.label !== undefined) { const _errs1822 = errors; if (!(typeof data1407.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2025 = _errs1822 === errors; } else { valid2025 = true; } if (valid2025) { if (data1407.description !== undefined) { const _errs1823 = errors; if (!(typeof data1407.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2025 = _errs1823 === errors; } else { valid2025 = true; } if (valid2025) { for (const key446 in data1407) { if ( key446 !== "type" && key446 !== "name" && key446 !== "label" && key446 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/" + key446.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key446 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2023) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2022 = _errs1820 === errors; valid2017 = valid2022; } else if (tag74 === "format") { const _errs1824 = errors; let valid2027 = false; valid2027 = true; var valid2028; if (data1407.name !== undefined) { const _errs1825 = errors; if (!(typeof data1407.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2028 = _errs1825 === errors; } else { valid2028 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2028) { var valid2029; if (data1407.label !== undefined) { const _errs1826 = errors; if (!(typeof data1407.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2029 = _errs1826 === errors; } else { valid2029 = true; } if (valid2029) { if (data1407.description !== undefined) { const _errs1827 = errors; if (!(typeof data1407.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2029 = _errs1827 === errors; } else { valid2029 = true; } if (valid2029) { for (const key447 in data1407) { if ( key447 !== "type" && key447 !== "name" && key447 !== "label" && key447 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/" + key447.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key447 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2027) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2026 = _errs1824 === errors; valid2017 = valid2026; } else if (tag74 === "genotype") { const _errs1828 = errors; let valid2031 = false; valid2031 = true; var valid2032; if (data1407.name !== undefined) { const _errs1829 = errors; if (!(typeof data1407.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2032 = _errs1829 === errors; } else { valid2032 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2032) { var valid2033; if (data1407.label !== undefined) { const _errs1830 = errors; if (!(typeof data1407.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2033 = _errs1830 === errors; } else { valid2033 = true; } if (valid2033) { if (data1407.description !== undefined) { const _errs1831 = errors; if (!(typeof data1407.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2033 = _errs1831 === errors; } else { valid2033 = true; } if (valid2033) { for (const key448 in data1407) { if ( key448 !== "type" && key448 !== "name" && key448 !== "label" && key448 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/" + key448.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key448 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2031) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2030 = _errs1828 === errors; valid2017 = valid2030; } else if (tag74 === "composed") { const _errs1832 = errors; let valid2035 = false; valid2035 = true; var valid2036; if (data1407.name !== undefined) { let data1420 = data1407.name; const _errs1833 = errors; if ( !( typeof data1420 == "string" && (data1420 === "clinVar" || data1420 === "confidenceInterval" || data1420 === "gene" || data1420 === "genotype" || data1420 === "genotype_maternal" || data1420 === "genotype_paternal" || data1420 === "gnomAdAf" || data1420 === "hpo" || data1420 === "inheritancePattern" || data1420 === "locus" || data1420 === "spanningReads" || data1420 === "vipC" || data1420 === "vipCS" || data1420 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2036 = _errs1833 === errors; } else { valid2036 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2036) { var valid2037; if (data1407.label !== undefined) { const _errs1834 = errors; if (!(typeof data1407.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2037 = _errs1834 === errors; } else { valid2037 = true; } if (valid2037) { if (data1407.description !== undefined) { const _errs1835 = errors; if (!(typeof data1407.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2037 = _errs1835 === errors; } else { valid2037 = true; } if (valid2037) { for (const key449 in data1407) { if ( key449 !== "type" && key449 !== "name" && key449 !== "label" && key449 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/" + key449.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key449 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2035) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2034 = _errs1832 === errors; valid2017 = valid2034; } else if (tag74 === "group") { const _errs1836 = errors; let valid2039 = false; valid2039 = true; var valid2040; if (data1407.fields !== undefined) { let data1423 = data1407.fields; const _errs1837 = errors; let valid2041 = false; if (!valid2041) { if (Array.isArray(data1423)) { var valid2042 = true; const len91 = data1423.length; for (let i91 = 0; i91 < len91; i91++) { let data1424 = data1423[i91]; const _errs1838 = errors; let valid2043 = false; if (data1424 && typeof data1424 == "object" && !Array.isArray(data1424)) { const tag75 = data1424.type; if (tag75 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag75 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag75 == "string") { if (tag75 === "fixed") { const _errs1839 = errors; let valid2045 = false; valid2045 = true; var valid2046; if (data1424.name !== undefined) { let data1425 = data1424.name; const _errs1840 = errors; if ( !( typeof data1425 == "string" && (data1425 === "chrom" || data1425 === "pos" || data1425 === "id" || data1425 === "ref" || data1425 === "alt" || data1425 === "qual" || data1425 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells.optionalProperties .snv.elements.mapping.group.properties.fields.elements .mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2046 = _errs1840 === errors; } else { valid2046 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2046) { var valid2047; if (data1424.label !== undefined) { const _errs1841 = errors; if (!(typeof data1424.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2047 = _errs1841 === errors; } else { valid2047 = true; } if (valid2047) { if (data1424.description !== undefined) { const _errs1842 = errors; if (!(typeof data1424.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2047 = _errs1842 === errors; } else { valid2047 = true; } if (valid2047) { for (const key450 in data1424) { if ( key450 !== "type" && key450 !== "name" && key450 !== "label" && key450 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/" + key450.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key450, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2045) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2044 = _errs1839 === errors; valid2043 = valid2044; } else if (tag75 === "info") { const _errs1843 = errors; let valid2049 = false; valid2049 = true; var valid2050; if (data1424.name !== undefined) { const _errs1844 = errors; if (!(typeof data1424.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2050 = _errs1844 === errors; } else { valid2050 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2050) { var valid2051; if (data1424.label !== undefined) { const _errs1845 = errors; if (!(typeof data1424.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2051 = _errs1845 === errors; } else { valid2051 = true; } if (valid2051) { if (data1424.description !== undefined) { const _errs1846 = errors; if (!(typeof data1424.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2051 = _errs1846 === errors; } else { valid2051 = true; } if (valid2051) { for (const key451 in data1424) { if ( key451 !== "type" && key451 !== "name" && key451 !== "label" && key451 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/" + key451.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key451, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2049) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2048 = _errs1843 === errors; valid2043 = valid2048; } else if (tag75 === "format") { const _errs1847 = errors; let valid2053 = false; valid2053 = true; var valid2054; if (data1424.name !== undefined) { const _errs1848 = errors; if (!(typeof data1424.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2054 = _errs1848 === errors; } else { valid2054 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2054) { var valid2055; if (data1424.label !== undefined) { const _errs1849 = errors; if (!(typeof data1424.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2055 = _errs1849 === errors; } else { valid2055 = true; } if (valid2055) { if (data1424.description !== undefined) { const _errs1850 = errors; if (!(typeof data1424.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2055 = _errs1850 === errors; } else { valid2055 = true; } if (valid2055) { for (const key452 in data1424) { if ( key452 !== "type" && key452 !== "name" && key452 !== "label" && key452 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/" + key452.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key452, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2053) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2052 = _errs1847 === errors; valid2043 = valid2052; } else if (tag75 === "genotype") { const _errs1851 = errors; let valid2057 = false; valid2057 = true; var valid2058; if (data1424.name !== undefined) { const _errs1852 = errors; if (!(typeof data1424.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2058 = _errs1852 === errors; } else { valid2058 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2058) { var valid2059; if (data1424.label !== undefined) { const _errs1853 = errors; if (!(typeof data1424.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2059 = _errs1853 === errors; } else { valid2059 = true; } if (valid2059) { if (data1424.description !== undefined) { const _errs1854 = errors; if (!(typeof data1424.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2059 = _errs1854 === errors; } else { valid2059 = true; } if (valid2059) { for (const key453 in data1424) { if ( key453 !== "type" && key453 !== "name" && key453 !== "label" && key453 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/" + key453.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key453, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2057) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2056 = _errs1851 === errors; valid2043 = valid2056; } else if (tag75 === "composed") { const _errs1855 = errors; let valid2061 = false; valid2061 = true; var valid2062; if (data1424.name !== undefined) { let data1437 = data1424.name; const _errs1856 = errors; if ( !( typeof data1437 == "string" && (data1437 === "clinVar" || data1437 === "gene" || data1437 === "genotype" || data1437 === "gnomAdAf" || data1437 === "hpo" || data1437 === "inheritancePattern" || data1437 === "locus" || data1437 === "ref" || data1437 === "vipC" || data1437 === "vipCS" || data1437 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells.optionalProperties .snv.elements.mapping.group.properties.fields.elements .mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2062 = _errs1856 === errors; } else { valid2062 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2062) { var valid2063; if (data1424.label !== undefined) { const _errs1857 = errors; if (!(typeof data1424.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2063 = _errs1857 === errors; } else { valid2063 = true; } if (valid2063) { if (data1424.description !== undefined) { const _errs1858 = errors; if (!(typeof data1424.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2063 = _errs1858 === errors; } else { valid2063 = true; } if (valid2063) { for (const key454 in data1424) { if ( key454 !== "type" && key454 !== "name" && key454 !== "label" && key454 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/" + key454.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key454, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2061) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2060 = _errs1855 === errors; valid2043 = valid2060; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag75 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag75 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2043) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields/" + i91, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2042 = _errs1838 === errors; if (!valid2042) { break; } } valid2041 = valid2042; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/fields", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2040 = _errs1837 === errors; } else { valid2040 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2040) { for (const key455 in data1407) { if (key455 !== "type" && key455 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/" + key455.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key455 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2039) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2038 = _errs1836 === errors; valid2017 = valid2038; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag74 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag74 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2017) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv/" + i90, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2016 = _errs1815 === errors; if (!valid2016) { break; } } valid2015 = valid2016; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/snv", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1964 = _errs1814 === errors; } else { valid1964 = true; } if (valid1964) { if (data1371.str !== undefined) { let data1440 = data1371.str; const _errs1859 = errors; let valid2065 = false; if (!valid2065) { if (Array.isArray(data1440)) { var valid2066 = true; const len92 = data1440.length; for (let i92 = 0; i92 < len92; i92++) { let data1441 = data1440[i92]; const _errs1860 = errors; let valid2067 = false; if (data1441 && typeof data1441 == "object" && !Array.isArray(data1441)) { const tag76 = data1441.type; if (tag76 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag76 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag76 == "string") { if (tag76 === "fixed") { const _errs1861 = errors; let valid2069 = false; valid2069 = true; var valid2070; if (data1441.name !== undefined) { let data1442 = data1441.name; const _errs1862 = errors; if ( !( typeof data1442 == "string" && (data1442 === "chrom" || data1442 === "pos" || data1442 === "id" || data1442 === "ref" || data1442 === "alt" || data1442 === "qual" || data1442 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.str.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2070 = _errs1862 === errors; } else { valid2070 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2070) { var valid2071; if (data1441.label !== undefined) { const _errs1863 = errors; if (!(typeof data1441.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2071 = _errs1863 === errors; } else { valid2071 = true; } if (valid2071) { if (data1441.description !== undefined) { const _errs1864 = errors; if (!(typeof data1441.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2071 = _errs1864 === errors; } else { valid2071 = true; } if (valid2071) { for (const key456 in data1441) { if ( key456 !== "type" && key456 !== "name" && key456 !== "label" && key456 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/" + key456.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key456 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2069) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2068 = _errs1861 === errors; valid2067 = valid2068; } else if (tag76 === "info") { const _errs1865 = errors; let valid2073 = false; valid2073 = true; var valid2074; if (data1441.name !== undefined) { const _errs1866 = errors; if (!(typeof data1441.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2074 = _errs1866 === errors; } else { valid2074 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2074) { var valid2075; if (data1441.label !== undefined) { const _errs1867 = errors; if (!(typeof data1441.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2075 = _errs1867 === errors; } else { valid2075 = true; } if (valid2075) { if (data1441.description !== undefined) { const _errs1868 = errors; if (!(typeof data1441.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2075 = _errs1868 === errors; } else { valid2075 = true; } if (valid2075) { for (const key457 in data1441) { if ( key457 !== "type" && key457 !== "name" && key457 !== "label" && key457 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/" + key457.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key457 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2073) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2072 = _errs1865 === errors; valid2067 = valid2072; } else if (tag76 === "format") { const _errs1869 = errors; let valid2077 = false; valid2077 = true; var valid2078; if (data1441.name !== undefined) { const _errs1870 = errors; if (!(typeof data1441.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2078 = _errs1870 === errors; } else { valid2078 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2078) { var valid2079; if (data1441.label !== undefined) { const _errs1871 = errors; if (!(typeof data1441.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2079 = _errs1871 === errors; } else { valid2079 = true; } if (valid2079) { if (data1441.description !== undefined) { const _errs1872 = errors; if (!(typeof data1441.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2079 = _errs1872 === errors; } else { valid2079 = true; } if (valid2079) { for (const key458 in data1441) { if ( key458 !== "type" && key458 !== "name" && key458 !== "label" && key458 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/" + key458.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key458 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2077) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2076 = _errs1869 === errors; valid2067 = valid2076; } else if (tag76 === "genotype") { const _errs1873 = errors; let valid2081 = false; valid2081 = true; var valid2082; if (data1441.name !== undefined) { const _errs1874 = errors; if (!(typeof data1441.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2082 = _errs1874 === errors; } else { valid2082 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2082) { var valid2083; if (data1441.label !== undefined) { const _errs1875 = errors; if (!(typeof data1441.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2083 = _errs1875 === errors; } else { valid2083 = true; } if (valid2083) { if (data1441.description !== undefined) { const _errs1876 = errors; if (!(typeof data1441.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2083 = _errs1876 === errors; } else { valid2083 = true; } if (valid2083) { for (const key459 in data1441) { if ( key459 !== "type" && key459 !== "name" && key459 !== "label" && key459 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/" + key459.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key459 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2081) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2080 = _errs1873 === errors; valid2067 = valid2080; } else if (tag76 === "composed") { const _errs1877 = errors; let valid2085 = false; valid2085 = true; var valid2086; if (data1441.name !== undefined) { let data1454 = data1441.name; const _errs1878 = errors; if ( !( typeof data1454 == "string" && (data1454 === "clinVar" || data1454 === "confidenceInterval" || data1454 === "gene" || data1454 === "genotype" || data1454 === "genotype_maternal" || data1454 === "genotype_paternal" || data1454 === "gnomAdAf" || data1454 === "hpo" || data1454 === "inheritancePattern" || data1454 === "locus" || data1454 === "spanningReads" || data1454 === "vipC" || data1454 === "vipCS" || data1454 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.str.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2086 = _errs1878 === errors; } else { valid2086 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2086) { var valid2087; if (data1441.label !== undefined) { const _errs1879 = errors; if (!(typeof data1441.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2087 = _errs1879 === errors; } else { valid2087 = true; } if (valid2087) { if (data1441.description !== undefined) { const _errs1880 = errors; if (!(typeof data1441.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2087 = _errs1880 === errors; } else { valid2087 = true; } if (valid2087) { for (const key460 in data1441) { if ( key460 !== "type" && key460 !== "name" && key460 !== "label" && key460 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/" + key460.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key460 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2085) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2084 = _errs1877 === errors; valid2067 = valid2084; } else if (tag76 === "group") { const _errs1881 = errors; let valid2089 = false; valid2089 = true; var valid2090; if (data1441.fields !== undefined) { let data1457 = data1441.fields; const _errs1882 = errors; let valid2091 = false; if (!valid2091) { if (Array.isArray(data1457)) { var valid2092 = true; const len93 = data1457.length; for (let i93 = 0; i93 < len93; i93++) { let data1458 = data1457[i93]; const _errs1883 = errors; let valid2093 = false; if ( data1458 && typeof data1458 == "object" && !Array.isArray(data1458) ) { const tag77 = data1458.type; if (tag77 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag77 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag77 == "string") { if (tag77 === "fixed") { const _errs1884 = errors; let valid2095 = false; valid2095 = true; var valid2096; if (data1458.name !== undefined) { let data1459 = data1458.name; const _errs1885 = errors; if ( !( typeof data1459 == "string" && (data1459 === "chrom" || data1459 === "pos" || data1459 === "id" || data1459 === "ref" || data1459 === "alt" || data1459 === "qual" || data1459 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells.optionalProperties .str.elements.mapping.group.properties.fields .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2096 = _errs1885 === errors; } else { valid2096 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2096) { var valid2097; if (data1458.label !== undefined) { const _errs1886 = errors; if (!(typeof data1458.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2097 = _errs1886 === errors; } else { valid2097 = true; } if (valid2097) { if (data1458.description !== undefined) { const _errs1887 = errors; if (!(typeof data1458.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2097 = _errs1887 === errors; } else { valid2097 = true; } if (valid2097) { for (const key461 in data1458) { if ( key461 !== "type" && key461 !== "name" && key461 !== "label" && key461 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/" + key461.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key461, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2095) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2094 = _errs1884 === errors; valid2093 = valid2094; } else if (tag77 === "info") { const _errs1888 = errors; let valid2099 = false; valid2099 = true; var valid2100; if (data1458.name !== undefined) { const _errs1889 = errors; if (!(typeof data1458.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2100 = _errs1889 === errors; } else { valid2100 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2100) { var valid2101; if (data1458.label !== undefined) { const _errs1890 = errors; if (!(typeof data1458.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2101 = _errs1890 === errors; } else { valid2101 = true; } if (valid2101) { if (data1458.description !== undefined) { const _errs1891 = errors; if (!(typeof data1458.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2101 = _errs1891 === errors; } else { valid2101 = true; } if (valid2101) { for (const key462 in data1458) { if ( key462 !== "type" && key462 !== "name" && key462 !== "label" && key462 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/" + key462.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key462, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2099) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2098 = _errs1888 === errors; valid2093 = valid2098; } else if (tag77 === "format") { const _errs1892 = errors; let valid2103 = false; valid2103 = true; var valid2104; if (data1458.name !== undefined) { const _errs1893 = errors; if (!(typeof data1458.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2104 = _errs1893 === errors; } else { valid2104 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2104) { var valid2105; if (data1458.label !== undefined) { const _errs1894 = errors; if (!(typeof data1458.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2105 = _errs1894 === errors; } else { valid2105 = true; } if (valid2105) { if (data1458.description !== undefined) { const _errs1895 = errors; if (!(typeof data1458.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2105 = _errs1895 === errors; } else { valid2105 = true; } if (valid2105) { for (const key463 in data1458) { if ( key463 !== "type" && key463 !== "name" && key463 !== "label" && key463 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/" + key463.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key463, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2103) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2102 = _errs1892 === errors; valid2093 = valid2102; } else if (tag77 === "genotype") { const _errs1896 = errors; let valid2107 = false; valid2107 = true; var valid2108; if (data1458.name !== undefined) { const _errs1897 = errors; if (!(typeof data1458.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2108 = _errs1897 === errors; } else { valid2108 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2108) { var valid2109; if (data1458.label !== undefined) { const _errs1898 = errors; if (!(typeof data1458.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2109 = _errs1898 === errors; } else { valid2109 = true; } if (valid2109) { if (data1458.description !== undefined) { const _errs1899 = errors; if (!(typeof data1458.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2109 = _errs1899 === errors; } else { valid2109 = true; } if (valid2109) { for (const key464 in data1458) { if ( key464 !== "type" && key464 !== "name" && key464 !== "label" && key464 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/" + key464.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key464, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2107) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2106 = _errs1896 === errors; valid2093 = valid2106; } else if (tag77 === "composed") { const _errs1900 = errors; let valid2111 = false; valid2111 = true; var valid2112; if (data1458.name !== undefined) { let data1471 = data1458.name; const _errs1901 = errors; if ( !( typeof data1471 == "string" && (data1471 === "clinVar" || data1471 === "gene" || data1471 === "genotype" || data1471 === "gnomAdAf" || data1471 === "hpo" || data1471 === "inheritancePattern" || data1471 === "locus" || data1471 === "ref" || data1471 === "vipC" || data1471 === "vipCS" || data1471 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells.optionalProperties .str.elements.mapping.group.properties.fields .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2112 = _errs1901 === errors; } else { valid2112 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2112) { var valid2113; if (data1458.label !== undefined) { const _errs1902 = errors; if (!(typeof data1458.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2113 = _errs1902 === errors; } else { valid2113 = true; } if (valid2113) { if (data1458.description !== undefined) { const _errs1903 = errors; if (!(typeof data1458.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2113 = _errs1903 === errors; } else { valid2113 = true; } if (valid2113) { for (const key465 in data1458) { if ( key465 !== "type" && key465 !== "name" && key465 !== "label" && key465 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/" + key465.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key465, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2111) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2110 = _errs1900 === errors; valid2093 = valid2110; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag77 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag77 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2093) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields/" + i93, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2092 = _errs1883 === errors; if (!valid2092) { break; } } valid2091 = valid2092; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/fields", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2090 = _errs1882 === errors; } else { valid2090 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2090) { for (const key466 in data1441) { if (key466 !== "type" && key466 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/" + key466.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key466 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2089) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2088 = _errs1881 === errors; valid2067 = valid2088; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag76 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag76 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2067) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str/" + i92, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2066 = _errs1860 === errors; if (!valid2066) { break; } } valid2065 = valid2066; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/str", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1964 = _errs1859 === errors; } else { valid1964 = true; } if (valid1964) { if (data1371.sv !== undefined) { let data1474 = data1371.sv; const _errs1904 = errors; let valid2115 = false; if (!valid2115) { if (Array.isArray(data1474)) { var valid2116 = true; const len94 = data1474.length; for (let i94 = 0; i94 < len94; i94++) { let data1475 = data1474[i94]; const _errs1905 = errors; let valid2117 = false; if (data1475 && typeof data1475 == "object" && !Array.isArray(data1475)) { const tag78 = data1475.type; if (tag78 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag78 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag78 == "string") { if (tag78 === "fixed") { const _errs1906 = errors; let valid2119 = false; valid2119 = true; var valid2120; if (data1475.name !== undefined) { let data1476 = data1475.name; const _errs1907 = errors; if ( !( typeof data1476 == "string" && (data1476 === "chrom" || data1476 === "pos" || data1476 === "id" || data1476 === "ref" || data1476 === "alt" || data1476 === "qual" || data1476 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.sv.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2120 = _errs1907 === errors; } else { valid2120 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2120) { var valid2121; if (data1475.label !== undefined) { const _errs1908 = errors; if (!(typeof data1475.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2121 = _errs1908 === errors; } else { valid2121 = true; } if (valid2121) { if (data1475.description !== undefined) { const _errs1909 = errors; if (!(typeof data1475.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2121 = _errs1909 === errors; } else { valid2121 = true; } if (valid2121) { for (const key467 in data1475) { if ( key467 !== "type" && key467 !== "name" && key467 !== "label" && key467 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/" + key467.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key467 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2119) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2118 = _errs1906 === errors; valid2117 = valid2118; } else if (tag78 === "info") { const _errs1910 = errors; let valid2123 = false; valid2123 = true; var valid2124; if (data1475.name !== undefined) { const _errs1911 = errors; if (!(typeof data1475.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2124 = _errs1911 === errors; } else { valid2124 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2124) { var valid2125; if (data1475.label !== undefined) { const _errs1912 = errors; if (!(typeof data1475.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2125 = _errs1912 === errors; } else { valid2125 = true; } if (valid2125) { if (data1475.description !== undefined) { const _errs1913 = errors; if (!(typeof data1475.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2125 = _errs1913 === errors; } else { valid2125 = true; } if (valid2125) { for (const key468 in data1475) { if ( key468 !== "type" && key468 !== "name" && key468 !== "label" && key468 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/" + key468.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key468 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2123) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2122 = _errs1910 === errors; valid2117 = valid2122; } else if (tag78 === "format") { const _errs1914 = errors; let valid2127 = false; valid2127 = true; var valid2128; if (data1475.name !== undefined) { const _errs1915 = errors; if (!(typeof data1475.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2128 = _errs1915 === errors; } else { valid2128 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2128) { var valid2129; if (data1475.label !== undefined) { const _errs1916 = errors; if (!(typeof data1475.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2129 = _errs1916 === errors; } else { valid2129 = true; } if (valid2129) { if (data1475.description !== undefined) { const _errs1917 = errors; if (!(typeof data1475.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2129 = _errs1917 === errors; } else { valid2129 = true; } if (valid2129) { for (const key469 in data1475) { if ( key469 !== "type" && key469 !== "name" && key469 !== "label" && key469 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/" + key469.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key469 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2127) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2126 = _errs1914 === errors; valid2117 = valid2126; } else if (tag78 === "genotype") { const _errs1918 = errors; let valid2131 = false; valid2131 = true; var valid2132; if (data1475.name !== undefined) { const _errs1919 = errors; if (!(typeof data1475.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2132 = _errs1919 === errors; } else { valid2132 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2132) { var valid2133; if (data1475.label !== undefined) { const _errs1920 = errors; if (!(typeof data1475.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2133 = _errs1920 === errors; } else { valid2133 = true; } if (valid2133) { if (data1475.description !== undefined) { const _errs1921 = errors; if (!(typeof data1475.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2133 = _errs1921 === errors; } else { valid2133 = true; } if (valid2133) { for (const key470 in data1475) { if ( key470 !== "type" && key470 !== "name" && key470 !== "label" && key470 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/" + key470.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key470 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2131) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2130 = _errs1918 === errors; valid2117 = valid2130; } else if (tag78 === "composed") { const _errs1922 = errors; let valid2135 = false; valid2135 = true; var valid2136; if (data1475.name !== undefined) { let data1488 = data1475.name; const _errs1923 = errors; if ( !( typeof data1488 == "string" && (data1488 === "clinVar" || data1488 === "confidenceInterval" || data1488 === "gene" || data1488 === "genotype" || data1488 === "genotype_maternal" || data1488 === "genotype_paternal" || data1488 === "gnomAdAf" || data1488 === "hpo" || data1488 === "inheritancePattern" || data1488 === "locus" || data1488 === "spanningReads" || data1488 === "vipC" || data1488 === "vipCS" || data1488 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence.optionalProperties .sample_cells.optionalProperties.sv.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2136 = _errs1923 === errors; } else { valid2136 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2136) { var valid2137; if (data1475.label !== undefined) { const _errs1924 = errors; if (!(typeof data1475.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2137 = _errs1924 === errors; } else { valid2137 = true; } if (valid2137) { if (data1475.description !== undefined) { const _errs1925 = errors; if (!(typeof data1475.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2137 = _errs1925 === errors; } else { valid2137 = true; } if (valid2137) { for (const key471 in data1475) { if ( key471 !== "type" && key471 !== "name" && key471 !== "label" && key471 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/" + key471.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key471 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2135) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2134 = _errs1922 === errors; valid2117 = valid2134; } else if (tag78 === "group") { const _errs1926 = errors; let valid2139 = false; valid2139 = true; var valid2140; if (data1475.fields !== undefined) { let data1491 = data1475.fields; const _errs1927 = errors; let valid2141 = false; if (!valid2141) { if (Array.isArray(data1491)) { var valid2142 = true; const len95 = data1491.length; for (let i95 = 0; i95 < len95; i95++) { let data1492 = data1491[i95]; const _errs1928 = errors; let valid2143 = false; if ( data1492 && typeof data1492 == "object" && !Array.isArray(data1492) ) { const tag79 = data1492.type; if (tag79 === undefined) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag79 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag79 == "string") { if (tag79 === "fixed") { const _errs1929 = errors; let valid2145 = false; valid2145 = true; var valid2146; if (data1492.name !== undefined) { let data1493 = data1492.name; const _errs1930 = errors; if ( !( typeof data1493 == "string" && (data1493 === "chrom" || data1493 === "pos" || data1493 === "id" || data1493 === "ref" || data1493 === "alt" || data1493 === "qual" || data1493 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2146 = _errs1930 === errors; } else { valid2146 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2146) { var valid2147; if (data1492.label !== undefined) { const _errs1931 = errors; if (!(typeof data1492.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2147 = _errs1931 === errors; } else { valid2147 = true; } if (valid2147) { if (data1492.description !== undefined) { const _errs1932 = errors; if (!(typeof data1492.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2147 = _errs1932 === errors; } else { valid2147 = true; } if (valid2147) { for (const key472 in data1492) { if ( key472 !== "type" && key472 !== "name" && key472 !== "label" && key472 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/" + key472.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key472, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2145) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2144 = _errs1929 === errors; valid2143 = valid2144; } else if (tag79 === "info") { const _errs1933 = errors; let valid2149 = false; valid2149 = true; var valid2150; if (data1492.name !== undefined) { const _errs1934 = errors; if (!(typeof data1492.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2150 = _errs1934 === errors; } else { valid2150 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2150) { var valid2151; if (data1492.label !== undefined) { const _errs1935 = errors; if (!(typeof data1492.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2151 = _errs1935 === errors; } else { valid2151 = true; } if (valid2151) { if (data1492.description !== undefined) { const _errs1936 = errors; if (!(typeof data1492.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2151 = _errs1936 === errors; } else { valid2151 = true; } if (valid2151) { for (const key473 in data1492) { if ( key473 !== "type" && key473 !== "name" && key473 !== "label" && key473 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/" + key473.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key473, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2149) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2148 = _errs1933 === errors; valid2143 = valid2148; } else if (tag79 === "format") { const _errs1937 = errors; let valid2153 = false; valid2153 = true; var valid2154; if (data1492.name !== undefined) { const _errs1938 = errors; if (!(typeof data1492.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2154 = _errs1938 === errors; } else { valid2154 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2154) { var valid2155; if (data1492.label !== undefined) { const _errs1939 = errors; if (!(typeof data1492.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2155 = _errs1939 === errors; } else { valid2155 = true; } if (valid2155) { if (data1492.description !== undefined) { const _errs1940 = errors; if (!(typeof data1492.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2155 = _errs1940 === errors; } else { valid2155 = true; } if (valid2155) { for (const key474 in data1492) { if ( key474 !== "type" && key474 !== "name" && key474 !== "label" && key474 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/" + key474.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key474, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2153) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2152 = _errs1937 === errors; valid2143 = valid2152; } else if (tag79 === "genotype") { const _errs1941 = errors; let valid2157 = false; valid2157 = true; var valid2158; if (data1492.name !== undefined) { const _errs1942 = errors; if (!(typeof data1492.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2158 = _errs1942 === errors; } else { valid2158 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2158) { var valid2159; if (data1492.label !== undefined) { const _errs1943 = errors; if (!(typeof data1492.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2159 = _errs1943 === errors; } else { valid2159 = true; } if (valid2159) { if (data1492.description !== undefined) { const _errs1944 = errors; if (!(typeof data1492.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2159 = _errs1944 === errors; } else { valid2159 = true; } if (valid2159) { for (const key475 in data1492) { if ( key475 !== "type" && key475 !== "name" && key475 !== "label" && key475 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/" + key475.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key475, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2157) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2156 = _errs1941 === errors; valid2143 = valid2156; } else if (tag79 === "composed") { const _errs1945 = errors; let valid2161 = false; valid2161 = true; var valid2162; if (data1492.name !== undefined) { let data1505 = data1492.name; const _errs1946 = errors; if ( !( typeof data1505 == "string" && (data1505 === "clinVar" || data1505 === "gene" || data1505 === "genotype" || data1505 === "gnomAdAf" || data1505 === "hpo" || data1505 === "inheritancePattern" || data1505 === "locus" || data1505 === "ref" || data1505 === "vipC" || data1505 === "vipCS" || data1505 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/name", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.sample_variant_consequence .optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2162 = _errs1946 === errors; } else { valid2162 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2162) { var valid2163; if (data1492.label !== undefined) { const _errs1947 = errors; if (!(typeof data1492.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/label", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2163 = _errs1947 === errors; } else { valid2163 = true; } if (valid2163) { if (data1492.description !== undefined) { const _errs1948 = errors; if (!(typeof data1492.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/description", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2163 = _errs1948 === errors; } else { valid2163 = true; } if (valid2163) { for (const key476 in data1492) { if ( key476 !== "type" && key476 !== "name" && key476 !== "label" && key476 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/" + key476.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key476, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2161) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2160 = _errs1945 === errors; valid2143 = valid2160; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag79 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag79 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2143) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields/" + i95, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2142 = _errs1928 === errors; if (!valid2142) { break; } } valid2141 = valid2142; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/fields", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2140 = _errs1927 === errors; } else { valid2140 = false; validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2140) { for (const key477 in data1475) { if (key477 !== "type" && key477 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/" + key477.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key477 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2139) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2138 = _errs1926 === errors; valid2117 = valid2138; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag78 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94 + "/type", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag78 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2117) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv/" + i94, schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2116 = _errs1905 === errors; if (!valid2116) { break; } } valid2115 = valid2116; } else { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/sv", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid1964 = _errs1904 === errors; } else { valid1964 = true; } if (valid1964) { for (const key478 in data1371) { if (key478 !== "all" && key478 !== "snv" && key478 !== "str" && key478 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells/" + key478.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key478 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid1962) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/sample_cells", schemaPath: "/properties/sample_variant_consequence/optionalProperties/sample_cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1961 = _errs1768 === errors; } else { valid1961 = true; } if (valid1961) { for (const key479 in data1370) { if (key479 !== "sample_cells") { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence/" + key479.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/sample_variant_consequence", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key479 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } if (!valid1959) { validate57.errors = [ { instancePath: instancePath + "/sample_variant_consequence", schemaPath: "/properties/sample_variant_consequence/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs1767 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/sample_variant_consequence", keyword: "properties", params: { error: "missing", missingProperty: "sample_variant_consequence" }, message: "must have property 'sample_variant_consequence'", }, ]; return false; } if (valid1) { if (data.variant_consequence !== undefined) { let data1508 = data.variant_consequence; const _errs1949 = errors; let valid2165 = false; if (data1508 && typeof data1508 == "object" && !Array.isArray(data1508)) { valid2165 = true; var valid2167; if (data1508.sample_cells !== undefined) { let data1509 = data1508.sample_cells; const _errs1950 = errors; let valid2168 = false; if (data1509 && typeof data1509 == "object" && !Array.isArray(data1509)) { valid2168 = true; var valid2170; if (data1509.all !== undefined) { let data1510 = data1509.all; const _errs1951 = errors; let valid2171 = false; if (!valid2171) { if (Array.isArray(data1510)) { var valid2172 = true; const len96 = data1510.length; for (let i96 = 0; i96 < len96; i96++) { let data1511 = data1510[i96]; const _errs1952 = errors; let valid2173 = false; if (data1511 && typeof data1511 == "object" && !Array.isArray(data1511)) { const tag80 = data1511.type; if (tag80 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag80 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag80 == "string") { if (tag80 === "fixed") { const _errs1953 = errors; let valid2175 = false; valid2175 = true; var valid2176; if (data1511.name !== undefined) { let data1512 = data1511.name; const _errs1954 = errors; if ( !( typeof data1512 == "string" && (data1512 === "chrom" || data1512 === "pos" || data1512 === "id" || data1512 === "ref" || data1512 === "alt" || data1512 === "qual" || data1512 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.all.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2176 = _errs1954 === errors; } else { valid2176 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2176) { var valid2177; if (data1511.label !== undefined) { const _errs1955 = errors; if (!(typeof data1511.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2177 = _errs1955 === errors; } else { valid2177 = true; } if (valid2177) { if (data1511.description !== undefined) { const _errs1956 = errors; if (!(typeof data1511.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2177 = _errs1956 === errors; } else { valid2177 = true; } if (valid2177) { for (const key480 in data1511) { if ( key480 !== "type" && key480 !== "name" && key480 !== "label" && key480 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/" + key480.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key480 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2175) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2174 = _errs1953 === errors; valid2173 = valid2174; } else if (tag80 === "info") { const _errs1957 = errors; let valid2179 = false; valid2179 = true; var valid2180; if (data1511.name !== undefined) { const _errs1958 = errors; if (!(typeof data1511.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2180 = _errs1958 === errors; } else { valid2180 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2180) { var valid2181; if (data1511.label !== undefined) { const _errs1959 = errors; if (!(typeof data1511.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2181 = _errs1959 === errors; } else { valid2181 = true; } if (valid2181) { if (data1511.description !== undefined) { const _errs1960 = errors; if (!(typeof data1511.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2181 = _errs1960 === errors; } else { valid2181 = true; } if (valid2181) { for (const key481 in data1511) { if ( key481 !== "type" && key481 !== "name" && key481 !== "label" && key481 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/" + key481.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key481 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2179) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2178 = _errs1957 === errors; valid2173 = valid2178; } else if (tag80 === "format") { const _errs1961 = errors; let valid2183 = false; valid2183 = true; var valid2184; if (data1511.name !== undefined) { const _errs1962 = errors; if (!(typeof data1511.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2184 = _errs1962 === errors; } else { valid2184 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2184) { var valid2185; if (data1511.label !== undefined) { const _errs1963 = errors; if (!(typeof data1511.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2185 = _errs1963 === errors; } else { valid2185 = true; } if (valid2185) { if (data1511.description !== undefined) { const _errs1964 = errors; if (!(typeof data1511.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2185 = _errs1964 === errors; } else { valid2185 = true; } if (valid2185) { for (const key482 in data1511) { if ( key482 !== "type" && key482 !== "name" && key482 !== "label" && key482 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/" + key482.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key482 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2183) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2182 = _errs1961 === errors; valid2173 = valid2182; } else if (tag80 === "genotype") { const _errs1965 = errors; let valid2187 = false; valid2187 = true; var valid2188; if (data1511.name !== undefined) { const _errs1966 = errors; if (!(typeof data1511.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2188 = _errs1966 === errors; } else { valid2188 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2188) { var valid2189; if (data1511.label !== undefined) { const _errs1967 = errors; if (!(typeof data1511.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2189 = _errs1967 === errors; } else { valid2189 = true; } if (valid2189) { if (data1511.description !== undefined) { const _errs1968 = errors; if (!(typeof data1511.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2189 = _errs1968 === errors; } else { valid2189 = true; } if (valid2189) { for (const key483 in data1511) { if ( key483 !== "type" && key483 !== "name" && key483 !== "label" && key483 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/" + key483.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key483 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2187) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2186 = _errs1965 === errors; valid2173 = valid2186; } else if (tag80 === "composed") { const _errs1969 = errors; let valid2191 = false; valid2191 = true; var valid2192; if (data1511.name !== undefined) { let data1524 = data1511.name; const _errs1970 = errors; if ( !( typeof data1524 == "string" && (data1524 === "clinVar" || data1524 === "confidenceInterval" || data1524 === "gene" || data1524 === "genotype" || data1524 === "genotype_maternal" || data1524 === "genotype_paternal" || data1524 === "gnomAdAf" || data1524 === "hpo" || data1524 === "inheritancePattern" || data1524 === "locus" || data1524 === "spanningReads" || data1524 === "vipC" || data1524 === "vipCS" || data1524 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.all.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2192 = _errs1970 === errors; } else { valid2192 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2192) { var valid2193; if (data1511.label !== undefined) { const _errs1971 = errors; if (!(typeof data1511.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2193 = _errs1971 === errors; } else { valid2193 = true; } if (valid2193) { if (data1511.description !== undefined) { const _errs1972 = errors; if (!(typeof data1511.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2193 = _errs1972 === errors; } else { valid2193 = true; } if (valid2193) { for (const key484 in data1511) { if ( key484 !== "type" && key484 !== "name" && key484 !== "label" && key484 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/" + key484.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key484 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2191) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2190 = _errs1969 === errors; valid2173 = valid2190; } else if (tag80 === "group") { const _errs1973 = errors; let valid2195 = false; valid2195 = true; var valid2196; if (data1511.fields !== undefined) { let data1527 = data1511.fields; const _errs1974 = errors; let valid2197 = false; if (!valid2197) { if (Array.isArray(data1527)) { var valid2198 = true; const len97 = data1527.length; for (let i97 = 0; i97 < len97; i97++) { let data1528 = data1527[i97]; const _errs1975 = errors; let valid2199 = false; if (data1528 && typeof data1528 == "object" && !Array.isArray(data1528)) { const tag81 = data1528.type; if (tag81 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag81 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag81 == "string") { if (tag81 === "fixed") { const _errs1976 = errors; let valid2201 = false; valid2201 = true; var valid2202; if (data1528.name !== undefined) { let data1529 = data1528.name; const _errs1977 = errors; if ( !( typeof data1529 == "string" && (data1529 === "chrom" || data1529 === "pos" || data1529 === "id" || data1529 === "ref" || data1529 === "alt" || data1529 === "qual" || data1529 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells.optionalProperties .all.elements.mapping.group.properties.fields.elements .mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2202 = _errs1977 === errors; } else { valid2202 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2202) { var valid2203; if (data1528.label !== undefined) { const _errs1978 = errors; if (!(typeof data1528.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2203 = _errs1978 === errors; } else { valid2203 = true; } if (valid2203) { if (data1528.description !== undefined) { const _errs1979 = errors; if (!(typeof data1528.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2203 = _errs1979 === errors; } else { valid2203 = true; } if (valid2203) { for (const key485 in data1528) { if ( key485 !== "type" && key485 !== "name" && key485 !== "label" && key485 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/" + key485.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key485, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2201) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2200 = _errs1976 === errors; valid2199 = valid2200; } else if (tag81 === "info") { const _errs1980 = errors; let valid2205 = false; valid2205 = true; var valid2206; if (data1528.name !== undefined) { const _errs1981 = errors; if (!(typeof data1528.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2206 = _errs1981 === errors; } else { valid2206 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2206) { var valid2207; if (data1528.label !== undefined) { const _errs1982 = errors; if (!(typeof data1528.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2207 = _errs1982 === errors; } else { valid2207 = true; } if (valid2207) { if (data1528.description !== undefined) { const _errs1983 = errors; if (!(typeof data1528.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2207 = _errs1983 === errors; } else { valid2207 = true; } if (valid2207) { for (const key486 in data1528) { if ( key486 !== "type" && key486 !== "name" && key486 !== "label" && key486 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/" + key486.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key486, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2205) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2204 = _errs1980 === errors; valid2199 = valid2204; } else if (tag81 === "format") { const _errs1984 = errors; let valid2209 = false; valid2209 = true; var valid2210; if (data1528.name !== undefined) { const _errs1985 = errors; if (!(typeof data1528.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2210 = _errs1985 === errors; } else { valid2210 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2210) { var valid2211; if (data1528.label !== undefined) { const _errs1986 = errors; if (!(typeof data1528.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2211 = _errs1986 === errors; } else { valid2211 = true; } if (valid2211) { if (data1528.description !== undefined) { const _errs1987 = errors; if (!(typeof data1528.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2211 = _errs1987 === errors; } else { valid2211 = true; } if (valid2211) { for (const key487 in data1528) { if ( key487 !== "type" && key487 !== "name" && key487 !== "label" && key487 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/" + key487.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key487, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2209) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2208 = _errs1984 === errors; valid2199 = valid2208; } else if (tag81 === "genotype") { const _errs1988 = errors; let valid2213 = false; valid2213 = true; var valid2214; if (data1528.name !== undefined) { const _errs1989 = errors; if (!(typeof data1528.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2214 = _errs1989 === errors; } else { valid2214 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2214) { var valid2215; if (data1528.label !== undefined) { const _errs1990 = errors; if (!(typeof data1528.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2215 = _errs1990 === errors; } else { valid2215 = true; } if (valid2215) { if (data1528.description !== undefined) { const _errs1991 = errors; if (!(typeof data1528.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2215 = _errs1991 === errors; } else { valid2215 = true; } if (valid2215) { for (const key488 in data1528) { if ( key488 !== "type" && key488 !== "name" && key488 !== "label" && key488 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/" + key488.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key488, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2213) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2212 = _errs1988 === errors; valid2199 = valid2212; } else if (tag81 === "composed") { const _errs1992 = errors; let valid2217 = false; valid2217 = true; var valid2218; if (data1528.name !== undefined) { let data1541 = data1528.name; const _errs1993 = errors; if ( !( typeof data1541 == "string" && (data1541 === "clinVar" || data1541 === "gene" || data1541 === "genotype" || data1541 === "gnomAdAf" || data1541 === "hpo" || data1541 === "inheritancePattern" || data1541 === "locus" || data1541 === "ref" || data1541 === "vipC" || data1541 === "vipCS" || data1541 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells.optionalProperties .all.elements.mapping.group.properties.fields.elements .mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2218 = _errs1993 === errors; } else { valid2218 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2218) { var valid2219; if (data1528.label !== undefined) { const _errs1994 = errors; if (!(typeof data1528.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2219 = _errs1994 === errors; } else { valid2219 = true; } if (valid2219) { if (data1528.description !== undefined) { const _errs1995 = errors; if (!(typeof data1528.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2219 = _errs1995 === errors; } else { valid2219 = true; } if (valid2219) { for (const key489 in data1528) { if ( key489 !== "type" && key489 !== "name" && key489 !== "label" && key489 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/" + key489.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key489, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2217) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2216 = _errs1992 === errors; valid2199 = valid2216; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag81 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag81 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2199) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields/" + i97, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2198 = _errs1975 === errors; if (!valid2198) { break; } } valid2197 = valid2198; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/fields", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2196 = _errs1974 === errors; } else { valid2196 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2196) { for (const key490 in data1511) { if (key490 !== "type" && key490 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/" + key490.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key490 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2195) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2194 = _errs1973 === errors; valid2173 = valid2194; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag80 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag80 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2173) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all/" + i96, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2172 = _errs1952 === errors; if (!valid2172) { break; } } valid2171 = valid2172; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/all", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/all/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2170 = _errs1951 === errors; } else { valid2170 = true; } if (valid2170) { if (data1509.snv !== undefined) { let data1544 = data1509.snv; const _errs1996 = errors; let valid2221 = false; if (!valid2221) { if (Array.isArray(data1544)) { var valid2222 = true; const len98 = data1544.length; for (let i98 = 0; i98 < len98; i98++) { let data1545 = data1544[i98]; const _errs1997 = errors; let valid2223 = false; if (data1545 && typeof data1545 == "object" && !Array.isArray(data1545)) { const tag82 = data1545.type; if (tag82 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag82 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag82 == "string") { if (tag82 === "fixed") { const _errs1998 = errors; let valid2225 = false; valid2225 = true; var valid2226; if (data1545.name !== undefined) { let data1546 = data1545.name; const _errs1999 = errors; if ( !( typeof data1546 == "string" && (data1546 === "chrom" || data1546 === "pos" || data1546 === "id" || data1546 === "ref" || data1546 === "alt" || data1546 === "qual" || data1546 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2226 = _errs1999 === errors; } else { valid2226 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2226) { var valid2227; if (data1545.label !== undefined) { const _errs2000 = errors; if (!(typeof data1545.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2227 = _errs2000 === errors; } else { valid2227 = true; } if (valid2227) { if (data1545.description !== undefined) { const _errs2001 = errors; if (!(typeof data1545.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2227 = _errs2001 === errors; } else { valid2227 = true; } if (valid2227) { for (const key491 in data1545) { if ( key491 !== "type" && key491 !== "name" && key491 !== "label" && key491 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/" + key491.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key491 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2225) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2224 = _errs1998 === errors; valid2223 = valid2224; } else if (tag82 === "info") { const _errs2002 = errors; let valid2229 = false; valid2229 = true; var valid2230; if (data1545.name !== undefined) { const _errs2003 = errors; if (!(typeof data1545.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2230 = _errs2003 === errors; } else { valid2230 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2230) { var valid2231; if (data1545.label !== undefined) { const _errs2004 = errors; if (!(typeof data1545.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2231 = _errs2004 === errors; } else { valid2231 = true; } if (valid2231) { if (data1545.description !== undefined) { const _errs2005 = errors; if (!(typeof data1545.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2231 = _errs2005 === errors; } else { valid2231 = true; } if (valid2231) { for (const key492 in data1545) { if ( key492 !== "type" && key492 !== "name" && key492 !== "label" && key492 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/" + key492.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key492 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2229) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2228 = _errs2002 === errors; valid2223 = valid2228; } else if (tag82 === "format") { const _errs2006 = errors; let valid2233 = false; valid2233 = true; var valid2234; if (data1545.name !== undefined) { const _errs2007 = errors; if (!(typeof data1545.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2234 = _errs2007 === errors; } else { valid2234 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2234) { var valid2235; if (data1545.label !== undefined) { const _errs2008 = errors; if (!(typeof data1545.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2235 = _errs2008 === errors; } else { valid2235 = true; } if (valid2235) { if (data1545.description !== undefined) { const _errs2009 = errors; if (!(typeof data1545.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2235 = _errs2009 === errors; } else { valid2235 = true; } if (valid2235) { for (const key493 in data1545) { if ( key493 !== "type" && key493 !== "name" && key493 !== "label" && key493 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/" + key493.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key493 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2233) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2232 = _errs2006 === errors; valid2223 = valid2232; } else if (tag82 === "genotype") { const _errs2010 = errors; let valid2237 = false; valid2237 = true; var valid2238; if (data1545.name !== undefined) { const _errs2011 = errors; if (!(typeof data1545.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2238 = _errs2011 === errors; } else { valid2238 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2238) { var valid2239; if (data1545.label !== undefined) { const _errs2012 = errors; if (!(typeof data1545.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2239 = _errs2012 === errors; } else { valid2239 = true; } if (valid2239) { if (data1545.description !== undefined) { const _errs2013 = errors; if (!(typeof data1545.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2239 = _errs2013 === errors; } else { valid2239 = true; } if (valid2239) { for (const key494 in data1545) { if ( key494 !== "type" && key494 !== "name" && key494 !== "label" && key494 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/" + key494.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key494 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2237) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2236 = _errs2010 === errors; valid2223 = valid2236; } else if (tag82 === "composed") { const _errs2014 = errors; let valid2241 = false; valid2241 = true; var valid2242; if (data1545.name !== undefined) { let data1558 = data1545.name; const _errs2015 = errors; if ( !( typeof data1558 == "string" && (data1558 === "clinVar" || data1558 === "confidenceInterval" || data1558 === "gene" || data1558 === "genotype" || data1558 === "genotype_maternal" || data1558 === "genotype_paternal" || data1558 === "gnomAdAf" || data1558 === "hpo" || data1558 === "inheritancePattern" || data1558 === "locus" || data1558 === "spanningReads" || data1558 === "vipC" || data1558 === "vipCS" || data1558 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.snv.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2242 = _errs2015 === errors; } else { valid2242 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2242) { var valid2243; if (data1545.label !== undefined) { const _errs2016 = errors; if (!(typeof data1545.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2243 = _errs2016 === errors; } else { valid2243 = true; } if (valid2243) { if (data1545.description !== undefined) { const _errs2017 = errors; if (!(typeof data1545.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2243 = _errs2017 === errors; } else { valid2243 = true; } if (valid2243) { for (const key495 in data1545) { if ( key495 !== "type" && key495 !== "name" && key495 !== "label" && key495 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/" + key495.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key495 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2241) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2240 = _errs2014 === errors; valid2223 = valid2240; } else if (tag82 === "group") { const _errs2018 = errors; let valid2245 = false; valid2245 = true; var valid2246; if (data1545.fields !== undefined) { let data1561 = data1545.fields; const _errs2019 = errors; let valid2247 = false; if (!valid2247) { if (Array.isArray(data1561)) { var valid2248 = true; const len99 = data1561.length; for (let i99 = 0; i99 < len99; i99++) { let data1562 = data1561[i99]; const _errs2020 = errors; let valid2249 = false; if ( data1562 && typeof data1562 == "object" && !Array.isArray(data1562) ) { const tag83 = data1562.type; if (tag83 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag83 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag83 == "string") { if (tag83 === "fixed") { const _errs2021 = errors; let valid2251 = false; valid2251 = true; var valid2252; if (data1562.name !== undefined) { let data1563 = data1562.name; const _errs2022 = errors; if ( !( typeof data1563 == "string" && (data1563 === "chrom" || data1563 === "pos" || data1563 === "id" || data1563 === "ref" || data1563 === "alt" || data1563 === "qual" || data1563 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells.optionalProperties .snv.elements.mapping.group.properties.fields .elements.mapping.fixed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2252 = _errs2022 === errors; } else { valid2252 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2252) { var valid2253; if (data1562.label !== undefined) { const _errs2023 = errors; if (!(typeof data1562.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2253 = _errs2023 === errors; } else { valid2253 = true; } if (valid2253) { if (data1562.description !== undefined) { const _errs2024 = errors; if (!(typeof data1562.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2253 = _errs2024 === errors; } else { valid2253 = true; } if (valid2253) { for (const key496 in data1562) { if ( key496 !== "type" && key496 !== "name" && key496 !== "label" && key496 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/" + key496.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key496, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2251) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2250 = _errs2021 === errors; valid2249 = valid2250; } else if (tag83 === "info") { const _errs2025 = errors; let valid2255 = false; valid2255 = true; var valid2256; if (data1562.name !== undefined) { const _errs2026 = errors; if (!(typeof data1562.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2256 = _errs2026 === errors; } else { valid2256 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2256) { var valid2257; if (data1562.label !== undefined) { const _errs2027 = errors; if (!(typeof data1562.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2257 = _errs2027 === errors; } else { valid2257 = true; } if (valid2257) { if (data1562.description !== undefined) { const _errs2028 = errors; if (!(typeof data1562.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2257 = _errs2028 === errors; } else { valid2257 = true; } if (valid2257) { for (const key497 in data1562) { if ( key497 !== "type" && key497 !== "name" && key497 !== "label" && key497 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/" + key497.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key497, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2255) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2254 = _errs2025 === errors; valid2249 = valid2254; } else if (tag83 === "format") { const _errs2029 = errors; let valid2259 = false; valid2259 = true; var valid2260; if (data1562.name !== undefined) { const _errs2030 = errors; if (!(typeof data1562.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2260 = _errs2030 === errors; } else { valid2260 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2260) { var valid2261; if (data1562.label !== undefined) { const _errs2031 = errors; if (!(typeof data1562.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2261 = _errs2031 === errors; } else { valid2261 = true; } if (valid2261) { if (data1562.description !== undefined) { const _errs2032 = errors; if (!(typeof data1562.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2261 = _errs2032 === errors; } else { valid2261 = true; } if (valid2261) { for (const key498 in data1562) { if ( key498 !== "type" && key498 !== "name" && key498 !== "label" && key498 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/" + key498.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key498, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2259) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2258 = _errs2029 === errors; valid2249 = valid2258; } else if (tag83 === "genotype") { const _errs2033 = errors; let valid2263 = false; valid2263 = true; var valid2264; if (data1562.name !== undefined) { const _errs2034 = errors; if (!(typeof data1562.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2264 = _errs2034 === errors; } else { valid2264 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2264) { var valid2265; if (data1562.label !== undefined) { const _errs2035 = errors; if (!(typeof data1562.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2265 = _errs2035 === errors; } else { valid2265 = true; } if (valid2265) { if (data1562.description !== undefined) { const _errs2036 = errors; if (!(typeof data1562.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2265 = _errs2036 === errors; } else { valid2265 = true; } if (valid2265) { for (const key499 in data1562) { if ( key499 !== "type" && key499 !== "name" && key499 !== "label" && key499 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/" + key499.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key499, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2263) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2262 = _errs2033 === errors; valid2249 = valid2262; } else if (tag83 === "composed") { const _errs2037 = errors; let valid2267 = false; valid2267 = true; var valid2268; if (data1562.name !== undefined) { let data1575 = data1562.name; const _errs2038 = errors; if ( !( typeof data1575 == "string" && (data1575 === "clinVar" || data1575 === "gene" || data1575 === "genotype" || data1575 === "gnomAdAf" || data1575 === "hpo" || data1575 === "inheritancePattern" || data1575 === "locus" || data1575 === "ref" || data1575 === "vipC" || data1575 === "vipCS" || data1575 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells.optionalProperties .snv.elements.mapping.group.properties.fields .elements.mapping.composed.properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2268 = _errs2038 === errors; } else { valid2268 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2268) { var valid2269; if (data1562.label !== undefined) { const _errs2039 = errors; if (!(typeof data1562.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2269 = _errs2039 === errors; } else { valid2269 = true; } if (valid2269) { if (data1562.description !== undefined) { const _errs2040 = errors; if (!(typeof data1562.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2269 = _errs2040 === errors; } else { valid2269 = true; } if (valid2269) { for (const key500 in data1562) { if ( key500 !== "type" && key500 !== "name" && key500 !== "label" && key500 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/" + key500.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key500, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2267) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2266 = _errs2037 === errors; valid2249 = valid2266; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag83 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag83 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2249) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields/" + i99, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2248 = _errs2020 === errors; if (!valid2248) { break; } } valid2247 = valid2248; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/fields", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2246 = _errs2019 === errors; } else { valid2246 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2246) { for (const key501 in data1545) { if (key501 !== "type" && key501 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/" + key501.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key501 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2245) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2244 = _errs2018 === errors; valid2223 = valid2244; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag82 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag82 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2223) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv/" + i98, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2222 = _errs1997 === errors; if (!valid2222) { break; } } valid2221 = valid2222; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/snv", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/snv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2170 = _errs1996 === errors; } else { valid2170 = true; } if (valid2170) { if (data1509.str !== undefined) { let data1578 = data1509.str; const _errs2041 = errors; let valid2271 = false; if (!valid2271) { if (Array.isArray(data1578)) { var valid2272 = true; const len100 = data1578.length; for (let i100 = 0; i100 < len100; i100++) { let data1579 = data1578[i100]; const _errs2042 = errors; let valid2273 = false; if (data1579 && typeof data1579 == "object" && !Array.isArray(data1579)) { const tag84 = data1579.type; if (tag84 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag84 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag84 == "string") { if (tag84 === "fixed") { const _errs2043 = errors; let valid2275 = false; valid2275 = true; var valid2276; if (data1579.name !== undefined) { let data1580 = data1579.name; const _errs2044 = errors; if ( !( typeof data1580 == "string" && (data1580 === "chrom" || data1580 === "pos" || data1580 === "id" || data1580 === "ref" || data1580 === "alt" || data1580 === "qual" || data1580 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.str.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2276 = _errs2044 === errors; } else { valid2276 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2276) { var valid2277; if (data1579.label !== undefined) { const _errs2045 = errors; if (!(typeof data1579.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2277 = _errs2045 === errors; } else { valid2277 = true; } if (valid2277) { if (data1579.description !== undefined) { const _errs2046 = errors; if (!(typeof data1579.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2277 = _errs2046 === errors; } else { valid2277 = true; } if (valid2277) { for (const key502 in data1579) { if ( key502 !== "type" && key502 !== "name" && key502 !== "label" && key502 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/" + key502.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key502 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2275) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2274 = _errs2043 === errors; valid2273 = valid2274; } else if (tag84 === "info") { const _errs2047 = errors; let valid2279 = false; valid2279 = true; var valid2280; if (data1579.name !== undefined) { const _errs2048 = errors; if (!(typeof data1579.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2280 = _errs2048 === errors; } else { valid2280 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2280) { var valid2281; if (data1579.label !== undefined) { const _errs2049 = errors; if (!(typeof data1579.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2281 = _errs2049 === errors; } else { valid2281 = true; } if (valid2281) { if (data1579.description !== undefined) { const _errs2050 = errors; if (!(typeof data1579.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2281 = _errs2050 === errors; } else { valid2281 = true; } if (valid2281) { for (const key503 in data1579) { if ( key503 !== "type" && key503 !== "name" && key503 !== "label" && key503 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/" + key503.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key503 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2279) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2278 = _errs2047 === errors; valid2273 = valid2278; } else if (tag84 === "format") { const _errs2051 = errors; let valid2283 = false; valid2283 = true; var valid2284; if (data1579.name !== undefined) { const _errs2052 = errors; if (!(typeof data1579.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2284 = _errs2052 === errors; } else { valid2284 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2284) { var valid2285; if (data1579.label !== undefined) { const _errs2053 = errors; if (!(typeof data1579.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2285 = _errs2053 === errors; } else { valid2285 = true; } if (valid2285) { if (data1579.description !== undefined) { const _errs2054 = errors; if (!(typeof data1579.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2285 = _errs2054 === errors; } else { valid2285 = true; } if (valid2285) { for (const key504 in data1579) { if ( key504 !== "type" && key504 !== "name" && key504 !== "label" && key504 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/" + key504.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key504 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2283) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2282 = _errs2051 === errors; valid2273 = valid2282; } else if (tag84 === "genotype") { const _errs2055 = errors; let valid2287 = false; valid2287 = true; var valid2288; if (data1579.name !== undefined) { const _errs2056 = errors; if (!(typeof data1579.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2288 = _errs2056 === errors; } else { valid2288 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2288) { var valid2289; if (data1579.label !== undefined) { const _errs2057 = errors; if (!(typeof data1579.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2289 = _errs2057 === errors; } else { valid2289 = true; } if (valid2289) { if (data1579.description !== undefined) { const _errs2058 = errors; if (!(typeof data1579.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2289 = _errs2058 === errors; } else { valid2289 = true; } if (valid2289) { for (const key505 in data1579) { if ( key505 !== "type" && key505 !== "name" && key505 !== "label" && key505 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/" + key505.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key505 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2287) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2286 = _errs2055 === errors; valid2273 = valid2286; } else if (tag84 === "composed") { const _errs2059 = errors; let valid2291 = false; valid2291 = true; var valid2292; if (data1579.name !== undefined) { let data1592 = data1579.name; const _errs2060 = errors; if ( !( typeof data1592 == "string" && (data1592 === "clinVar" || data1592 === "confidenceInterval" || data1592 === "gene" || data1592 === "genotype" || data1592 === "genotype_maternal" || data1592 === "genotype_paternal" || data1592 === "gnomAdAf" || data1592 === "hpo" || data1592 === "inheritancePattern" || data1592 === "locus" || data1592 === "spanningReads" || data1592 === "vipC" || data1592 === "vipCS" || data1592 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.str.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2292 = _errs2060 === errors; } else { valid2292 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2292) { var valid2293; if (data1579.label !== undefined) { const _errs2061 = errors; if (!(typeof data1579.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2293 = _errs2061 === errors; } else { valid2293 = true; } if (valid2293) { if (data1579.description !== undefined) { const _errs2062 = errors; if (!(typeof data1579.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2293 = _errs2062 === errors; } else { valid2293 = true; } if (valid2293) { for (const key506 in data1579) { if ( key506 !== "type" && key506 !== "name" && key506 !== "label" && key506 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/" + key506.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key506 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2291) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2290 = _errs2059 === errors; valid2273 = valid2290; } else if (tag84 === "group") { const _errs2063 = errors; let valid2295 = false; valid2295 = true; var valid2296; if (data1579.fields !== undefined) { let data1595 = data1579.fields; const _errs2064 = errors; let valid2297 = false; if (!valid2297) { if (Array.isArray(data1595)) { var valid2298 = true; const len101 = data1595.length; for (let i101 = 0; i101 < len101; i101++) { let data1596 = data1595[i101]; const _errs2065 = errors; let valid2299 = false; if ( data1596 && typeof data1596 == "object" && !Array.isArray(data1596) ) { const tag85 = data1596.type; if (tag85 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag85 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag85 == "string") { if (tag85 === "fixed") { const _errs2066 = errors; let valid2301 = false; valid2301 = true; var valid2302; if (data1596.name !== undefined) { let data1597 = data1596.name; const _errs2067 = errors; if ( !( typeof data1597 == "string" && (data1597 === "chrom" || data1597 === "pos" || data1597 === "id" || data1597 === "ref" || data1597 === "alt" || data1597 === "qual" || data1597 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells .optionalProperties.str.elements.mapping.group .properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2302 = _errs2067 === errors; } else { valid2302 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2302) { var valid2303; if (data1596.label !== undefined) { const _errs2068 = errors; if (!(typeof data1596.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2303 = _errs2068 === errors; } else { valid2303 = true; } if (valid2303) { if (data1596.description !== undefined) { const _errs2069 = errors; if (!(typeof data1596.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2303 = _errs2069 === errors; } else { valid2303 = true; } if (valid2303) { for (const key507 in data1596) { if ( key507 !== "type" && key507 !== "name" && key507 !== "label" && key507 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/" + key507.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key507, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2301) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2300 = _errs2066 === errors; valid2299 = valid2300; } else if (tag85 === "info") { const _errs2070 = errors; let valid2305 = false; valid2305 = true; var valid2306; if (data1596.name !== undefined) { const _errs2071 = errors; if (!(typeof data1596.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2306 = _errs2071 === errors; } else { valid2306 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2306) { var valid2307; if (data1596.label !== undefined) { const _errs2072 = errors; if (!(typeof data1596.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2307 = _errs2072 === errors; } else { valid2307 = true; } if (valid2307) { if (data1596.description !== undefined) { const _errs2073 = errors; if (!(typeof data1596.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2307 = _errs2073 === errors; } else { valid2307 = true; } if (valid2307) { for (const key508 in data1596) { if ( key508 !== "type" && key508 !== "name" && key508 !== "label" && key508 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/" + key508.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key508, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2305) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2304 = _errs2070 === errors; valid2299 = valid2304; } else if (tag85 === "format") { const _errs2074 = errors; let valid2309 = false; valid2309 = true; var valid2310; if (data1596.name !== undefined) { const _errs2075 = errors; if (!(typeof data1596.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2310 = _errs2075 === errors; } else { valid2310 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2310) { var valid2311; if (data1596.label !== undefined) { const _errs2076 = errors; if (!(typeof data1596.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2311 = _errs2076 === errors; } else { valid2311 = true; } if (valid2311) { if (data1596.description !== undefined) { const _errs2077 = errors; if (!(typeof data1596.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2311 = _errs2077 === errors; } else { valid2311 = true; } if (valid2311) { for (const key509 in data1596) { if ( key509 !== "type" && key509 !== "name" && key509 !== "label" && key509 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/" + key509.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key509, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2309) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2308 = _errs2074 === errors; valid2299 = valid2308; } else if (tag85 === "genotype") { const _errs2078 = errors; let valid2313 = false; valid2313 = true; var valid2314; if (data1596.name !== undefined) { const _errs2079 = errors; if (!(typeof data1596.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2314 = _errs2079 === errors; } else { valid2314 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2314) { var valid2315; if (data1596.label !== undefined) { const _errs2080 = errors; if (!(typeof data1596.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2315 = _errs2080 === errors; } else { valid2315 = true; } if (valid2315) { if (data1596.description !== undefined) { const _errs2081 = errors; if (!(typeof data1596.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2315 = _errs2081 === errors; } else { valid2315 = true; } if (valid2315) { for (const key510 in data1596) { if ( key510 !== "type" && key510 !== "name" && key510 !== "label" && key510 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/" + key510.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key510, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2313) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2312 = _errs2078 === errors; valid2299 = valid2312; } else if (tag85 === "composed") { const _errs2082 = errors; let valid2317 = false; valid2317 = true; var valid2318; if (data1596.name !== undefined) { let data1609 = data1596.name; const _errs2083 = errors; if ( !( typeof data1609 == "string" && (data1609 === "clinVar" || data1609 === "gene" || data1609 === "genotype" || data1609 === "gnomAdAf" || data1609 === "hpo" || data1609 === "inheritancePattern" || data1609 === "locus" || data1609 === "ref" || data1609 === "vipC" || data1609 === "vipCS" || data1609 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells .optionalProperties.str.elements.mapping.group .properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2318 = _errs2083 === errors; } else { valid2318 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2318) { var valid2319; if (data1596.label !== undefined) { const _errs2084 = errors; if (!(typeof data1596.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2319 = _errs2084 === errors; } else { valid2319 = true; } if (valid2319) { if (data1596.description !== undefined) { const _errs2085 = errors; if (!(typeof data1596.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2319 = _errs2085 === errors; } else { valid2319 = true; } if (valid2319) { for (const key511 in data1596) { if ( key511 !== "type" && key511 !== "name" && key511 !== "label" && key511 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/" + key511.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key511, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2317) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2316 = _errs2082 === errors; valid2299 = valid2316; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag85 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag85 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2299) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields/" + i101, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2298 = _errs2065 === errors; if (!valid2298) { break; } } valid2297 = valid2298; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/fields", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2296 = _errs2064 === errors; } else { valid2296 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2296) { for (const key512 in data1579) { if (key512 !== "type" && key512 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/" + key512.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key512 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2295) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2294 = _errs2063 === errors; valid2273 = valid2294; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag84 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag84 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2273) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str/" + i100, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2272 = _errs2042 === errors; if (!valid2272) { break; } } valid2271 = valid2272; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/str", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/str/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2170 = _errs2041 === errors; } else { valid2170 = true; } if (valid2170) { if (data1509.sv !== undefined) { let data1612 = data1509.sv; const _errs2086 = errors; let valid2321 = false; if (!valid2321) { if (Array.isArray(data1612)) { var valid2322 = true; const len102 = data1612.length; for (let i102 = 0; i102 < len102; i102++) { let data1613 = data1612[i102]; const _errs2087 = errors; let valid2323 = false; if (data1613 && typeof data1613 == "object" && !Array.isArray(data1613)) { const tag86 = data1613.type; if (tag86 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag86 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag86 == "string") { if (tag86 === "fixed") { const _errs2088 = errors; let valid2325 = false; valid2325 = true; var valid2326; if (data1613.name !== undefined) { let data1614 = data1613.name; const _errs2089 = errors; if ( !( typeof data1614 == "string" && (data1614 === "chrom" || data1614 === "pos" || data1614 === "id" || data1614 === "ref" || data1614 === "alt" || data1614 === "qual" || data1614 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.sv.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2326 = _errs2089 === errors; } else { valid2326 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2326) { var valid2327; if (data1613.label !== undefined) { const _errs2090 = errors; if (!(typeof data1613.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2327 = _errs2090 === errors; } else { valid2327 = true; } if (valid2327) { if (data1613.description !== undefined) { const _errs2091 = errors; if (!(typeof data1613.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2327 = _errs2091 === errors; } else { valid2327 = true; } if (valid2327) { for (const key513 in data1613) { if ( key513 !== "type" && key513 !== "name" && key513 !== "label" && key513 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/" + key513.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key513 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2325) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2324 = _errs2088 === errors; valid2323 = valid2324; } else if (tag86 === "info") { const _errs2092 = errors; let valid2329 = false; valid2329 = true; var valid2330; if (data1613.name !== undefined) { const _errs2093 = errors; if (!(typeof data1613.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2330 = _errs2093 === errors; } else { valid2330 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2330) { var valid2331; if (data1613.label !== undefined) { const _errs2094 = errors; if (!(typeof data1613.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2331 = _errs2094 === errors; } else { valid2331 = true; } if (valid2331) { if (data1613.description !== undefined) { const _errs2095 = errors; if (!(typeof data1613.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2331 = _errs2095 === errors; } else { valid2331 = true; } if (valid2331) { for (const key514 in data1613) { if ( key514 !== "type" && key514 !== "name" && key514 !== "label" && key514 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/" + key514.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key514 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2329) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2328 = _errs2092 === errors; valid2323 = valid2328; } else if (tag86 === "format") { const _errs2096 = errors; let valid2333 = false; valid2333 = true; var valid2334; if (data1613.name !== undefined) { const _errs2097 = errors; if (!(typeof data1613.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2334 = _errs2097 === errors; } else { valid2334 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2334) { var valid2335; if (data1613.label !== undefined) { const _errs2098 = errors; if (!(typeof data1613.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2335 = _errs2098 === errors; } else { valid2335 = true; } if (valid2335) { if (data1613.description !== undefined) { const _errs2099 = errors; if (!(typeof data1613.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2335 = _errs2099 === errors; } else { valid2335 = true; } if (valid2335) { for (const key515 in data1613) { if ( key515 !== "type" && key515 !== "name" && key515 !== "label" && key515 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/" + key515.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key515 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2333) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2332 = _errs2096 === errors; valid2323 = valid2332; } else if (tag86 === "genotype") { const _errs2100 = errors; let valid2337 = false; valid2337 = true; var valid2338; if (data1613.name !== undefined) { const _errs2101 = errors; if (!(typeof data1613.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2338 = _errs2101 === errors; } else { valid2338 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2338) { var valid2339; if (data1613.label !== undefined) { const _errs2102 = errors; if (!(typeof data1613.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2339 = _errs2102 === errors; } else { valid2339 = true; } if (valid2339) { if (data1613.description !== undefined) { const _errs2103 = errors; if (!(typeof data1613.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2339 = _errs2103 === errors; } else { valid2339 = true; } if (valid2339) { for (const key516 in data1613) { if ( key516 !== "type" && key516 !== "name" && key516 !== "label" && key516 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/" + key516.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key516 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2337) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2336 = _errs2100 === errors; valid2323 = valid2336; } else if (tag86 === "composed") { const _errs2104 = errors; let valid2341 = false; valid2341 = true; var valid2342; if (data1613.name !== undefined) { let data1626 = data1613.name; const _errs2105 = errors; if ( !( typeof data1626 == "string" && (data1626 === "clinVar" || data1626 === "confidenceInterval" || data1626 === "gene" || data1626 === "genotype" || data1626 === "genotype_maternal" || data1626 === "genotype_paternal" || data1626 === "gnomAdAf" || data1626 === "hpo" || data1626 === "inheritancePattern" || data1626 === "locus" || data1626 === "spanningReads" || data1626 === "vipC" || data1626 === "vipCS" || data1626 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence.optionalProperties .sample_cells.optionalProperties.sv.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2342 = _errs2105 === errors; } else { valid2342 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2342) { var valid2343; if (data1613.label !== undefined) { const _errs2106 = errors; if (!(typeof data1613.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2343 = _errs2106 === errors; } else { valid2343 = true; } if (valid2343) { if (data1613.description !== undefined) { const _errs2107 = errors; if (!(typeof data1613.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2343 = _errs2107 === errors; } else { valid2343 = true; } if (valid2343) { for (const key517 in data1613) { if ( key517 !== "type" && key517 !== "name" && key517 !== "label" && key517 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/" + key517.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key517 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2341) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2340 = _errs2104 === errors; valid2323 = valid2340; } else if (tag86 === "group") { const _errs2108 = errors; let valid2345 = false; valid2345 = true; var valid2346; if (data1613.fields !== undefined) { let data1629 = data1613.fields; const _errs2109 = errors; let valid2347 = false; if (!valid2347) { if (Array.isArray(data1629)) { var valid2348 = true; const len103 = data1629.length; for (let i103 = 0; i103 < len103; i103++) { let data1630 = data1629[i103]; const _errs2110 = errors; let valid2349 = false; if ( data1630 && typeof data1630 == "object" && !Array.isArray(data1630) ) { const tag87 = data1630.type; if (tag87 === undefined) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag87 }, message: 'tag "type" must be string', }, ]; return false; } else if (typeof tag87 == "string") { if (tag87 === "fixed") { const _errs2111 = errors; let valid2351 = false; valid2351 = true; var valid2352; if (data1630.name !== undefined) { let data1631 = data1630.name; const _errs2112 = errors; if ( !( typeof data1631 == "string" && (data1631 === "chrom" || data1631 === "pos" || data1631 === "id" || data1631 === "ref" || data1631 === "alt" || data1631 === "qual" || data1631 === "filter") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.fixed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2352 = _errs2112 === errors; } else { valid2352 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2352) { var valid2353; if (data1630.label !== undefined) { const _errs2113 = errors; if (!(typeof data1630.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2353 = _errs2113 === errors; } else { valid2353 = true; } if (valid2353) { if (data1630.description !== undefined) { const _errs2114 = errors; if (!(typeof data1630.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2353 = _errs2114 === errors; } else { valid2353 = true; } if (valid2353) { for (const key518 in data1630) { if ( key518 !== "type" && key518 !== "name" && key518 !== "label" && key518 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/" + key518 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed", keyword: "properties", params: { error: "additional", additionalProperty: key518, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2351) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/fixed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2350 = _errs2111 === errors; valid2349 = valid2350; } else if (tag87 === "info") { const _errs2115 = errors; let valid2355 = false; valid2355 = true; var valid2356; if (data1630.name !== undefined) { const _errs2116 = errors; if (!(typeof data1630.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2356 = _errs2116 === errors; } else { valid2356 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2356) { var valid2357; if (data1630.label !== undefined) { const _errs2117 = errors; if (!(typeof data1630.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2357 = _errs2117 === errors; } else { valid2357 = true; } if (valid2357) { if (data1630.description !== undefined) { const _errs2118 = errors; if (!(typeof data1630.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2357 = _errs2118 === errors; } else { valid2357 = true; } if (valid2357) { for (const key519 in data1630) { if ( key519 !== "type" && key519 !== "name" && key519 !== "label" && key519 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/" + key519 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info", keyword: "properties", params: { error: "additional", additionalProperty: key519, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2355) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/info/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2354 = _errs2115 === errors; valid2349 = valid2354; } else if (tag87 === "format") { const _errs2119 = errors; let valid2359 = false; valid2359 = true; var valid2360; if (data1630.name !== undefined) { const _errs2120 = errors; if (!(typeof data1630.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2360 = _errs2120 === errors; } else { valid2360 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2360) { var valid2361; if (data1630.label !== undefined) { const _errs2121 = errors; if (!(typeof data1630.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2361 = _errs2121 === errors; } else { valid2361 = true; } if (valid2361) { if (data1630.description !== undefined) { const _errs2122 = errors; if (!(typeof data1630.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2361 = _errs2122 === errors; } else { valid2361 = true; } if (valid2361) { for (const key520 in data1630) { if ( key520 !== "type" && key520 !== "name" && key520 !== "label" && key520 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/" + key520 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format", keyword: "properties", params: { error: "additional", additionalProperty: key520, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2359) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/format/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2358 = _errs2119 === errors; valid2349 = valid2358; } else if (tag87 === "genotype") { const _errs2123 = errors; let valid2363 = false; valid2363 = true; var valid2364; if (data1630.name !== undefined) { const _errs2124 = errors; if (!(typeof data1630.name == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2364 = _errs2124 === errors; } else { valid2364 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2364) { var valid2365; if (data1630.label !== undefined) { const _errs2125 = errors; if (!(typeof data1630.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2365 = _errs2125 === errors; } else { valid2365 = true; } if (valid2365) { if (data1630.description !== undefined) { const _errs2126 = errors; if (!(typeof data1630.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2365 = _errs2126 === errors; } else { valid2365 = true; } if (valid2365) { for (const key521 in data1630) { if ( key521 !== "type" && key521 !== "name" && key521 !== "label" && key521 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/" + key521 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype", keyword: "properties", params: { error: "additional", additionalProperty: key521, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2363) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/genotype/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2362 = _errs2123 === errors; valid2349 = valid2362; } else if (tag87 === "composed") { const _errs2127 = errors; let valid2367 = false; valid2367 = true; var valid2368; if (data1630.name !== undefined) { let data1643 = data1630.name; const _errs2128 = errors; if ( !( typeof data1643 == "string" && (data1643 === "clinVar" || data1643 === "gene" || data1643 === "genotype" || data1643 === "gnomAdAf" || data1643 === "hpo" || data1643 === "inheritancePattern" || data1643 === "locus" || data1643 === "ref" || data1643 === "vipC" || data1643 === "vipCS" || data1643 === "vkgl") ) ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/name", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name/enum", keyword: "enum", params: { allowedValues: schema29.properties.variant_consequence .optionalProperties.sample_cells .optionalProperties.sv.elements.mapping.group .properties.fields.elements.mapping.composed .properties.name.enum, }, message: "must be equal to one of the allowed values", }, ]; return false; } var valid2368 = _errs2128 === errors; } else { valid2368 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties/name", keyword: "properties", params: { error: "missing", missingProperty: "name" }, message: "must have property 'name'", }, ]; return false; } if (valid2368) { var valid2369; if (data1630.label !== undefined) { const _errs2129 = errors; if (!(typeof data1630.label == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/label", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/label/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2369 = _errs2129 === errors; } else { valid2369 = true; } if (valid2369) { if (data1630.description !== undefined) { const _errs2130 = errors; if (!(typeof data1630.description == "string")) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/description", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/optionalProperties/description/type", keyword: "type", params: { type: "string", nullable: false }, message: "must be string", }, ]; return false; } var valid2369 = _errs2130 === errors; } else { valid2369 = true; } if (valid2369) { for (const key522 in data1630) { if ( key522 !== "type" && key522 !== "name" && key522 !== "label" && key522 !== "description" ) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/" + key522 .replace(/~/g, "~0") .replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed", keyword: "properties", params: { error: "additional", additionalProperty: key522, }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } if (!valid2367) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping/composed/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2366 = _errs2127 === errors; valid2349 = valid2366; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag87, }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag87 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2349) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields/" + i103, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2348 = _errs2110 === errors; if (!valid2348) { break; } } valid2347 = valid2348; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/fields", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2346 = _errs2109 === errors; } else { valid2346 = false; validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties/fields", keyword: "properties", params: { error: "missing", missingProperty: "fields" }, message: "must have property 'fields'", }, ]; return false; } if (valid2346) { for (const key523 in data1613) { if (key523 !== "type" && key523 !== "fields") { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/" + key523.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group", keyword: "properties", params: { error: "additional", additionalProperty: key523 }, message: "must NOT have additional properties", }, ]; return false; break; } } } if (!valid2345) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping/group/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2344 = _errs2108 === errors; valid2323 = valid2344; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/mapping", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag86 }, message: 'value of tag "type" must be in mapping', }, ]; return false; } } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102 + "/type", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag86 }, message: 'tag "type" must be string', }, ]; return false; } } else if (!valid2323) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv/" + i102, schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements/discriminator", keyword: "discriminator", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2322 = _errs2087 === errors; if (!valid2322) { break; } } valid2321 = valid2322; } else { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/sv", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties/sv/elements", keyword: "elements", params: { type: "array", nullable: false }, message: "must be array", }, ]; return false; } } var valid2170 = _errs2086 === errors; } else { valid2170 = true; } if (valid2170) { for (const key524 in data1509) { if (key524 !== "all" && key524 !== "snv" && key524 !== "str" && key524 !== "sv") { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells/" + key524.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key524 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } if (!valid2168) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/sample_cells", schemaPath: "/properties/variant_consequence/optionalProperties/sample_cells/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid2167 = _errs1950 === errors; } else { valid2167 = true; } if (valid2167) { for (const key525 in data1508) { if (key525 !== "sample_cells") { validate57.errors = [ { instancePath: instancePath + "/variant_consequence/" + key525.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "/properties/variant_consequence", keyword: "optionalProperties", params: { error: "additional", additionalProperty: key525 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } if (!valid2165) { validate57.errors = [ { instancePath: instancePath + "/variant_consequence", schemaPath: "/properties/variant_consequence/optionalProperties", keyword: "optionalProperties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } var valid1 = _errs1949 === errors; } else { valid1 = false; validate57.errors = [ { instancePath, schemaPath: "/properties/variant_consequence", keyword: "properties", params: { error: "missing", missingProperty: "variant_consequence" }, message: "must have property 'variant_consequence'", }, ]; return false; } if (valid1) { for (const key526 in data) { if ( key526 !== "vip" && key526 !== "sample_variants" && key526 !== "variants" && key526 !== "sample_variant" && key526 !== "variant" && key526 !== "sample_variant_consequence" && key526 !== "variant_consequence" ) { validate57.errors = [ { instancePath: instancePath + "/" + key526.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "", keyword: "properties", params: { error: "additional", additionalProperty: key526 }, message: "must NOT have additional properties", }, ]; return false; break; } } } } } } } } } } if (!valid0) { validate57.errors = [ { instancePath, schemaPath: "/properties", keyword: "properties", params: { type: "object", nullable: false }, message: "must be object", }, ]; return false; } validate57.errors = vErrors; return errors === 0; }; export default validate;