kg-ssot 4.45.0 → 4.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kg.mjs +21 -1
- package/must.mjs +1 -1
- package/package.json +1 -1
- package/should.mjs +1 -1
- package/spec/kg-contract-v4.schema.json +1 -1
- package/spec/kg-contract-v4.should.schema.json +1 -1
- package/spec/release.json +2 -2
package/should.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:kg-ssot:spec:kg-contract-v4.should.schema.json","title":"kg.yaml — contrato v4, nível SHOULD","description":"O contrato v4 do .kg.yaml, nível SHOULD (alerta, não reprova), o vigente. É o SHOULD v3 menos o que o v4 promoveu a MUST: a chave desconhecida sem x_ no topo, no meta, no nó e na aresta e o nó confirmed ou PROD sem provenance. Segue alertando: nome de chave que não é slug ([A-Za-z_][A-Za-z0-9_-]*), como form.pattern.<escopo>.key, que sem x_ também reprova no MUST; nó PROD sem verified_at; label do nó acima de 280 caracteres, form.range.node.label, porque a narrativa vai para narrative; a chave desconhecida dentro de provenance, fechada em source, locator, method e x_; e o grafo sem nós (nodes: []), como form.range.top.nodes: é válido, como o primeiro uso de um app, mas o aviso pega o parse que falhou em silêncio. No v4, provenance.method alerta (form.pattern.node.provenance.method) quando não segue a forma canônica '<classe>: <detalhe>', com a classe em medição, leitura, juízes, derivado, testemunho; reprova no v5. Medição feita por terceiro e lida pelo autor do grafo é testemunho. No v4.1 entram quatro avisos que o próprio arquivo decide. O schema acusa a claim com verified_at e sem verified_against (form.required.node.verified_against): carimbo sem alvo não distingue verificado de declarado. Só a claim: evidence é a própria âncora, artifact nomeia o alvo, question não afirma e a origem da decision é cobrada por integrity.untraced-decision. O leitor acusa três avisos que cruzam campos ou arestas, por isso não cabem no schema: integrity.testimony-in-prod (nó PROD cuja base é testemunho), integrity.verified-before-fact (verified_at anterior a valid_from) e integrity.untraced-decision (decision viva sem trace, sem provenance e sem aresta TRACES_TO saindo dela). No v4.2 entra provenance.locality, opcional, com o enum repo (arquivo versionado no próprio repo), web (endereço público), host (só existe numa máquina: journal local, caminho fora do repo) ou pessoa (relato de alguém): o valor fora do enum alerta como form.enum.node.provenance.locality. Serve para medir o que é reverificável por terceiros e para barrar host na publicação. No v4.4 entra o quarto aviso do leitor, integrity.refutes-unreconciled: nó que recebe REFUTES e segue vivo (nem superseded nem refuted; a question done já está respondida, e não alerta). O grafo afirma e refuta a mesma coisa; o radar do framework onde o formato nasceu reprova o caso como contradição. Aqui é SHOULD agora e vira MUST numa versão futura, depois que os adotantes medirem a própria dívida. No v4.5, provenance.locality ganha privado: documento fora do repo, não público e reverificável por quem tem acesso (Google Drive, wiki interna); o valor segue onde está a cópia lida, não a classificação do documento. Entra verified_scope, opcional, com o enum fato (o que o nó afirma foi conferido), mecanismo (só o mecanismo, como código ou configuração; o fato depende de outro ambiente) ou nenhum (conferido contra o repo na data, e nada ali sustenta nem refuta o fato): o valor fora do enum alerta como form.enum.node.verified_scope, e verified_scope sem verified_at alerta como form.required.node.verified_at. O leitor passa a contar para integrity.refutes-unreconciled a REFUTES que chega a um nó vivo pelas external_edges, quando tem o corpus. No v4.8, reverify_every e retain_for alertam fora da duração ISO 8601 só com data, ou zerada como P0D (form.pattern.node.reverify_every, form.pattern.node.retain_for), reverify_on vazio ou fora de texto alerta, e reverify_every sem verified_at alerta como form.required.node.verified_at: a cadência conta a partir do carimbo. No v4.9, reverify_every sem verified_at deixa de alertar: é o estado inicial de uma regra de coleta, cadência definida e nenhuma verificação ainda, e quem o lista é o relatório de vencimento (kg_validate.py --due, na lista unstamped), fora do veredito. O nó PROD sem verified_at segue alertando. No v4.11 entram os perfis canônicos das chaves x_ que se repetem nos adotantes, julgados só quando a chave está presente e nunca no MUST. No nó: x_term, o termo de um vocabulário de domínio, com pref (o termo preferido, o prefLabel do SKOS) e labels, a lista de sinônimos como objetos com literal, kind (alt ou hidden, o altLabel e o hiddenLabel do SKOS), source, locator, version (a versão do documento de onde veio), verified_at, reverify_every, scope (level domain ou case, com case quando o nível é case, e jurisdiction) e retired (booleano: o sinônimo aposentado); o termo aposentado é o nó com status superseded e a aresta SUPERSEDES do termo novo. x_mirror, a cópia de um registro de outro sistema (system, ref, state e synced_at, com resync_every e url opcionais). x_doc_cycle, o ciclo de vida de um documento externo (issuer e state em draft, enacted (publicado, com vigência futura em effective_from), in_force, suspended, revoked, expired ou superseded; ref, version, effective_from, effective_to, updated_at, checked_at e recheck_every opcionais). x_questionnaire, o elo com um questionário externo (name e questions não vazia; answer_draft, verdict em meets, partial, does_not_meet, not_applicable ou unknown, e answered_at; desde o v4.13, role em item (o padrão: a pergunta do questionário ou a resposta a ela) evidence_request (o pedido de evidência a uma pessoa, que cita os itens a que serve) ou evidence_requirement (a evidência que os itens exigem)). x_severity, em critical, high, medium, low ou info. Na aresta: x_confidence, de 0 a 1, e x_provisional, booleano. Dentro de um perfil, a chave desconhecida sem x_ alerta como form.unknown-key, e um item de lista dentro do nó leva o caminho no código (form.type.node.x_term.labels.item). No meta, o slug fora da forma em minúsculas com hífen alerta como form.pattern.meta.slug. Os valores de enum são códigos, em inglês, em qualquer língua da saída. Nenhum perfil usa a chave status aninhada: o radar do framework onde o formato nasceu lê status em qualquer nível como o status do nó, e o sinônimo aposentado é retired: true. No v4.12 entram os dois perfis do critério pré-registrado, que fazem da troca da régua depois de ver o dado uma emenda datada em vez de uma reescrita. x_criterion, no nó do critério (um nó por versão): id (o id estável entre as versões), version (texto ou inteiro), registered_at (data, ou data-hora RFC 3339 com fuso), sha256 (64 hex minúsculos) e ref ou text, nunca os dois; com amends (o id do nó da versão anterior), reason é obrigatório, e round (texto) é a rodada que motivou a emenda. x_measured_under, no resultado: measured_at (data ou data-hora), criteria (lista não vazia de {criterion, sha256}, em que criterion é o id de um nó com x_criterion ou <caminho>#<id>), e subject (mapa), verdict e round (texto) opcionais. ref e text juntos alertam form.exclusive.node.x_criterion. O leitor não calcula hash: a coerência entre os nós (integrity.criterion-unknown, integrity.criterion-sha-mismatch, integrity.criterion-amends-mismatch, integrity.measured-post-hoc e integrity.measured-order-unknown) é dele, e o sha256 contra o texto ou o arquivo é do kg_criterion.py. No v4.14, o x_term ganha scheme, o esquema do vocabulário (o skos:inScheme), em forma de slug (minúsculas, dígitos e hífen); sem ele, o esquema é o próprio grafo, cujo nome é o meta.id (o esquema declarado igual ao meta.id é o mesmo). E o aviso integrity.term-notation-duplicate, do leitor: dois nós vivos (status que não é superseded nem refuted) com x_term, no mesmo esquema e com a mesma notation (comparada exata), só entre nós do mesmo grafo, como a convenção do SKOS (§6.5.3). O corpus inteiro e o código na prosa são do kg_vocab.py lint. No v4.16, a classe de provenance.method ganha a forma canônica em inglês (measurement, reading, judges, derived, testimony), e as cinco em português (medição, leitura, juízes, derivado, testemunho) seguem aceitas como alias, sem aviso; testimony e testemunho valem igual para integrity.testimony-in-prod. No v4.17 entram, só no SHOULD, duas chaves de provenance. provenance.scheme diz o esquema do locator, por um código: json-pointer (RFC 6901; em fragmento, com #, sem espaço cru), text (RFC 5147: line= e char=, posições contadas a partir de 0 como fronteiras, char em code points e cada quebra de linha, CRLF, LF ou CR, contada como um caractere; o ;length= da norma vale, e o ;md5= não), csv (RFC 7111: só row=, só col= ou só cell= numa seleção, a partir de 1, com * para a última), pdf (RFC 8118 e ISO 32000-2: page=, a página física, a partir de 1, entre outros parâmetros), media (Media Fragments: t=, segundos npt, intervalo semiaberto), quote (o texto exato, o TextQuoteSelector do Web Annotation), html (o fragmento #id) e kg-node (o id de um nó do grafo citado no source, #ID ou ID: a âncora nativa do formato, desenho próprio do contrato). As URIs do conformsTo do Web Annotation para esses esquemas valem como alias, inclusive a da RFC 3778, que a tabela do W3C ainda cita para PDF. Com o scheme, o locator que não casa a forma do esquema alerta como form.pattern.node.provenance.locator; sem ele, o locator segue texto livre. A forma não confere o que só a fonte diz (o início depois do fim, a linha que não existe): isso é do kg_trace. provenance.sha256 é o hash SHA-256 do conteúdo lido, em 64 hex minúsculos, num campo próprio e separado do locator (o md5= da RFC 5147 não é usado, porque o MD5 não resiste a colisão): fora da forma alerta como form.pattern.node.provenance.sha256. Nada que passava reprova. No v4.18 entra, só no SHOULD, provenance.node_sha256: o SHA-256, em 64 hex minúsculos, da serialização canônica do nó citado pela RFC 8785 (JCS, JSON Canonicalization Scheme), sobre o modelo que o leitor extrai do grafo (chaves em ordem de unidades UTF-16, números e strings na forma do ECMAScript). Vale com scheme kg-node: uma mudança num nó vizinho do mesmo arquivo não mexe nele, e uma mudança no nó citado, sim. Fora da forma alerta como form.pattern.node.provenance.node_sha256; sem scheme, como form.required.node.provenance.scheme; com outro scheme, como form.const.node.provenance.scheme. O hash é conferido pelo kg_trace, não pelo leitor. Nada que passava reprova.","type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"meta":{"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}},"nodes":{"type":"array","items":{"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"label":{"maxLength":280},"provenance":{"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["locality","locator","method","node_sha256","scheme","sha256","source"]},{"pattern":"^x_"}]}]},"properties":{"method":{"pattern":"^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]"},"locality":{"enum":["host","pessoa","privado","repo","web"]},"scheme":{"enum":["csv","html","http://tools.ietf.org/rfc/rfc3236","http://tools.ietf.org/rfc/rfc3778","http://tools.ietf.org/rfc/rfc5147","http://tools.ietf.org/rfc/rfc6901","http://tools.ietf.org/rfc/rfc7111","http://tools.ietf.org/rfc/rfc8118","http://www.w3.org/TR/media-frags/","json-pointer","kg-node","media","pdf","quote","text"]},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"node_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"allOf":[{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["json-pointer","http://tools.ietf.org/rfc/rfc6901"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["text","http://tools.ietf.org/rfc/rfc5147"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["csv","http://tools.ietf.org/rfc/rfc7111"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["pdf","http://tools.ietf.org/rfc/rfc3778","http://tools.ietf.org/rfc/rfc8118"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["media","http://www.w3.org/TR/media-frags/"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["quote"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"[^ \\t\\n\\r]"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["html","http://tools.ietf.org/rfc/rfc3236"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^#?[^ \\t\\n\\r#]+$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["kg-node"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^#?[A-Za-z][A-Za-z0-9_]*$"}}}},{"if":{"required":["node_sha256"]},"then":{"required":["scheme"],"properties":{"scheme":{"const":"kg-node"}}}}]},"verified_scope":{"enum":["fato","mecanismo","nenhum"]},"reverify_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"reverify_on":{"type":"string","minLength":1},"retain_for":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"x_term":{"type":"object","required":["pref"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["definition","labels","lang","notation","pref","scheme"]},{"pattern":"^x_"}]}]},"properties":{"pref":{"type":"string","minLength":1},"lang":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},"definition":{"type":"string","minLength":1},"notation":{"type":"string","minLength":1},"labels":{"type":"array","items":{"$ref":"#/$defs/termLabel"}},"scheme":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]*$"}}},"x_mirror":{"type":"object","required":["system","ref","state","synced_at"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["ref","resync_every","state","synced_at","system","url"]},{"pattern":"^x_"}]}]},"properties":{"system":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"synced_at":{"type":"string","format":"date"},"url":{"type":"string","minLength":1},"resync_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"state":{"type":"string","minLength":1}}},"x_doc_cycle":{"type":"object","required":["issuer","state"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["checked_at","effective_from","effective_to","issuer","recheck_every","ref","state","updated_at","version"]},{"pattern":"^x_"}]}]},"properties":{"issuer":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"state":{"enum":["draft","enacted","expired","in_force","revoked","superseded","suspended"]},"effective_from":{"type":"string","format":"date"},"effective_to":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"},"checked_at":{"type":"string","format":"date"},"recheck_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]}},"allOf":[{"if":{"required":["recheck_every"]},"then":{"required":["checked_at"]}}]},"x_questionnaire":{"type":"object","required":["name","questions"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["answer_draft","answered_at","name","questions","role","verdict"]},{"pattern":"^x_"}]}]},"properties":{"name":{"type":"string","minLength":1},"questions":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"answer_draft":{"type":"string","minLength":1},"verdict":{"enum":["does_not_meet","meets","not_applicable","partial","unknown"]},"answered_at":{"type":"string","format":"date"},"role":{"enum":["evidence_request","evidence_requirement","item"]}}},"x_severity":{"enum":["critical","high","info","low","medium"]},"x_criterion":{"type":"object","required":["id","version","registered_at","sha256"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["amends","id","reason","ref","registered_at","round","sha256","text","version"]},{"pattern":"^x_"}]}]},"properties":{"id":{"type":"string","minLength":1},"version":{"type":["string","integer"],"minLength":1},"registered_at":{"type":"string","pattern":"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"ref":{"type":"string","minLength":1},"text":{"type":"string","minLength":1},"amends":{"type":"string","minLength":1},"reason":{"type":"string","minLength":1},"round":{"type":"string","minLength":1}},"allOf":[{"if":{"type":"object","required":["ref"]},"then":{"not":{"required":["text"]}}},{"if":{"type":"object","not":{"required":["ref"]}},"then":{"required":["text"]}},{"if":{"type":"object","required":["amends"]},"then":{"required":["reason"]}}]},"x_measured_under":{"type":"object","required":["measured_at","criteria"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["criteria","measured_at","round","subject","verdict"]},{"pattern":"^x_"}]}]},"properties":{"measured_at":{"type":"string","pattern":"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},"criteria":{"type":"array","minItems":1,"items":{"type":"object","required":["criterion","sha256"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["criterion","sha256"]},{"pattern":"^x_"}]}]},"properties":{"criterion":{"type":"string","minLength":1},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}}}},"subject":{"type":"object"},"verdict":{"type":"string","minLength":1},"round":{"type":"string","minLength":1}}}},"allOf":[{"if":{"anyOf":[{"properties":{"plane":{"const":"PROD"}},"required":["plane"]},{"required":["verified_scope"]}]},"then":{"required":["verified_at"]}},{"if":{"properties":{"node_type":{"const":"claim"}},"required":["node_type","verified_at"]},"then":{"required":["verified_against"]}}]},"minItems":1},"edges":{"type":"array","items":{"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"x_confidence":{"type":"number","minimum":0,"maximum":1},"x_provisional":{"type":"boolean"}}}}},"$defs":{"termLabel":{"type":"object","required":["literal","kind","source"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["kind","lang","literal","locator","retired","reverify_every","scope","source","verified_at","version"]},{"pattern":"^x_"}]}]},"properties":{"literal":{"type":"string","minLength":1},"kind":{"enum":["alt","hidden"]},"lang":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},"scope":{"type":"object","required":["level"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["case","jurisdiction","level"]},{"pattern":"^x_"}]}]},"properties":{"level":{"enum":["case","domain"]},"case":{"type":"string","minLength":1},"jurisdiction":{"type":"string","minLength":1}},"allOf":[{"if":{"properties":{"level":{"const":"case"}},"required":["level"]},"then":{"required":["case"]}}]},"source":{"type":"string","minLength":1},"locator":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"verified_at":{"type":"string","format":"date"},"reverify_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"retired":{"type":"boolean"}},"allOf":[{"if":{"required":["reverify_every"]},"then":{"required":["verified_at"]}}]}}};const schema32 = {"type":"object","required":["literal","kind","source"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["kind","lang","literal","locator","retired","reverify_every","scope","source","verified_at","version"]},{"pattern":"^x_"}]}]},"properties":{"literal":{"type":"string","minLength":1},"kind":{"enum":["alt","hidden"]},"lang":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},"scope":{"type":"object","required":["level"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["case","jurisdiction","level"]},{"pattern":"^x_"}]}]},"properties":{"level":{"enum":["case","domain"]},"case":{"type":"string","minLength":1},"jurisdiction":{"type":"string","minLength":1}},"allOf":[{"if":{"properties":{"level":{"const":"case"}},"required":["level"]},"then":{"required":["case"]}}]},"source":{"type":"string","minLength":1},"locator":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"verified_at":{"type":"string","format":"date"},"reverify_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"retired":{"type":"boolean"}},"allOf":[{"if":{"required":["reverify_every"]},"then":{"required":["verified_at"]}}]};const pattern4 = new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$", "u");const pattern6 = new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u");const pattern8 = new RegExp("^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$", "u");const pattern9 = new RegExp("^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$", "u");const pattern10 = new RegExp("^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$", "u");const pattern11 = new RegExp("^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$", "u");const pattern12 = new RegExp("^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$", "u");const pattern13 = new RegExp("[^ \\t\\n\\r]", "u");const pattern14 = new RegExp("^#?[^ \\t\\n\\r#]+$", "u");const pattern15 = new RegExp("^#?[A-Za-z][A-Za-z0-9_]*$", "u");const pattern17 = new RegExp("^x_", "u");const pattern18 = new RegExp("^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]", "u");const pattern19 = new RegExp("^[0-9a-f]{64}$", "u");const pattern21 = new RegExp("^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$", "u");const pattern22 = new RegExp("^P(?:0+[YMWD])+$", "u");const pattern27 = new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$", "u");const pattern35 = new RegExp("^[a-z0-9][a-z0-9-]*$", "u");const pattern48 = new RegExp("^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$", "u");import func1_mod from "ajv/dist/runtime/ucs2length.js";const func1 = func1_mod.default;const formats0 = /^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="urn:kg-ssot:spec:kg-contract-v4.should.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){const _errs1 = errors;if(typeof key0 === "string"){if(!pattern4.test(key0)){const err0 = {instancePath,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.propertyNames,data:key0,propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var valid0 = _errs1 === errors;if(!valid0){const err1 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid",schema:schema31.propertyNames,parentSchema:schema31,data};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.meta !== undefined){let data0 = data.meta;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){for(const key1 in data0){const _errs4 = errors;if(typeof key1 === "string"){if(!pattern4.test(key1)){const err2 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.meta.propertyNames,data:key1,propertyName:key1};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var valid2 = _errs4 === errors;if(!valid2){const err3 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid",schema:schema31.properties.meta.propertyNames,parentSchema:schema31.properties.meta,data:data0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data0.slug !== undefined){let data1 = data0.slug;if(typeof data1 === "string"){if(!pattern6.test(data1)){const err4 = {instancePath:instancePath+"/meta/slug",schemaPath:"#/properties/meta/properties/slug/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+(?:-[a-z0-9]+)*$"+"\"",schema:"^[a-z0-9]+(?:-[a-z0-9]+)*$",parentSchema:schema31.properties.meta.properties.slug,data:data1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/meta/slug",schemaPath:"#/properties/meta/properties/slug/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.meta.properties.slug.type,parentSchema:schema31.properties.meta.properties.slug,data:data1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.meta.type,parentSchema:schema31.properties.meta,data:data0};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.nodes !== undefined){let data2 = data.nodes;if(Array.isArray(data2)){if(data2.length < 1){const err7 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:schema31.properties.nodes,data:data2};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs12 = errors;let valid7 = true;const _errs13 = errors;const _errs14 = errors;let valid8 = false;const _errs15 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing0;if((data3.plane === undefined) && (missing0 = "plane")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data3.plane !== undefined){if("PROD" !== data3.plane){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}var _valid1 = _errs15 === errors;valid8 = valid8 || _valid1;if(_valid1){var props0 = {};props0.plane = true;}const _errs17 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.verified_scope === undefined) && (missing1 = "verified_scope")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid1 = _errs17 === errors;valid8 = valid8 || _valid1;if(!valid8){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var _valid0 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid0){const _errs18 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.verified_at === undefined){const err12 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "verified_at"},message:"must have required property '"+"verified_at"+"'",schema:schema31.properties.nodes.items.allOf[0].then.required,parentSchema:schema31.properties.nodes.items.allOf[0].then,data:data3};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs18 === errors;valid7 = _valid0;}if(!valid7){const err13 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.allOf[0].if,parentSchema:schema31.properties.nodes.items.allOf[0],data:data3};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const _errs20 = errors;let valid10 = true;const _errs21 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing2;if(((data3.node_type === undefined) && (missing2 = "node_type")) || ((data3.verified_at === undefined) && (missing2 = "verified_at"))){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data3.node_type !== undefined){if("claim" !== data3.node_type){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}var _valid2 = _errs21 === errors;errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}if(_valid2){const _errs23 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.verified_against === undefined){const err16 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/1/then/required",keyword:"required",params:{missingProperty: "verified_against"},message:"must have required property '"+"verified_against"+"'",schema:schema31.properties.nodes.items.allOf[1].then.required,parentSchema:schema31.properties.nodes.items.allOf[1].then,data:data3};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid2 = _errs23 === errors;valid10 = _valid2;}if(!valid10){const err17 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.allOf[1].if,parentSchema:schema31.properties.nodes.items.allOf[1],data:data3};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(props0 !== true){props0 = props0 || {};props0.node_type = true;}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){for(const key2 in data3){const _errs24 = errors;if(typeof key2 === "string"){if(!pattern4.test(key2)){const err18 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.propertyNames,data:key2,propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid12 = _errs24 === errors;if(!valid12){const err19 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid",schema:schema31.properties.nodes.items.propertyNames,parentSchema:schema31.properties.nodes.items,data:data3};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(props0 !== true){props0 = props0 || {};props0.label = true;props0.provenance = true;props0.verified_scope = true;props0.reverify_every = true;props0.reverify_on = true;props0.retain_for = true;props0.x_term = true;props0.x_mirror = true;props0.x_doc_cycle = true;props0.x_questionnaire = true;props0.x_severity = true;props0.x_criterion = true;props0.x_measured_under = true;}if(data3.label !== undefined){let data6 = data3.label;if(typeof data6 === "string"){if(func1(data6) > 280){const err20 = {instancePath:instancePath+"/nodes/" + i0+"/label",schemaPath:"#/properties/nodes/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 280},message:"must NOT have more than 280 characters",schema:280,parentSchema:schema31.properties.nodes.items.properties.label,data:data6};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}if(data3.provenance !== undefined){let data7 = data3.provenance;const _errs28 = errors;let valid15 = true;const _errs29 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing3;if((data7.scheme === undefined) && (missing3 = "scheme")){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {if(data7.scheme !== undefined){let data8 = data7.scheme;if(!((data8 === "json-pointer") || (data8 === "http://tools.ietf.org/rfc/rfc6901"))){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}}var _valid3 = _errs29 === errors;errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}if(_valid3){const _errs31 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data9 = data7.locator;if(typeof data9 === "string"){if(!pattern8.test(data9)){const err23 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/0/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$"},message:"must match pattern \""+"^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$"+"\"",schema:"^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[0].then.properties.locator,data:data9};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/0/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[0].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[0].then.properties.locator,data:data9};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs31 === errors;valid15 = _valid3;if(valid15){var props1 = {};props1.locator = true;props1.scheme = true;}}if(!valid15){const err25 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[0].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[0],data:data7};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}const _errs35 = errors;let valid18 = true;const _errs36 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing4;if((data7.scheme === undefined) && (missing4 = "scheme")){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {if(data7.scheme !== undefined){let data10 = data7.scheme;if(!((data10 === "text") || (data10 === "http://tools.ietf.org/rfc/rfc5147"))){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}}var _valid4 = _errs36 === errors;errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}if(_valid4){const _errs38 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data11 = data7.locator;if(typeof data11 === "string"){if(!pattern9.test(data11)){const err28 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/1/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$"},message:"must match pattern \""+"^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$"+"\"",schema:"^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[1].then.properties.locator,data:data11};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/1/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[1].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[1].then.properties.locator,data:data11};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid4 = _errs38 === errors;valid18 = _valid4;if(valid18){var props2 = {};props2.locator = true;props2.scheme = true;}}if(!valid18){const err30 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[1].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[1],data:data7};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(props1 !== true && props2 !== undefined){if(props2 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props2);}}const _errs42 = errors;let valid21 = true;const _errs43 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing5;if((data7.scheme === undefined) && (missing5 = "scheme")){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data7.scheme !== undefined){let data12 = data7.scheme;if(!((data12 === "csv") || (data12 === "http://tools.ietf.org/rfc/rfc7111"))){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}}var _valid5 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid5){const _errs45 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data13 = data7.locator;if(typeof data13 === "string"){if(!pattern10.test(data13)){const err33 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/2/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$"},message:"must match pattern \""+"^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$"+"\"",schema:"^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[2].then.properties.locator,data:data13};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}else {const err34 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/2/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[2].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[2].then.properties.locator,data:data13};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid5 = _errs45 === errors;valid21 = _valid5;if(valid21){var props3 = {};props3.locator = true;props3.scheme = true;}}if(!valid21){const err35 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[2].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[2],data:data7};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(props1 !== true && props3 !== undefined){if(props3 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props3);}}const _errs49 = errors;let valid24 = true;const _errs50 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing6;if((data7.scheme === undefined) && (missing6 = "scheme")){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {if(data7.scheme !== undefined){let data14 = data7.scheme;if(!(((data14 === "pdf") || (data14 === "http://tools.ietf.org/rfc/rfc3778")) || (data14 === "http://tools.ietf.org/rfc/rfc8118"))){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}}var _valid6 = _errs50 === errors;errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}if(_valid6){const _errs52 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data15 = data7.locator;if(typeof data15 === "string"){if(!pattern11.test(data15)){const err38 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/3/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$"},message:"must match pattern \""+"^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$"+"\"",schema:"^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[3].then.properties.locator,data:data15};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/3/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[3].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[3].then.properties.locator,data:data15};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid6 = _errs52 === errors;valid24 = _valid6;if(valid24){var props4 = {};props4.locator = true;props4.scheme = true;}}if(!valid24){const err40 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[3].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[3],data:data7};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(props1 !== true && props4 !== undefined){if(props4 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props4);}}const _errs56 = errors;let valid27 = true;const _errs57 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing7;if((data7.scheme === undefined) && (missing7 = "scheme")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data7.scheme !== undefined){let data16 = data7.scheme;if(!((data16 === "media") || (data16 === "http://www.w3.org/TR/media-frags/"))){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}}var _valid7 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid7){const _errs59 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data17 = data7.locator;if(typeof data17 === "string"){if(!pattern12.test(data17)){const err43 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/4/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$"},message:"must match pattern \""+"^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$"+"\"",schema:"^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[4].then.properties.locator,data:data17};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}else {const err44 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/4/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[4].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[4].then.properties.locator,data:data17};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var _valid7 = _errs59 === errors;valid27 = _valid7;if(valid27){var props5 = {};props5.locator = true;props5.scheme = true;}}if(!valid27){const err45 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[4].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[4],data:data7};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(props1 !== true && props5 !== undefined){if(props5 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props5);}}const _errs63 = errors;let valid30 = true;const _errs64 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing8;if((data7.scheme === undefined) && (missing8 = "scheme")){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data7.scheme !== undefined){if(!(data7.scheme === "quote")){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}}var _valid8 = _errs64 === errors;errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}if(_valid8){const _errs66 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data19 = data7.locator;if(typeof data19 === "string"){if(!pattern13.test(data19)){const err48 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/5/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "[^ \\t\\n\\r]"},message:"must match pattern \""+"[^ \\t\\n\\r]"+"\"",schema:"[^ \\t\\n\\r]",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[5].then.properties.locator,data:data19};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/5/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[5].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[5].then.properties.locator,data:data19};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid8 = _errs66 === errors;valid30 = _valid8;if(valid30){var props6 = {};props6.locator = true;props6.scheme = true;}}if(!valid30){const err50 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[5].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[5],data:data7};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(props1 !== true && props6 !== undefined){if(props6 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props6);}}const _errs70 = errors;let valid33 = true;const _errs71 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing9;if((data7.scheme === undefined) && (missing9 = "scheme")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data7.scheme !== undefined){let data20 = data7.scheme;if(!((data20 === "html") || (data20 === "http://tools.ietf.org/rfc/rfc3236"))){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}var _valid9 = _errs71 === errors;errors = _errs70;if(vErrors !== null){if(_errs70){vErrors.length = _errs70;}else {vErrors = null;}}if(_valid9){const _errs73 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data21 = data7.locator;if(typeof data21 === "string"){if(!pattern14.test(data21)){const err53 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/6/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^#?[^ \\t\\n\\r#]+$"},message:"must match pattern \""+"^#?[^ \\t\\n\\r#]+$"+"\"",schema:"^#?[^ \\t\\n\\r#]+$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[6].then.properties.locator,data:data21};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/6/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[6].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[6].then.properties.locator,data:data21};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid9 = _errs73 === errors;valid33 = _valid9;if(valid33){var props7 = {};props7.locator = true;props7.scheme = true;}}if(!valid33){const err55 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[6].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[6],data:data7};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(props1 !== true && props7 !== undefined){if(props7 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props7);}}const _errs77 = errors;let valid36 = true;const _errs78 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing10;if((data7.scheme === undefined) && (missing10 = "scheme")){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(data7.scheme !== undefined){if(!(data7.scheme === "kg-node")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}}var _valid10 = _errs78 === errors;errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}if(_valid10){const _errs80 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data23 = data7.locator;if(typeof data23 === "string"){if(!pattern15.test(data23)){const err58 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/7/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^#?[A-Za-z][A-Za-z0-9_]*$"},message:"must match pattern \""+"^#?[A-Za-z][A-Za-z0-9_]*$"+"\"",schema:"^#?[A-Za-z][A-Za-z0-9_]*$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[7].then.properties.locator,data:data23};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}else {const err59 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/7/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[7].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[7].then.properties.locator,data:data23};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}var _valid10 = _errs80 === errors;valid36 = _valid10;if(valid36){var props8 = {};props8.locator = true;props8.scheme = true;}}if(!valid36){const err60 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[7].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[7],data:data7};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(props1 !== true && props8 !== undefined){if(props8 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props8);}}const _errs84 = errors;let valid39 = true;const _errs85 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing11;if((data7.node_sha256 === undefined) && (missing11 = "node_sha256")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var _valid11 = _errs85 === errors;errors = _errs84;if(vErrors !== null){if(_errs84){vErrors.length = _errs84;}else {vErrors = null;}}if(_valid11){const _errs86 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.scheme === undefined){const err62 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/8/then/required",keyword:"required",params:{missingProperty: "scheme"},message:"must have required property '"+"scheme"+"'",schema:schema31.properties.nodes.items.properties.provenance.allOf[8].then.required,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[8].then,data:data7};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data7.scheme !== undefined){let data24 = data7.scheme;if("kg-node" !== data24){const err63 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/scheme",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/8/then/properties/scheme/const",keyword:"const",params:{allowedValue: "kg-node"},message:"must be equal to constant",schema:"kg-node",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[8].then.properties.scheme,data:data24};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}var _valid11 = _errs86 === errors;valid39 = _valid11;if(valid39){var props9 = {};props9.scheme = true;}}if(!valid39){const err64 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[8].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[8],data:data7};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(props1 !== true && props9 !== undefined){if(props9 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props9);}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key3 in data7){const _errs88 = errors;if(typeof key3 === "string"){if(!pattern4.test(key3)){const err65 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[0],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}const _errs91 = errors;let valid43 = false;const _errs92 = errors;if(!(((((((key3 === "locality") || (key3 === "locator")) || (key3 === "method")) || (key3 === "node_sha256")) || (key3 === "scheme")) || (key3 === "sha256")) || (key3 === "source"))){const err66 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[0],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid12 = _errs92 === errors;valid43 = valid43 || _valid12;const _errs93 = errors;if(typeof key3 === "string"){if(!pattern17.test(key3)){const err67 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[1],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid12 = _errs93 === errors;valid43 = valid43 || _valid12;if(!valid43){const err68 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}}var valid41 = _errs88 === errors;if(!valid41){const err69 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames",keyword:"propertyNames",params:{propertyName: key3},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.provenance.propertyNames,parentSchema:schema31.properties.nodes.items.properties.provenance,data:data7};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(props1 !== true){props1 = props1 || {};props1.method = true;props1.locality = true;props1.scheme = true;props1.sha256 = true;props1.node_sha256 = true;}if(data7.method !== undefined){let data25 = data7.method;if(typeof data25 === "string"){if(!pattern18.test(data25)){const err70 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/method",schemaPath:"#/properties/nodes/items/properties/provenance/properties/method/pattern",keyword:"pattern",params:{pattern: "^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]"},message:"must match pattern \""+"^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]"+"\"",schema:"^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]",parentSchema:schema31.properties.nodes.items.properties.provenance.properties.method,data:data25};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}if(data7.locality !== undefined){let data26 = data7.locality;if(!(((((data26 === "host") || (data26 === "pessoa")) || (data26 === "privado")) || (data26 === "repo")) || (data26 === "web"))){const err71 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locality",schemaPath:"#/properties/nodes/items/properties/provenance/properties/locality/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.provenance.properties.locality.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.provenance.properties.locality.enum,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.locality,data:data26};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data7.scheme !== undefined){let data27 = data7.scheme;if(!(((((((((((((((data27 === "csv") || (data27 === "html")) || (data27 === "http://tools.ietf.org/rfc/rfc3236")) || (data27 === "http://tools.ietf.org/rfc/rfc3778")) || (data27 === "http://tools.ietf.org/rfc/rfc5147")) || (data27 === "http://tools.ietf.org/rfc/rfc6901")) || (data27 === "http://tools.ietf.org/rfc/rfc7111")) || (data27 === "http://tools.ietf.org/rfc/rfc8118")) || (data27 === "http://www.w3.org/TR/media-frags/")) || (data27 === "json-pointer")) || (data27 === "kg-node")) || (data27 === "media")) || (data27 === "pdf")) || (data27 === "quote")) || (data27 === "text"))){const err72 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/scheme",schemaPath:"#/properties/nodes/items/properties/provenance/properties/scheme/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.provenance.properties.scheme.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.provenance.properties.scheme.enum,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.scheme,data:data27};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data7.sha256 !== undefined){let data28 = data7.sha256;if(typeof data28 === "string"){if(!pattern19.test(data28)){const err73 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.provenance.properties.sha256,data:data28};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.properties.sha256.type,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.sha256,data:data28};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data7.node_sha256 !== undefined){let data29 = data7.node_sha256;if(typeof data29 === "string"){if(!pattern19.test(data29)){const err75 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/node_sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/node_sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.provenance.properties.node_sha256,data:data29};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/node_sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/node_sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.properties.node_sha256.type,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.node_sha256,data:data29};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}}if(data3.verified_scope !== undefined){let data30 = data3.verified_scope;if(!(((data30 === "fato") || (data30 === "mecanismo")) || (data30 === "nenhum"))){const err77 = {instancePath:instancePath+"/nodes/" + i0+"/verified_scope",schemaPath:"#/properties/nodes/items/properties/verified_scope/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.verified_scope.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.verified_scope.enum,parentSchema:schema31.properties.nodes.items.properties.verified_scope,data:data30};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data3.reverify_every !== undefined){let data31 = data3.reverify_every;if(typeof data31 !== "string"){const err78 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_every",schemaPath:"#/properties/nodes/items/properties/reverify_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.reverify_every.type,parentSchema:schema31.properties.nodes.items.properties.reverify_every,data:data31};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(typeof data31 === "string"){if(!pattern21.test(data31)){const err79 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_every",schemaPath:"#/properties/nodes/items/properties/reverify_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.reverify_every.allOf[0],data:data31};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}const _errs106 = errors;const _errs107 = errors;if(errors === _errs107){if(typeof data31 === "string"){if(!pattern22.test(data31)){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid46 = _errs107 === errors;if(valid46){const err82 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_every",schemaPath:"#/properties/nodes/items/properties/reverify_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.reverify_every.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.reverify_every.allOf[1],data:data31};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs106;if(vErrors !== null){if(_errs106){vErrors.length = _errs106;}else {vErrors = null;}}}}if(data3.reverify_on !== undefined){let data32 = data3.reverify_on;if(typeof data32 === "string"){if(func1(data32) < 1){const err83 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_on",schemaPath:"#/properties/nodes/items/properties/reverify_on/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.reverify_on,data:data32};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_on",schemaPath:"#/properties/nodes/items/properties/reverify_on/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.reverify_on.type,parentSchema:schema31.properties.nodes.items.properties.reverify_on,data:data32};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data3.retain_for !== undefined){let data33 = data3.retain_for;if(typeof data33 !== "string"){const err85 = {instancePath:instancePath+"/nodes/" + i0+"/retain_for",schemaPath:"#/properties/nodes/items/properties/retain_for/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.retain_for.type,parentSchema:schema31.properties.nodes.items.properties.retain_for,data:data33};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(typeof data33 === "string"){if(!pattern21.test(data33)){const err86 = {instancePath:instancePath+"/nodes/" + i0+"/retain_for",schemaPath:"#/properties/nodes/items/properties/retain_for/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.retain_for.allOf[0],data:data33};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}const _errs115 = errors;const _errs116 = errors;if(errors === _errs116){if(typeof data33 === "string"){if(!pattern22.test(data33)){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}var valid48 = _errs116 === errors;if(valid48){const err89 = {instancePath:instancePath+"/nodes/" + i0+"/retain_for",schemaPath:"#/properties/nodes/items/properties/retain_for/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.retain_for.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.retain_for.allOf[1],data:data33};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}}}if(data3.x_term !== undefined){let data34 = data3.x_term;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.pref === undefined){const err90 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/required",keyword:"required",params:{missingProperty: "pref"},message:"must have required property '"+"pref"+"'",schema:schema31.properties.nodes.items.properties.x_term.required,parentSchema:schema31.properties.nodes.items.properties.x_term,data:data34};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}for(const key4 in data34){const _errs120 = errors;if(typeof key4 === "string"){if(!pattern4.test(key4)){const err91 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[0],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}const _errs123 = errors;let valid51 = false;const _errs124 = errors;if(!((((((key4 === "definition") || (key4 === "labels")) || (key4 === "lang")) || (key4 === "notation")) || (key4 === "pref")) || (key4 === "scheme"))){const err92 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[0],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var _valid13 = _errs124 === errors;valid51 = valid51 || _valid13;const _errs125 = errors;if(typeof key4 === "string"){if(!pattern17.test(key4)){const err93 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[1],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var _valid13 = _errs125 === errors;valid51 = valid51 || _valid13;if(!valid51){const err94 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}}var valid49 = _errs120 === errors;if(!valid49){const err95 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames",keyword:"propertyNames",params:{propertyName: key4},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_term.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_term,data:data34};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data34.pref !== undefined){let data35 = data34.pref;if(typeof data35 === "string"){if(func1(data35) < 1){const err96 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/pref",schemaPath:"#/properties/nodes/items/properties/x_term/properties/pref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.pref,data:data35};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/pref",schemaPath:"#/properties/nodes/items/properties/x_term/properties/pref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.pref.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.pref,data:data35};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data34.lang !== undefined){let data36 = data34.lang;if(typeof data36 === "string"){if(!pattern27.test(data36)){const err98 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/lang",schemaPath:"#/properties/nodes/items/properties/x_term/properties/lang/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},message:"must match pattern \""+"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"+"\"",schema:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$",parentSchema:schema31.properties.nodes.items.properties.x_term.properties.lang,data:data36};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/lang",schemaPath:"#/properties/nodes/items/properties/x_term/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.lang.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.lang,data:data36};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data34.definition !== undefined){let data37 = data34.definition;if(typeof data37 === "string"){if(func1(data37) < 1){const err100 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/definition",schemaPath:"#/properties/nodes/items/properties/x_term/properties/definition/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.definition,data:data37};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/definition",schemaPath:"#/properties/nodes/items/properties/x_term/properties/definition/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.definition.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.definition,data:data37};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data34.notation !== undefined){let data38 = data34.notation;if(typeof data38 === "string"){if(func1(data38) < 1){const err102 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/notation",schemaPath:"#/properties/nodes/items/properties/x_term/properties/notation/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.notation,data:data38};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/notation",schemaPath:"#/properties/nodes/items/properties/x_term/properties/notation/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.notation.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.notation,data:data38};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data34.labels !== undefined){let data39 = data34.labels;if(Array.isArray(data39)){const len1 = data39.length;for(let i1=0; i1<len1; i1++){let data40 = data39[i1];const _errs140 = errors;let valid57 = true;const _errs141 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){let missing12;if((data40.reverify_every === undefined) && (missing12 = "reverify_every")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var _valid14 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid14){const _errs142 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.verified_at === undefined){const err105 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/allOf/0/then/required",keyword:"required",params:{missingProperty: "verified_at"},message:"must have required property '"+"verified_at"+"'",schema:schema32.allOf[0].then.required,parentSchema:schema32.allOf[0].then,data:data40};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}var _valid14 = _errs142 === errors;valid57 = _valid14;}if(!valid57){const err106 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema32.allOf[0].if,parentSchema:schema32.allOf[0],data:data40};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.literal === undefined){const err107 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/required",keyword:"required",params:{missingProperty: "literal"},message:"must have required property '"+"literal"+"'",schema:schema32.required,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(data40.kind === undefined){const err108 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'",schema:schema32.required,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data40.source === undefined){const err109 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'",schema:schema32.required,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}for(const key5 in data40){const _errs143 = errors;if(typeof key5 === "string"){if(!pattern4.test(key5)){const err110 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema32.propertyNames.allOf[0],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}const _errs146 = errors;let valid60 = false;const _errs147 = errors;if(!((((((((((key5 === "kind") || (key5 === "lang")) || (key5 === "literal")) || (key5 === "locator")) || (key5 === "retired")) || (key5 === "reverify_every")) || (key5 === "scope")) || (key5 === "source")) || (key5 === "verified_at")) || (key5 === "version"))){const err111 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema32.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema32.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema32.propertyNames.allOf[1].anyOf[0],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var _valid15 = _errs147 === errors;valid60 = valid60 || _valid15;const _errs148 = errors;if(typeof key5 === "string"){if(!pattern17.test(key5)){const err112 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema32.propertyNames.allOf[1].anyOf[1],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var _valid15 = _errs148 === errors;valid60 = valid60 || _valid15;if(!valid60){const err113 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema32.propertyNames.allOf[1].anyOf,parentSchema:schema32.propertyNames.allOf[1],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}var valid58 = _errs143 === errors;if(!valid58){const err114 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid",schema:schema32.propertyNames,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data40.literal !== undefined){let data41 = data40.literal;if(typeof data41 === "string"){if(func1(data41) < 1){const err115 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/literal",schemaPath:"#/$defs/termLabel/properties/literal/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.literal,data:data41};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/literal",schemaPath:"#/$defs/termLabel/properties/literal/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.literal.type,parentSchema:schema32.properties.literal,data:data41};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data40.kind !== undefined){let data42 = data40.kind;if(!((data42 === "alt") || (data42 === "hidden"))){const err117 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/kind",schemaPath:"#/$defs/termLabel/properties/kind/enum",keyword:"enum",params:{allowedValues: schema32.properties.kind.enum},message:"must be equal to one of the allowed values",schema:schema32.properties.kind.enum,parentSchema:schema32.properties.kind,data:data42};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data40.lang !== undefined){let data43 = data40.lang;if(typeof data43 === "string"){if(!pattern27.test(data43)){const err118 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/lang",schemaPath:"#/$defs/termLabel/properties/lang/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},message:"must match pattern \""+"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"+"\"",schema:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$",parentSchema:schema32.properties.lang,data:data43};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/lang",schemaPath:"#/$defs/termLabel/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.lang.type,parentSchema:schema32.properties.lang,data:data43};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data40.scope !== undefined){let data44 = data40.scope;const _errs157 = errors;let valid63 = true;const _errs158 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){let missing13;if((data44.level === undefined) && (missing13 = "level")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data44.level !== undefined){if("case" !== data44.level){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}var _valid16 = _errs158 === errors;errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}if(_valid16){const _errs160 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.case === undefined){const err122 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/allOf/0/then/required",keyword:"required",params:{missingProperty: "case"},message:"must have required property '"+"case"+"'",schema:schema32.properties.scope.allOf[0].then.required,parentSchema:schema32.properties.scope.allOf[0].then,data:data44};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid16 = _errs160 === errors;valid63 = _valid16;}if(!valid63){const err123 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema32.properties.scope.allOf[0].if,parentSchema:schema32.properties.scope.allOf[0],data:data44};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.level === undefined){const err124 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/required",keyword:"required",params:{missingProperty: "level"},message:"must have required property '"+"level"+"'",schema:schema32.properties.scope.required,parentSchema:schema32.properties.scope,data:data44};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}for(const key6 in data44){const _errs161 = errors;if(typeof key6 === "string"){if(!pattern4.test(key6)){const err125 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema32.properties.scope.propertyNames.allOf[0],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}const _errs164 = errors;let valid67 = false;const _errs165 = errors;if(!(((key6 === "case") || (key6 === "jurisdiction")) || (key6 === "level"))){const err126 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema32.properties.scope.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema32.properties.scope.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema32.properties.scope.propertyNames.allOf[1].anyOf[0],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid17 = _errs165 === errors;valid67 = valid67 || _valid17;const _errs166 = errors;if(typeof key6 === "string"){if(!pattern17.test(key6)){const err127 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema32.properties.scope.propertyNames.allOf[1].anyOf[1],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}var _valid17 = _errs166 === errors;valid67 = valid67 || _valid17;if(!valid67){const err128 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema32.properties.scope.propertyNames.allOf[1].anyOf,parentSchema:schema32.properties.scope.propertyNames.allOf[1],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}var valid65 = _errs161 === errors;if(!valid65){const err129 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames",keyword:"propertyNames",params:{propertyName: key6},message:"property name must be valid",schema:schema32.properties.scope.propertyNames,parentSchema:schema32.properties.scope,data:data44};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data44.level !== undefined){let data46 = data44.level;if(!((data46 === "case") || (data46 === "domain"))){const err130 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/level",schemaPath:"#/$defs/termLabel/properties/scope/properties/level/enum",keyword:"enum",params:{allowedValues: schema32.properties.scope.properties.level.enum},message:"must be equal to one of the allowed values",schema:schema32.properties.scope.properties.level.enum,parentSchema:schema32.properties.scope.properties.level,data:data46};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data44.case !== undefined){let data47 = data44.case;if(typeof data47 === "string"){if(func1(data47) < 1){const err131 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/case",schemaPath:"#/$defs/termLabel/properties/scope/properties/case/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.scope.properties.case,data:data47};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}else {const err132 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/case",schemaPath:"#/$defs/termLabel/properties/scope/properties/case/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.scope.properties.case.type,parentSchema:schema32.properties.scope.properties.case,data:data47};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data44.jurisdiction !== undefined){let data48 = data44.jurisdiction;if(typeof data48 === "string"){if(func1(data48) < 1){const err133 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/jurisdiction",schemaPath:"#/$defs/termLabel/properties/scope/properties/jurisdiction/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.scope.properties.jurisdiction,data:data48};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/jurisdiction",schemaPath:"#/$defs/termLabel/properties/scope/properties/jurisdiction/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.scope.properties.jurisdiction.type,parentSchema:schema32.properties.scope.properties.jurisdiction,data:data48};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema32.properties.scope.type,parentSchema:schema32.properties.scope,data:data44};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data40.source !== undefined){let data49 = data40.source;if(typeof data49 === "string"){if(func1(data49) < 1){const err136 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/source",schemaPath:"#/$defs/termLabel/properties/source/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.source,data:data49};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/source",schemaPath:"#/$defs/termLabel/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.source.type,parentSchema:schema32.properties.source,data:data49};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data40.locator !== undefined){let data50 = data40.locator;if(typeof data50 === "string"){if(func1(data50) < 1){const err138 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/locator",schemaPath:"#/$defs/termLabel/properties/locator/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.locator,data:data50};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}else {const err139 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/locator",schemaPath:"#/$defs/termLabel/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.locator.type,parentSchema:schema32.properties.locator,data:data50};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data40.version !== undefined){let data51 = data40.version;if(typeof data51 === "string"){if(func1(data51) < 1){const err140 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/version",schemaPath:"#/$defs/termLabel/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.version,data:data51};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/version",schemaPath:"#/$defs/termLabel/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.version.type,parentSchema:schema32.properties.version,data:data51};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data40.verified_at !== undefined){let data52 = data40.verified_at;if(typeof data52 === "string"){if(!(formats0.test(data52))){const err142 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/verified_at",schemaPath:"#/$defs/termLabel/properties/verified_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema32.properties.verified_at,data:data52};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}else {const err143 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/verified_at",schemaPath:"#/$defs/termLabel/properties/verified_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.verified_at.type,parentSchema:schema32.properties.verified_at,data:data52};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data40.reverify_every !== undefined){let data53 = data40.reverify_every;if(typeof data53 !== "string"){const err144 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/reverify_every",schemaPath:"#/$defs/termLabel/properties/reverify_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.reverify_every.type,parentSchema:schema32.properties.reverify_every,data:data53};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(typeof data53 === "string"){if(!pattern21.test(data53)){const err145 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/reverify_every",schemaPath:"#/$defs/termLabel/properties/reverify_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema32.properties.reverify_every.allOf[0],data:data53};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}const _errs184 = errors;const _errs185 = errors;if(errors === _errs185){if(typeof data53 === "string"){if(!pattern22.test(data53)){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid70 = _errs185 === errors;if(valid70){const err148 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/reverify_every",schemaPath:"#/$defs/termLabel/properties/reverify_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema32.properties.reverify_every.allOf[1].not,parentSchema:schema32.properties.reverify_every.allOf[1],data:data53};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}}}if(data40.retired !== undefined){let data54 = data40.retired;if(typeof data54 !== "boolean"){const err149 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/retired",schemaPath:"#/$defs/termLabel/properties/retired/type",keyword:"type",params:{type: "boolean"},message:"must be boolean",schema:schema32.properties.retired.type,parentSchema:schema32.properties.retired,data:data54};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema32.type,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}else {const err151 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels",schemaPath:"#/properties/nodes/items/properties/x_term/properties/labels/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.items.properties.x_term.properties.labels.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.labels,data:data39};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data34.scheme !== undefined){let data55 = data34.scheme;if(typeof data55 === "string"){if(!pattern35.test(data55)){const err152 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/scheme",schemaPath:"#/properties/nodes/items/properties/x_term/properties/scheme/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9-]*$"+"\"",schema:"^[a-z0-9][a-z0-9-]*$",parentSchema:schema31.properties.nodes.items.properties.x_term.properties.scheme,data:data55};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/scheme",schemaPath:"#/properties/nodes/items/properties/x_term/properties/scheme/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.scheme.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.scheme,data:data55};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_term.type,parentSchema:schema31.properties.nodes.items.properties.x_term,data:data34};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data3.x_mirror !== undefined){let data56 = data3.x_mirror;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.system === undefined){const err155 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "system"},message:"must have required property '"+"system"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data56.ref === undefined){const err156 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "ref"},message:"must have required property '"+"ref"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data56.state === undefined){const err157 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data56.synced_at === undefined){const err158 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "synced_at"},message:"must have required property '"+"synced_at"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}for(const key7 in data56){const _errs193 = errors;if(typeof key7 === "string"){if(!pattern4.test(key7)){const err159 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[0],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}const _errs196 = errors;let valid73 = false;const _errs197 = errors;if(!((((((key7 === "ref") || (key7 === "resync_every")) || (key7 === "state")) || (key7 === "synced_at")) || (key7 === "system")) || (key7 === "url"))){const err160 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[0],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var _valid18 = _errs197 === errors;valid73 = valid73 || _valid18;const _errs198 = errors;if(typeof key7 === "string"){if(!pattern17.test(key7)){const err161 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[1],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}var _valid18 = _errs198 === errors;valid73 = valid73 || _valid18;if(!valid73){const err162 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}var valid71 = _errs193 === errors;if(!valid71){const err163 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames",keyword:"propertyNames",params:{propertyName: key7},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_mirror.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data56.system !== undefined){let data57 = data56.system;if(typeof data57 === "string"){if(func1(data57) < 1){const err164 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/system",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/system/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.system,data:data57};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/system",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/system/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.system.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.system,data:data57};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data56.ref !== undefined){let data58 = data56.ref;if(typeof data58 === "string"){if(func1(data58) < 1){const err166 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/ref",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.ref,data:data58};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/ref",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.ref.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.ref,data:data58};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data56.synced_at !== undefined){let data59 = data56.synced_at;if(typeof data59 === "string"){if(!(formats0.test(data59))){const err168 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/synced_at",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/synced_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.synced_at,data:data59};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/synced_at",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/synced_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.synced_at.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.synced_at,data:data59};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data56.url !== undefined){let data60 = data56.url;if(typeof data60 === "string"){if(func1(data60) < 1){const err170 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/url",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.url,data:data60};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/url",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.url.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.url,data:data60};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data56.resync_every !== undefined){let data61 = data56.resync_every;if(typeof data61 !== "string"){const err172 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/resync_every",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/resync_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every,data:data61};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(typeof data61 === "string"){if(!pattern21.test(data61)){const err173 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/resync_every",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/resync_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.allOf[0],data:data61};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}const _errs211 = errors;const _errs212 = errors;if(errors === _errs212){if(typeof data61 === "string"){if(!pattern22.test(data61)){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}else {const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}var valid76 = _errs212 === errors;if(valid76){const err176 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/resync_every",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/resync_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.allOf[1],data:data61};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {errors = _errs211;if(vErrors !== null){if(_errs211){vErrors.length = _errs211;}else {vErrors = null;}}}}if(data56.state !== undefined){let data62 = data56.state;if(typeof data62 === "string"){if(func1(data62) < 1){const err177 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/state",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/state/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.state,data:data62};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/state",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.state.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.state,data:data62};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_mirror.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data3.x_doc_cycle !== undefined){let data63 = data3.x_doc_cycle;const _errs219 = errors;let valid78 = true;const _errs220 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){let missing14;if((data63.recheck_every === undefined) && (missing14 = "recheck_every")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}var _valid19 = _errs220 === errors;errors = _errs219;if(vErrors !== null){if(_errs219){vErrors.length = _errs219;}else {vErrors = null;}}if(_valid19){const _errs221 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.checked_at === undefined){const err181 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/allOf/0/then/required",keyword:"required",params:{missingProperty: "checked_at"},message:"must have required property '"+"checked_at"+"'",schema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0].then.required,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0].then,data:data63};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}var _valid19 = _errs221 === errors;valid78 = _valid19;}if(!valid78){const err182 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0].if,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0],data:data63};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.issuer === undefined){const err183 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/required",keyword:"required",params:{missingProperty: "issuer"},message:"must have required property '"+"issuer"+"'",schema:schema31.properties.nodes.items.properties.x_doc_cycle.required,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data63.state === undefined){const err184 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'",schema:schema31.properties.nodes.items.properties.x_doc_cycle.required,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}for(const key8 in data63){const _errs222 = errors;if(typeof key8 === "string"){if(!pattern4.test(key8)){const err185 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[0],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}const _errs225 = errors;let valid81 = false;const _errs226 = errors;if(!(((((((((key8 === "checked_at") || (key8 === "effective_from")) || (key8 === "effective_to")) || (key8 === "issuer")) || (key8 === "recheck_every")) || (key8 === "ref")) || (key8 === "state")) || (key8 === "updated_at")) || (key8 === "version"))){const err186 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[0],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var _valid20 = _errs226 === errors;valid81 = valid81 || _valid20;const _errs227 = errors;if(typeof key8 === "string"){if(!pattern17.test(key8)){const err187 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[1],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var _valid20 = _errs227 === errors;valid81 = valid81 || _valid20;if(!valid81){const err188 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}else {errors = _errs225;if(vErrors !== null){if(_errs225){vErrors.length = _errs225;}else {vErrors = null;}}}var valid79 = _errs222 === errors;if(!valid79){const err189 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames",keyword:"propertyNames",params:{propertyName: key8},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data63.issuer !== undefined){let data64 = data63.issuer;if(typeof data64 === "string"){if(func1(data64) < 1){const err190 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/issuer",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/issuer/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.issuer,data:data64};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}else {const err191 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/issuer",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/issuer/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.issuer.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.issuer,data:data64};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data63.ref !== undefined){let data65 = data63.ref;if(typeof data65 === "string"){if(func1(data65) < 1){const err192 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/ref",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.ref,data:data65};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/ref",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.ref.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.ref,data:data65};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data63.version !== undefined){let data66 = data63.version;if(typeof data66 === "string"){if(func1(data66) < 1){const err194 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/version",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.version,data:data66};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/version",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.version.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.version,data:data66};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data63.state !== undefined){let data67 = data63.state;if(!(((((((data67 === "draft") || (data67 === "enacted")) || (data67 === "expired")) || (data67 === "in_force")) || (data67 === "revoked")) || (data67 === "superseded")) || (data67 === "suspended"))){const err196 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/state",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/state/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_doc_cycle.properties.state.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.state.enum,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.state,data:data67};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data63.effective_from !== undefined){let data68 = data63.effective_from;if(typeof data68 === "string"){if(!(formats0.test(data68))){const err197 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_from",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_from/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_from,data:data68};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}else {const err198 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_from",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_from/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_from.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_from,data:data68};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data63.effective_to !== undefined){let data69 = data63.effective_to;if(typeof data69 === "string"){if(!(formats0.test(data69))){const err199 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_to",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_to/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_to,data:data69};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_to",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_to/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_to.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_to,data:data69};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data63.updated_at !== undefined){let data70 = data63.updated_at;if(typeof data70 === "string"){if(!(formats0.test(data70))){const err201 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/updated_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/updated_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.updated_at,data:data70};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/updated_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.updated_at.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.updated_at,data:data70};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data63.checked_at !== undefined){let data71 = data63.checked_at;if(typeof data71 === "string"){if(!(formats0.test(data71))){const err203 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/checked_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/checked_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.checked_at,data:data71};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}else {const err204 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/checked_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/checked_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.checked_at.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.checked_at,data:data71};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data63.recheck_every !== undefined){let data72 = data63.recheck_every;if(typeof data72 !== "string"){const err205 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/recheck_every",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/recheck_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every,data:data72};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(typeof data72 === "string"){if(!pattern21.test(data72)){const err206 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/recheck_every",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/recheck_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.allOf[0],data:data72};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}const _errs247 = errors;const _errs248 = errors;if(errors === _errs248){if(typeof data72 === "string"){if(!pattern22.test(data72)){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}else {const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var valid84 = _errs248 === errors;if(valid84){const err209 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/recheck_every",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/recheck_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.allOf[1],data:data72};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}else {errors = _errs247;if(vErrors !== null){if(_errs247){vErrors.length = _errs247;}else {vErrors = null;}}}}}else {const err210 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_doc_cycle.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data3.x_questionnaire !== undefined){let data73 = data3.x_questionnaire;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.name === undefined){const err211 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'",schema:schema31.properties.nodes.items.properties.x_questionnaire.required,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data73.questions === undefined){const err212 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/required",keyword:"required",params:{missingProperty: "questions"},message:"must have required property '"+"questions"+"'",schema:schema31.properties.nodes.items.properties.x_questionnaire.required,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}for(const key9 in data73){const _errs252 = errors;if(typeof key9 === "string"){if(!pattern4.test(key9)){const err213 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[0],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}const _errs255 = errors;let valid87 = false;const _errs256 = errors;if(!((((((key9 === "answer_draft") || (key9 === "answered_at")) || (key9 === "name")) || (key9 === "questions")) || (key9 === "role")) || (key9 === "verdict"))){const err214 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[0],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var _valid21 = _errs256 === errors;valid87 = valid87 || _valid21;const _errs257 = errors;if(typeof key9 === "string"){if(!pattern17.test(key9)){const err215 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[1],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}var _valid21 = _errs257 === errors;valid87 = valid87 || _valid21;if(!valid87){const err216 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}else {errors = _errs255;if(vErrors !== null){if(_errs255){vErrors.length = _errs255;}else {vErrors = null;}}}var valid85 = _errs252 === errors;if(!valid85){const err217 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames",keyword:"propertyNames",params:{propertyName: key9},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data73.name !== undefined){let data74 = data73.name;if(typeof data74 === "string"){if(func1(data74) < 1){const err218 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/name",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.name,data:data74};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/name",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.name.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.name,data:data74};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data73.questions !== undefined){let data75 = data73.questions;if(Array.isArray(data75)){if(data75.length < 1){const err220 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions,data:data75};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}const len2 = data75.length;for(let i2=0; i2<len2; i2++){let data76 = data75[i2];if(typeof data76 === "string"){if(func1(data76) < 1){const err221 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions/" + i2,schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.items,data:data76};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}else {const err222 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions/" + i2,schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/items/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.items.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.items,data:data76};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions,data:data75};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data73.answer_draft !== undefined){let data77 = data73.answer_draft;if(typeof data77 === "string"){if(func1(data77) < 1){const err224 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answer_draft",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answer_draft/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answer_draft,data:data77};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}else {const err225 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answer_draft",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answer_draft/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answer_draft.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answer_draft,data:data77};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data73.verdict !== undefined){let data78 = data73.verdict;if(!(((((data78 === "does_not_meet") || (data78 === "meets")) || (data78 === "not_applicable")) || (data78 === "partial")) || (data78 === "unknown"))){const err226 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/verdict",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/verdict/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_questionnaire.properties.verdict.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.verdict.enum,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.verdict,data:data78};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data73.answered_at !== undefined){let data79 = data73.answered_at;if(typeof data79 === "string"){if(!(formats0.test(data79))){const err227 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answered_at",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answered_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answered_at,data:data79};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answered_at",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answered_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answered_at.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answered_at,data:data79};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data73.role !== undefined){let data80 = data73.role;if(!(((data80 === "evidence_request") || (data80 === "evidence_requirement")) || (data80 === "item"))){const err229 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/role",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/role/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_questionnaire.properties.role.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.role.enum,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.role,data:data80};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}}else {const err230 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_questionnaire.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data3.x_severity !== undefined){let data81 = data3.x_severity;if(!(((((data81 === "critical") || (data81 === "high")) || (data81 === "info")) || (data81 === "low")) || (data81 === "medium"))){const err231 = {instancePath:instancePath+"/nodes/" + i0+"/x_severity",schemaPath:"#/properties/nodes/items/properties/x_severity/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_severity.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_severity.enum,parentSchema:schema31.properties.nodes.items.properties.x_severity,data:data81};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data3.x_criterion !== undefined){let data82 = data3.x_criterion;const _errs274 = errors;let valid92 = true;const _errs275 = errors;if(errors === _errs275){if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing15;if((data82.ref === undefined) && (missing15 = "ref")){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}else {const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}var _valid22 = _errs275 === errors;errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}if(_valid22){const _errs277 = errors;const _errs278 = errors;const _errs279 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing16;if((data82.text === undefined) && (missing16 = "text")){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}var valid93 = _errs279 === errors;if(valid93){const err235 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[0].then.not,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[0].then,data:data82};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {errors = _errs278;if(vErrors !== null){if(_errs278){vErrors.length = _errs278;}else {vErrors = null;}}}var _valid22 = _errs277 === errors;valid92 = _valid22;}if(!valid92){const err236 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[0].if,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[0],data:data82};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const _errs281 = errors;let valid94 = true;const _errs282 = errors;if(!(data82 && typeof data82 == "object" && !Array.isArray(data82))){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}const _errs284 = errors;const _errs285 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing17;if((data82.ref === undefined) && (missing17 = "ref")){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}var valid95 = _errs285 === errors;if(valid95){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {errors = _errs284;if(vErrors !== null){if(_errs284){vErrors.length = _errs284;}else {vErrors = null;}}}var _valid23 = _errs282 === errors;errors = _errs281;if(vErrors !== null){if(_errs281){vErrors.length = _errs281;}else {vErrors = null;}}if(_valid23){const _errs286 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.text === undefined){const err240 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/1/then/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[1].then.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[1].then,data:data82};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}var _valid23 = _errs286 === errors;valid94 = _valid23;}if(!valid94){const err241 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[1].if,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[1],data:data82};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}const _errs288 = errors;let valid96 = true;const _errs289 = errors;if(errors === _errs289){if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing18;if((data82.amends === undefined) && (missing18 = "amends")){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}else {const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}var _valid24 = _errs289 === errors;errors = _errs288;if(vErrors !== null){if(_errs288){vErrors.length = _errs288;}else {vErrors = null;}}if(_valid24){const _errs291 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.reason === undefined){const err244 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/2/then/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[2].then.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[2].then,data:data82};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}var _valid24 = _errs291 === errors;valid96 = _valid24;}if(!valid96){const err245 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[2].if,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[2],data:data82};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.id === undefined){const err246 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data82.version === undefined){const err247 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data82.registered_at === undefined){const err248 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "registered_at"},message:"must have required property '"+"registered_at"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data82.sha256 === undefined){const err249 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}for(const key10 in data82){const _errs292 = errors;if(typeof key10 === "string"){if(!pattern4.test(key10)){const err250 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[0],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}const _errs295 = errors;let valid99 = false;const _errs296 = errors;if(!(((((((((key10 === "amends") || (key10 === "id")) || (key10 === "reason")) || (key10 === "ref")) || (key10 === "registered_at")) || (key10 === "round")) || (key10 === "sha256")) || (key10 === "text")) || (key10 === "version"))){const err251 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[0],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}var _valid25 = _errs296 === errors;valid99 = valid99 || _valid25;const _errs297 = errors;if(typeof key10 === "string"){if(!pattern17.test(key10)){const err252 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[1],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}var _valid25 = _errs297 === errors;valid99 = valid99 || _valid25;if(!valid99){const err253 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}else {errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}}var valid97 = _errs292 === errors;if(!valid97){const err254 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames",keyword:"propertyNames",params:{propertyName: key10},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_criterion.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data82.id !== undefined){let data83 = data82.id;if(typeof data83 === "string"){if(func1(data83) < 1){const err255 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/id",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.id,data:data83};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}else {const err256 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/id",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.id.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.id,data:data83};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}if(data82.version !== undefined){let data84 = data82.version;if((typeof data84 !== "string") && (!((typeof data84 == "number") && (!(data84 % 1) && !isNaN(data84))))){const err257 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/version",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/version/type",keyword:"type",params:{type: schema31.properties.nodes.items.properties.x_criterion.properties.version.type},message:"must be string,integer",schema:schema31.properties.nodes.items.properties.x_criterion.properties.version.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.version,data:data84};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(typeof data84 === "string"){if(func1(data84) < 1){const err258 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/version",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.version,data:data84};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}}if(data82.registered_at !== undefined){let data85 = data82.registered_at;if(typeof data85 === "string"){if(!pattern48.test(data85)){const err259 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/registered_at",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/registered_at/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},message:"must match pattern \""+"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"+"\"",schema:"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$",parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.registered_at,data:data85};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}else {const err260 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/registered_at",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/registered_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.registered_at.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.registered_at,data:data85};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data82.sha256 !== undefined){let data86 = data82.sha256;if(typeof data86 === "string"){if(!pattern19.test(data86)){const err261 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/sha256",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.sha256,data:data86};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}else {const err262 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/sha256",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.sha256.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.sha256,data:data86};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data82.ref !== undefined){let data87 = data82.ref;if(typeof data87 === "string"){if(func1(data87) < 1){const err263 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/ref",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.ref,data:data87};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/ref",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.ref.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.ref,data:data87};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data82.text !== undefined){let data88 = data82.text;if(typeof data88 === "string"){if(func1(data88) < 1){const err265 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/text",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.text,data:data88};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}else {const err266 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/text",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.text.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.text,data:data88};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}if(data82.amends !== undefined){let data89 = data82.amends;if(typeof data89 === "string"){if(func1(data89) < 1){const err267 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/amends",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/amends/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.amends,data:data89};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}else {const err268 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/amends",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/amends/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.amends.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.amends,data:data89};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}}if(data82.reason !== undefined){let data90 = data82.reason;if(typeof data90 === "string"){if(func1(data90) < 1){const err269 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/reason",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.reason,data:data90};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}else {const err270 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/reason",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.reason.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.reason,data:data90};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}if(data82.round !== undefined){let data91 = data82.round;if(typeof data91 === "string"){if(func1(data91) < 1){const err271 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/round",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/round/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.round,data:data91};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/round",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/round/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.round.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.round,data:data91};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}else {const err273 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_criterion.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}if(data3.x_measured_under !== undefined){let data92 = data3.x_measured_under;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if(data92.measured_at === undefined){const err274 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/required",keyword:"required",params:{missingProperty: "measured_at"},message:"must have required property '"+"measured_at"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(data92.criteria === undefined){const err275 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/required",keyword:"required",params:{missingProperty: "criteria"},message:"must have required property '"+"criteria"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}for(const key11 in data92){const _errs318 = errors;if(typeof key11 === "string"){if(!pattern4.test(key11)){const err276 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[0],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}const _errs321 = errors;let valid103 = false;const _errs322 = errors;if(!(((((key11 === "criteria") || (key11 === "measured_at")) || (key11 === "round")) || (key11 === "subject")) || (key11 === "verdict"))){const err277 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[0],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid26 = _errs322 === errors;valid103 = valid103 || _valid26;const _errs323 = errors;if(typeof key11 === "string"){if(!pattern17.test(key11)){const err278 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[1],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}var _valid26 = _errs323 === errors;valid103 = valid103 || _valid26;if(!valid103){const err279 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}else {errors = _errs321;if(vErrors !== null){if(_errs321){vErrors.length = _errs321;}else {vErrors = null;}}}var valid101 = _errs318 === errors;if(!valid101){const err280 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames",keyword:"propertyNames",params:{propertyName: key11},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data92.measured_at !== undefined){let data93 = data92.measured_at;if(typeof data93 === "string"){if(!pattern48.test(data93)){const err281 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/measured_at",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/measured_at/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},message:"must match pattern \""+"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"+"\"",schema:"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.measured_at,data:data93};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}else {const err282 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/measured_at",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/measured_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.measured_at.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.measured_at,data:data93};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}if(data92.criteria !== undefined){let data94 = data92.criteria;if(Array.isArray(data94)){if(data94.length < 1){const err283 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria,data:data94};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}const len3 = data94.length;for(let i3=0; i3<len3; i3++){let data95 = data94[i3];if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.criterion === undefined){const err284 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/required",keyword:"required",params:{missingProperty: "criterion"},message:"must have required property '"+"criterion"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data95.sha256 === undefined){const err285 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}for(const key12 in data95){const _errs330 = errors;if(typeof key12 === "string"){if(!pattern4.test(key12)){const err286 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[0],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}const _errs333 = errors;let valid109 = false;const _errs334 = errors;if(!((key12 === "criterion") || (key12 === "sha256"))){const err287 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[0],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}var _valid27 = _errs334 === errors;valid109 = valid109 || _valid27;const _errs335 = errors;if(typeof key12 === "string"){if(!pattern17.test(key12)){const err288 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[1],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}var _valid27 = _errs335 === errors;valid109 = valid109 || _valid27;if(!valid109){const err289 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs333;if(vErrors !== null){if(_errs333){vErrors.length = _errs333;}else {vErrors = null;}}}var valid107 = _errs330 === errors;if(!valid107){const err290 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames",keyword:"propertyNames",params:{propertyName: key12},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data95.criterion !== undefined){let data96 = data95.criterion;if(typeof data96 === "string"){if(func1(data96) < 1){const err291 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/criterion",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/criterion/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.criterion,data:data96};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}else {const err292 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/criterion",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/criterion/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.criterion.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.criterion,data:data96};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}if(data95.sha256 !== undefined){let data97 = data95.sha256;if(typeof data97 === "string"){if(!pattern19.test(data97)){const err293 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/sha256",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.sha256,data:data97};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}else {const err294 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/sha256",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.sha256.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.sha256,data:data97};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}}else {const err295 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}else {const err296 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria,data:data94};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}if(data92.subject !== undefined){let data98 = data92.subject;if(!(data98 && typeof data98 == "object" && !Array.isArray(data98))){const err297 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/subject",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/subject/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.subject.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.subject,data:data98};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(data92.verdict !== undefined){let data99 = data92.verdict;if(typeof data99 === "string"){if(func1(data99) < 1){const err298 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/verdict",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/verdict/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.verdict,data:data99};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}else {const err299 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/verdict",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/verdict/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.verdict.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.verdict,data:data99};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(data92.round !== undefined){let data100 = data92.round;if(typeof data100 === "string"){if(func1(data100) < 1){const err300 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/round",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/round/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.round,data:data100};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}else {const err301 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/round",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/round/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.round.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.round,data:data100};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}else {const err302 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_measured_under.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}}else {const err303 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.type,parentSchema:schema31.properties.nodes.items,data:data3};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.type,parentSchema:schema31.properties.nodes,data:data2};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data.edges !== undefined){let data101 = data.edges;if(Array.isArray(data101)){const len4 = data101.length;for(let i4=0; i4<len4; i4++){let data102 = data101[i4];if(data102 && typeof data102 == "object" && !Array.isArray(data102)){for(const key13 in data102){const _errs350 = errors;if(typeof key13 === "string"){if(!pattern4.test(key13)){const err305 = {instancePath:instancePath+"/edges/" + i4,schemaPath:"#/properties/edges/items/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.edges.items.propertyNames,data:key13,propertyName:key13};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}var valid113 = _errs350 === errors;if(!valid113){const err306 = {instancePath:instancePath+"/edges/" + i4,schemaPath:"#/properties/edges/items/propertyNames",keyword:"propertyNames",params:{propertyName: key13},message:"property name must be valid",schema:schema31.properties.edges.items.propertyNames,parentSchema:schema31.properties.edges.items,data:data102};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}if(data102.x_confidence !== undefined){let data103 = data102.x_confidence;if(typeof data103 == "number"){if(data103 > 1 || isNaN(data103)){const err307 = {instancePath:instancePath+"/edges/" + i4+"/x_confidence",schemaPath:"#/properties/edges/items/properties/x_confidence/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1",schema:1,parentSchema:schema31.properties.edges.items.properties.x_confidence,data:data103};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data103 < 0 || isNaN(data103)){const err308 = {instancePath:instancePath+"/edges/" + i4+"/x_confidence",schemaPath:"#/properties/edges/items/properties/x_confidence/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0",schema:0,parentSchema:schema31.properties.edges.items.properties.x_confidence,data:data103};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {instancePath:instancePath+"/edges/" + i4+"/x_confidence",schemaPath:"#/properties/edges/items/properties/x_confidence/type",keyword:"type",params:{type: "number"},message:"must be number",schema:schema31.properties.edges.items.properties.x_confidence.type,parentSchema:schema31.properties.edges.items.properties.x_confidence,data:data103};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(data102.x_provisional !== undefined){let data104 = data102.x_provisional;if(typeof data104 !== "boolean"){const err310 = {instancePath:instancePath+"/edges/" + i4+"/x_provisional",schemaPath:"#/properties/edges/items/properties/x_provisional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean",schema:schema31.properties.edges.items.properties.x_provisional.type,parentSchema:schema31.properties.edges.items.properties.x_provisional,data:data104};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}}else {const err311 = {instancePath:instancePath+"/edges/" + i4,schemaPath:"#/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.edges.items.type,parentSchema:schema31.properties.edges.items,data:data102};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}else {const err312 = {instancePath:instancePath+"/edges",schemaPath:"#/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.edges.type,parentSchema:schema31.properties.edges,data:data101};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}}else {const err313 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.type,parentSchema:schema31,data};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"meta":true,"nodes":true,"edges":true},"dynamicProps":false,"dynamicItems":false};
|
|
1
|
+
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:kg-ssot:spec:kg-contract-v4.should.schema.json","title":"kg.yaml — contrato v4, nível SHOULD","description":"O contrato v4 do .kg.yaml, nível SHOULD (alerta, não reprova), o vigente. É o SHOULD v3 menos o que o v4 promoveu a MUST: a chave desconhecida sem x_ no topo, no meta, no nó e na aresta e o nó confirmed ou PROD sem provenance. Segue alertando: nome de chave que não é slug ([A-Za-z_][A-Za-z0-9_-]*), como form.pattern.<escopo>.key, que sem x_ também reprova no MUST; nó PROD sem verified_at; label do nó acima de 280 caracteres, form.range.node.label, porque a narrativa vai para narrative; a chave desconhecida dentro de provenance, fechada em source, locator, method e x_; e o grafo sem nós (nodes: []), como form.range.top.nodes: é válido, como o primeiro uso de um app, mas o aviso pega o parse que falhou em silêncio. No v4, provenance.method alerta (form.pattern.node.provenance.method) quando não segue a forma canônica '<classe>: <detalhe>', com a classe em medição, leitura, juízes, derivado, testemunho; reprova no v5. Medição feita por terceiro e lida pelo autor do grafo é testemunho. No v4.1 entram quatro avisos que o próprio arquivo decide. O schema acusa a claim com verified_at e sem verified_against (form.required.node.verified_against): carimbo sem alvo não distingue verificado de declarado. Só a claim: evidence é a própria âncora, artifact nomeia o alvo, question não afirma e a origem da decision é cobrada por integrity.untraced-decision. O leitor acusa três avisos que cruzam campos ou arestas, por isso não cabem no schema: integrity.testimony-in-prod (nó PROD cuja base é testemunho), integrity.verified-before-fact (verified_at anterior a valid_from) e integrity.untraced-decision (decision viva sem trace, sem provenance e sem aresta TRACES_TO saindo dela). No v4.2 entra provenance.locality, opcional, com o enum repo (arquivo versionado no próprio repo), web (endereço público), host (só existe numa máquina: journal local, caminho fora do repo) ou pessoa (relato de alguém): o valor fora do enum alerta como form.enum.node.provenance.locality. Serve para medir o que é reverificável por terceiros e para barrar host na publicação. No v4.4 entra o quarto aviso do leitor, integrity.refutes-unreconciled: nó que recebe REFUTES e segue vivo (nem superseded nem refuted; a question done já está respondida, e não alerta). O grafo afirma e refuta a mesma coisa; o radar do framework onde o formato nasceu reprova o caso como contradição. Aqui é SHOULD agora e vira MUST numa versão futura, depois que os adotantes medirem a própria dívida. No v4.5, provenance.locality ganha privado: documento fora do repo, não público e reverificável por quem tem acesso (Google Drive, wiki interna); o valor segue onde está a cópia lida, não a classificação do documento. Entra verified_scope, opcional, com o enum fato (o que o nó afirma foi conferido), mecanismo (só o mecanismo, como código ou configuração; o fato depende de outro ambiente) ou nenhum (conferido contra o repo na data, e nada ali sustenta nem refuta o fato): o valor fora do enum alerta como form.enum.node.verified_scope, e verified_scope sem verified_at alerta como form.required.node.verified_at. O leitor passa a contar para integrity.refutes-unreconciled a REFUTES que chega a um nó vivo pelas external_edges, quando tem o corpus. No v4.8, reverify_every e retain_for alertam fora da duração ISO 8601 só com data, ou zerada como P0D (form.pattern.node.reverify_every, form.pattern.node.retain_for), reverify_on vazio ou fora de texto alerta, e reverify_every sem verified_at alerta como form.required.node.verified_at: a cadência conta a partir do carimbo. No v4.9, reverify_every sem verified_at deixa de alertar: é o estado inicial de uma regra de coleta, cadência definida e nenhuma verificação ainda, e quem o lista é o relatório de vencimento (kg_validate.py --due, na lista unstamped), fora do veredito. O nó PROD sem verified_at segue alertando. No v4.11 entram os perfis canônicos das chaves x_ que se repetem nos adotantes, julgados só quando a chave está presente e nunca no MUST. No nó: x_term, o termo de um vocabulário de domínio, com pref (o termo preferido, o prefLabel do SKOS) e labels, a lista de sinônimos como objetos com literal, kind (alt ou hidden, o altLabel e o hiddenLabel do SKOS), source, locator, version (a versão do documento de onde veio), verified_at, reverify_every, scope (level domain ou case, com case quando o nível é case, e jurisdiction) e retired (booleano: o sinônimo aposentado); o termo aposentado é o nó com status superseded e a aresta SUPERSEDES do termo novo. x_mirror, a cópia de um registro de outro sistema (system, ref, state e synced_at, com resync_every e url opcionais). x_doc_cycle, o ciclo de vida de um documento externo (issuer e state em draft, enacted (publicado, com vigência futura em effective_from), in_force, suspended, revoked, expired ou superseded; ref, version, effective_from, effective_to, updated_at, checked_at e recheck_every opcionais). x_questionnaire, o elo com um questionário externo (name e questions não vazia; answer_draft, verdict em meets, partial, does_not_meet, not_applicable ou unknown, e answered_at; desde o v4.13, role em item (o padrão: a pergunta do questionário ou a resposta a ela) evidence_request (o pedido de evidência a uma pessoa, que cita os itens a que serve) ou evidence_requirement (a evidência que os itens exigem)). x_severity, em critical, high, medium, low ou info. Na aresta: x_confidence, de 0 a 1, e x_provisional, booleano. Dentro de um perfil, a chave desconhecida sem x_ alerta como form.unknown-key, e um item de lista dentro do nó leva o caminho no código (form.type.node.x_term.labels.item). No meta, o slug fora da forma em minúsculas com hífen alerta como form.pattern.meta.slug. Os valores de enum são códigos, em inglês, em qualquer língua da saída. Nenhum perfil usa a chave status aninhada: o radar do framework onde o formato nasceu lê status em qualquer nível como o status do nó, e o sinônimo aposentado é retired: true. No v4.12 entram os dois perfis do critério pré-registrado, que fazem da troca da régua depois de ver o dado uma emenda datada em vez de uma reescrita. x_criterion, no nó do critério (um nó por versão): id (o id estável entre as versões), version (texto ou inteiro), registered_at (data, ou data-hora RFC 3339 com fuso), sha256 (64 hex minúsculos) e ref ou text, nunca os dois; com amends (o id do nó da versão anterior), reason é obrigatório, e round (texto) é a rodada que motivou a emenda. x_measured_under, no resultado: measured_at (data ou data-hora), criteria (lista não vazia de {criterion, sha256}, em que criterion é o id de um nó com x_criterion ou <caminho>#<id>), e subject (mapa), verdict e round (texto) opcionais. ref e text juntos alertam form.exclusive.node.x_criterion. O leitor não calcula hash: a coerência entre os nós (integrity.criterion-unknown, integrity.criterion-sha-mismatch, integrity.criterion-amends-mismatch, integrity.measured-post-hoc e integrity.measured-order-unknown) é dele, e o sha256 contra o texto ou o arquivo é do kg_criterion.py. No v4.14, o x_term ganha scheme, o esquema do vocabulário (o skos:inScheme), em forma de slug (minúsculas, dígitos e hífen); sem ele, o esquema é o próprio grafo, cujo nome é o meta.id (o esquema declarado igual ao meta.id é o mesmo). E o aviso integrity.term-notation-duplicate, do leitor: dois nós vivos (status que não é superseded nem refuted) com x_term, no mesmo esquema e com a mesma notation (comparada exata), só entre nós do mesmo grafo, como a convenção do SKOS (§6.5.3). O corpus inteiro e o código na prosa são do kg_vocab.py lint. No v4.16, a classe de provenance.method ganha a forma canônica em inglês (measurement, reading, judges, derived, testimony), e as cinco em português (medição, leitura, juízes, derivado, testemunho) seguem aceitas como alias, sem aviso; testimony e testemunho valem igual para integrity.testimony-in-prod. No v4.17 entram, só no SHOULD, duas chaves de provenance. provenance.scheme diz o esquema do locator, por um código: json-pointer (RFC 6901; em fragmento, com #, sem espaço cru), text (RFC 5147: line= e char=, posições contadas a partir de 0 como fronteiras, char em code points e cada quebra de linha, CRLF, LF ou CR, contada como um caractere; o ;length= da norma vale, e o ;md5= não), csv (RFC 7111: só row=, só col= ou só cell= numa seleção, a partir de 1, com * para a última), pdf (RFC 8118 e ISO 32000-2: page=, a página física, a partir de 1, entre outros parâmetros), media (Media Fragments: t=, segundos npt, intervalo semiaberto), quote (o texto exato, o TextQuoteSelector do Web Annotation), html (o fragmento #id) e kg-node (o id de um nó do grafo citado no source, #ID ou ID: a âncora nativa do formato, desenho próprio do contrato). As URIs do conformsTo do Web Annotation para esses esquemas valem como alias, inclusive a da RFC 3778, que a tabela do W3C ainda cita para PDF. Com o scheme, o locator que não casa a forma do esquema alerta como form.pattern.node.provenance.locator; sem ele, o locator segue texto livre. A forma não confere o que só a fonte diz (o início depois do fim, a linha que não existe): isso é do kg_trace. provenance.sha256 é o hash SHA-256 do conteúdo lido, em 64 hex minúsculos, num campo próprio e separado do locator (o md5= da RFC 5147 não é usado, porque o MD5 não resiste a colisão): fora da forma alerta como form.pattern.node.provenance.sha256. Nada que passava reprova. No v4.18 entra, só no SHOULD, provenance.node_sha256: o SHA-256, em 64 hex minúsculos, da serialização canônica do nó citado pela RFC 8785 (JCS, JSON Canonicalization Scheme), sobre o modelo que o leitor extrai do grafo (chaves em ordem de unidades UTF-16, números e strings na forma do ECMAScript). Vale com scheme kg-node: uma mudança num nó vizinho do mesmo arquivo não mexe nele, e uma mudança no nó citado, sim. Fora da forma alerta como form.pattern.node.provenance.node_sha256; sem scheme, como form.required.node.provenance.scheme; com outro scheme, como form.const.node.provenance.scheme. O hash é conferido pelo kg_trace, não pelo leitor. Nada que passava reprova. No v4.19 entram dois avisos do leitor, que o JSON não exprime porque cruzam o nó com as arestas: integrity.bare-decision (decision done sem narrative com texto e sem SUPPORTS chegando a ela) e integrity.superseded-without-successor (nó superseded sem SUPERSEDES chegando a ele). Conta a aresta declarada no próprio grafo, local ou nas external_edges com from externo. São SHOULD: nada que passava reprova.","type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"meta":{"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}},"nodes":{"type":"array","items":{"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"label":{"maxLength":280},"provenance":{"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["locality","locator","method","node_sha256","scheme","sha256","source"]},{"pattern":"^x_"}]}]},"properties":{"method":{"pattern":"^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]"},"locality":{"enum":["host","pessoa","privado","repo","web"]},"scheme":{"enum":["csv","html","http://tools.ietf.org/rfc/rfc3236","http://tools.ietf.org/rfc/rfc3778","http://tools.ietf.org/rfc/rfc5147","http://tools.ietf.org/rfc/rfc6901","http://tools.ietf.org/rfc/rfc7111","http://tools.ietf.org/rfc/rfc8118","http://www.w3.org/TR/media-frags/","json-pointer","kg-node","media","pdf","quote","text"]},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"node_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"allOf":[{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["json-pointer","http://tools.ietf.org/rfc/rfc6901"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["text","http://tools.ietf.org/rfc/rfc5147"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["csv","http://tools.ietf.org/rfc/rfc7111"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["pdf","http://tools.ietf.org/rfc/rfc3778","http://tools.ietf.org/rfc/rfc8118"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["media","http://www.w3.org/TR/media-frags/"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["quote"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"[^ \\t\\n\\r]"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["html","http://tools.ietf.org/rfc/rfc3236"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^#?[^ \\t\\n\\r#]+$"}}}},{"if":{"required":["scheme"],"properties":{"scheme":{"enum":["kg-node"]}}},"then":{"properties":{"locator":{"type":"string","pattern":"^#?[A-Za-z][A-Za-z0-9_]*$"}}}},{"if":{"required":["node_sha256"]},"then":{"required":["scheme"],"properties":{"scheme":{"const":"kg-node"}}}}]},"verified_scope":{"enum":["fato","mecanismo","nenhum"]},"reverify_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"reverify_on":{"type":"string","minLength":1},"retain_for":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"x_term":{"type":"object","required":["pref"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["definition","labels","lang","notation","pref","scheme"]},{"pattern":"^x_"}]}]},"properties":{"pref":{"type":"string","minLength":1},"lang":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},"definition":{"type":"string","minLength":1},"notation":{"type":"string","minLength":1},"labels":{"type":"array","items":{"$ref":"#/$defs/termLabel"}},"scheme":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]*$"}}},"x_mirror":{"type":"object","required":["system","ref","state","synced_at"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["ref","resync_every","state","synced_at","system","url"]},{"pattern":"^x_"}]}]},"properties":{"system":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"synced_at":{"type":"string","format":"date"},"url":{"type":"string","minLength":1},"resync_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"state":{"type":"string","minLength":1}}},"x_doc_cycle":{"type":"object","required":["issuer","state"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["checked_at","effective_from","effective_to","issuer","recheck_every","ref","state","updated_at","version"]},{"pattern":"^x_"}]}]},"properties":{"issuer":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"state":{"enum":["draft","enacted","expired","in_force","revoked","superseded","suspended"]},"effective_from":{"type":"string","format":"date"},"effective_to":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"},"checked_at":{"type":"string","format":"date"},"recheck_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]}},"allOf":[{"if":{"required":["recheck_every"]},"then":{"required":["checked_at"]}}]},"x_questionnaire":{"type":"object","required":["name","questions"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["answer_draft","answered_at","name","questions","role","verdict"]},{"pattern":"^x_"}]}]},"properties":{"name":{"type":"string","minLength":1},"questions":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"answer_draft":{"type":"string","minLength":1},"verdict":{"enum":["does_not_meet","meets","not_applicable","partial","unknown"]},"answered_at":{"type":"string","format":"date"},"role":{"enum":["evidence_request","evidence_requirement","item"]}}},"x_severity":{"enum":["critical","high","info","low","medium"]},"x_criterion":{"type":"object","required":["id","version","registered_at","sha256"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["amends","id","reason","ref","registered_at","round","sha256","text","version"]},{"pattern":"^x_"}]}]},"properties":{"id":{"type":"string","minLength":1},"version":{"type":["string","integer"],"minLength":1},"registered_at":{"type":"string","pattern":"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"ref":{"type":"string","minLength":1},"text":{"type":"string","minLength":1},"amends":{"type":"string","minLength":1},"reason":{"type":"string","minLength":1},"round":{"type":"string","minLength":1}},"allOf":[{"if":{"type":"object","required":["ref"]},"then":{"not":{"required":["text"]}}},{"if":{"type":"object","not":{"required":["ref"]}},"then":{"required":["text"]}},{"if":{"type":"object","required":["amends"]},"then":{"required":["reason"]}}]},"x_measured_under":{"type":"object","required":["measured_at","criteria"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["criteria","measured_at","round","subject","verdict"]},{"pattern":"^x_"}]}]},"properties":{"measured_at":{"type":"string","pattern":"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},"criteria":{"type":"array","minItems":1,"items":{"type":"object","required":["criterion","sha256"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["criterion","sha256"]},{"pattern":"^x_"}]}]},"properties":{"criterion":{"type":"string","minLength":1},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}}}},"subject":{"type":"object"},"verdict":{"type":"string","minLength":1},"round":{"type":"string","minLength":1}}}},"allOf":[{"if":{"anyOf":[{"properties":{"plane":{"const":"PROD"}},"required":["plane"]},{"required":["verified_scope"]}]},"then":{"required":["verified_at"]}},{"if":{"properties":{"node_type":{"const":"claim"}},"required":["node_type","verified_at"]},"then":{"required":["verified_against"]}}]},"minItems":1},"edges":{"type":"array","items":{"type":"object","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},"properties":{"x_confidence":{"type":"number","minimum":0,"maximum":1},"x_provisional":{"type":"boolean"}}}}},"$defs":{"termLabel":{"type":"object","required":["literal","kind","source"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["kind","lang","literal","locator","retired","reverify_every","scope","source","verified_at","version"]},{"pattern":"^x_"}]}]},"properties":{"literal":{"type":"string","minLength":1},"kind":{"enum":["alt","hidden"]},"lang":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},"scope":{"type":"object","required":["level"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["case","jurisdiction","level"]},{"pattern":"^x_"}]}]},"properties":{"level":{"enum":["case","domain"]},"case":{"type":"string","minLength":1},"jurisdiction":{"type":"string","minLength":1}},"allOf":[{"if":{"properties":{"level":{"const":"case"}},"required":["level"]},"then":{"required":["case"]}}]},"source":{"type":"string","minLength":1},"locator":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"verified_at":{"type":"string","format":"date"},"reverify_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"retired":{"type":"boolean"}},"allOf":[{"if":{"required":["reverify_every"]},"then":{"required":["verified_at"]}}]}}};const schema32 = {"type":"object","required":["literal","kind","source"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["kind","lang","literal","locator","retired","reverify_every","scope","source","verified_at","version"]},{"pattern":"^x_"}]}]},"properties":{"literal":{"type":"string","minLength":1},"kind":{"enum":["alt","hidden"]},"lang":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},"scope":{"type":"object","required":["level"],"propertyNames":{"allOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_-]*$"},{"anyOf":[{"enum":["case","jurisdiction","level"]},{"pattern":"^x_"}]}]},"properties":{"level":{"enum":["case","domain"]},"case":{"type":"string","minLength":1},"jurisdiction":{"type":"string","minLength":1}},"allOf":[{"if":{"properties":{"level":{"const":"case"}},"required":["level"]},"then":{"required":["case"]}}]},"source":{"type":"string","minLength":1},"locator":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"verified_at":{"type":"string","format":"date"},"reverify_every":{"type":"string","allOf":[{"pattern":"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},{"not":{"type":"string","pattern":"^P(?:0+[YMWD])+$"}}]},"retired":{"type":"boolean"}},"allOf":[{"if":{"required":["reverify_every"]},"then":{"required":["verified_at"]}}]};const pattern4 = new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$", "u");const pattern6 = new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u");const pattern8 = new RegExp("^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$", "u");const pattern9 = new RegExp("^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$", "u");const pattern10 = new RegExp("^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$", "u");const pattern11 = new RegExp("^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$", "u");const pattern12 = new RegExp("^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$", "u");const pattern13 = new RegExp("[^ \\t\\n\\r]", "u");const pattern14 = new RegExp("^#?[^ \\t\\n\\r#]+$", "u");const pattern15 = new RegExp("^#?[A-Za-z][A-Za-z0-9_]*$", "u");const pattern17 = new RegExp("^x_", "u");const pattern18 = new RegExp("^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]", "u");const pattern19 = new RegExp("^[0-9a-f]{64}$", "u");const pattern21 = new RegExp("^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$", "u");const pattern22 = new RegExp("^P(?:0+[YMWD])+$", "u");const pattern27 = new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$", "u");const pattern35 = new RegExp("^[a-z0-9][a-z0-9-]*$", "u");const pattern48 = new RegExp("^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$", "u");import func1_mod from "ajv/dist/runtime/ucs2length.js";const func1 = func1_mod.default;const formats0 = /^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="urn:kg-ssot:spec:kg-contract-v4.should.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){const _errs1 = errors;if(typeof key0 === "string"){if(!pattern4.test(key0)){const err0 = {instancePath,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.propertyNames,data:key0,propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var valid0 = _errs1 === errors;if(!valid0){const err1 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid",schema:schema31.propertyNames,parentSchema:schema31,data};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.meta !== undefined){let data0 = data.meta;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){for(const key1 in data0){const _errs4 = errors;if(typeof key1 === "string"){if(!pattern4.test(key1)){const err2 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.meta.propertyNames,data:key1,propertyName:key1};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var valid2 = _errs4 === errors;if(!valid2){const err3 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid",schema:schema31.properties.meta.propertyNames,parentSchema:schema31.properties.meta,data:data0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data0.slug !== undefined){let data1 = data0.slug;if(typeof data1 === "string"){if(!pattern6.test(data1)){const err4 = {instancePath:instancePath+"/meta/slug",schemaPath:"#/properties/meta/properties/slug/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"},message:"must match pattern \""+"^[a-z0-9]+(?:-[a-z0-9]+)*$"+"\"",schema:"^[a-z0-9]+(?:-[a-z0-9]+)*$",parentSchema:schema31.properties.meta.properties.slug,data:data1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/meta/slug",schemaPath:"#/properties/meta/properties/slug/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.meta.properties.slug.type,parentSchema:schema31.properties.meta.properties.slug,data:data1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.meta.type,parentSchema:schema31.properties.meta,data:data0};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.nodes !== undefined){let data2 = data.nodes;if(Array.isArray(data2)){if(data2.length < 1){const err7 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:schema31.properties.nodes,data:data2};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs12 = errors;let valid7 = true;const _errs13 = errors;const _errs14 = errors;let valid8 = false;const _errs15 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing0;if((data3.plane === undefined) && (missing0 = "plane")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data3.plane !== undefined){if("PROD" !== data3.plane){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}var _valid1 = _errs15 === errors;valid8 = valid8 || _valid1;if(_valid1){var props0 = {};props0.plane = true;}const _errs17 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.verified_scope === undefined) && (missing1 = "verified_scope")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid1 = _errs17 === errors;valid8 = valid8 || _valid1;if(!valid8){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var _valid0 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid0){const _errs18 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.verified_at === undefined){const err12 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "verified_at"},message:"must have required property '"+"verified_at"+"'",schema:schema31.properties.nodes.items.allOf[0].then.required,parentSchema:schema31.properties.nodes.items.allOf[0].then,data:data3};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs18 === errors;valid7 = _valid0;}if(!valid7){const err13 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.allOf[0].if,parentSchema:schema31.properties.nodes.items.allOf[0],data:data3};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const _errs20 = errors;let valid10 = true;const _errs21 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing2;if(((data3.node_type === undefined) && (missing2 = "node_type")) || ((data3.verified_at === undefined) && (missing2 = "verified_at"))){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data3.node_type !== undefined){if("claim" !== data3.node_type){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}var _valid2 = _errs21 === errors;errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}if(_valid2){const _errs23 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.verified_against === undefined){const err16 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/1/then/required",keyword:"required",params:{missingProperty: "verified_against"},message:"must have required property '"+"verified_against"+"'",schema:schema31.properties.nodes.items.allOf[1].then.required,parentSchema:schema31.properties.nodes.items.allOf[1].then,data:data3};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid2 = _errs23 === errors;valid10 = _valid2;}if(!valid10){const err17 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.allOf[1].if,parentSchema:schema31.properties.nodes.items.allOf[1],data:data3};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(props0 !== true){props0 = props0 || {};props0.node_type = true;}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){for(const key2 in data3){const _errs24 = errors;if(typeof key2 === "string"){if(!pattern4.test(key2)){const err18 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.propertyNames,data:key2,propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid12 = _errs24 === errors;if(!valid12){const err19 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid",schema:schema31.properties.nodes.items.propertyNames,parentSchema:schema31.properties.nodes.items,data:data3};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(props0 !== true){props0 = props0 || {};props0.label = true;props0.provenance = true;props0.verified_scope = true;props0.reverify_every = true;props0.reverify_on = true;props0.retain_for = true;props0.x_term = true;props0.x_mirror = true;props0.x_doc_cycle = true;props0.x_questionnaire = true;props0.x_severity = true;props0.x_criterion = true;props0.x_measured_under = true;}if(data3.label !== undefined){let data6 = data3.label;if(typeof data6 === "string"){if(func1(data6) > 280){const err20 = {instancePath:instancePath+"/nodes/" + i0+"/label",schemaPath:"#/properties/nodes/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 280},message:"must NOT have more than 280 characters",schema:280,parentSchema:schema31.properties.nodes.items.properties.label,data:data6};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}if(data3.provenance !== undefined){let data7 = data3.provenance;const _errs28 = errors;let valid15 = true;const _errs29 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing3;if((data7.scheme === undefined) && (missing3 = "scheme")){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {if(data7.scheme !== undefined){let data8 = data7.scheme;if(!((data8 === "json-pointer") || (data8 === "http://tools.ietf.org/rfc/rfc6901"))){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}}var _valid3 = _errs29 === errors;errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}if(_valid3){const _errs31 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data9 = data7.locator;if(typeof data9 === "string"){if(!pattern8.test(data9)){const err23 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/0/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$"},message:"must match pattern \""+"^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$"+"\"",schema:"^(?:(?:/(?:[^/~]|~[01])*)*|#(?:/(?:[^/~ \\t\\n\\r]|~[01])*)*)$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[0].then.properties.locator,data:data9};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/0/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[0].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[0].then.properties.locator,data:data9};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs31 === errors;valid15 = _valid3;if(valid15){var props1 = {};props1.locator = true;props1.scheme = true;}}if(!valid15){const err25 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[0].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[0],data:data7};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}const _errs35 = errors;let valid18 = true;const _errs36 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing4;if((data7.scheme === undefined) && (missing4 = "scheme")){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {if(data7.scheme !== undefined){let data10 = data7.scheme;if(!((data10 === "text") || (data10 === "http://tools.ietf.org/rfc/rfc5147"))){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}}var _valid4 = _errs36 === errors;errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}if(_valid4){const _errs38 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data11 = data7.locator;if(typeof data11 === "string"){if(!pattern9.test(data11)){const err28 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/1/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$"},message:"must match pattern \""+"^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$"+"\"",schema:"^(?:line|char)=(?:[0-9]+(?:,[0-9]*)?|,[0-9]+)(?:;length=[0-9]+(?:,[A-Za-z0-9!#$%&'+^_`{}~-]+)?)*$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[1].then.properties.locator,data:data11};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/1/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[1].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[1].then.properties.locator,data:data11};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid4 = _errs38 === errors;valid18 = _valid4;if(valid18){var props2 = {};props2.locator = true;props2.scheme = true;}}if(!valid18){const err30 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[1].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[1],data:data7};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(props1 !== true && props2 !== undefined){if(props2 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props2);}}const _errs42 = errors;let valid21 = true;const _errs43 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing5;if((data7.scheme === undefined) && (missing5 = "scheme")){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data7.scheme !== undefined){let data12 = data7.scheme;if(!((data12 === "csv") || (data12 === "http://tools.ietf.org/rfc/rfc7111"))){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}}var _valid5 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid5){const _errs45 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data13 = data7.locator;if(typeof data13 === "string"){if(!pattern10.test(data13)){const err33 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/2/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$"},message:"must match pattern \""+"^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$"+"\"",schema:"^(?:(?:row|col)=(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*))?)*|cell=(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?(?:;(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*)(?:-(?:[1-9][0-9]*|\\*),(?:[1-9][0-9]*|\\*))?)*)$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[2].then.properties.locator,data:data13};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}else {const err34 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/2/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[2].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[2].then.properties.locator,data:data13};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid5 = _errs45 === errors;valid21 = _valid5;if(valid21){var props3 = {};props3.locator = true;props3.scheme = true;}}if(!valid21){const err35 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[2].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[2],data:data7};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(props1 !== true && props3 !== undefined){if(props3 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props3);}}const _errs49 = errors;let valid24 = true;const _errs50 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing6;if((data7.scheme === undefined) && (missing6 = "scheme")){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {if(data7.scheme !== undefined){let data14 = data7.scheme;if(!(((data14 === "pdf") || (data14 === "http://tools.ietf.org/rfc/rfc3778")) || (data14 === "http://tools.ietf.org/rfc/rfc8118"))){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}}var _valid6 = _errs50 === errors;errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}if(_valid6){const _errs52 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data15 = data7.locator;if(typeof data15 === "string"){if(!pattern11.test(data15)){const err38 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/3/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$"},message:"must match pattern \""+"^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$"+"\"",schema:"^(?:[A-Za-z]+=[^&]*&)*page=[1-9][0-9]*(?:&[A-Za-z]+=[^&]*)*$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[3].then.properties.locator,data:data15};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/3/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[3].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[3].then.properties.locator,data:data15};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid6 = _errs52 === errors;valid24 = _valid6;if(valid24){var props4 = {};props4.locator = true;props4.scheme = true;}}if(!valid24){const err40 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[3].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[3],data:data7};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(props1 !== true && props4 !== undefined){if(props4 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props4);}}const _errs56 = errors;let valid27 = true;const _errs57 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing7;if((data7.scheme === undefined) && (missing7 = "scheme")){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data7.scheme !== undefined){let data16 = data7.scheme;if(!((data16 === "media") || (data16 === "http://www.w3.org/TR/media-frags/"))){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}}var _valid7 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid7){const _errs59 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data17 = data7.locator;if(typeof data17 === "string"){if(!pattern12.test(data17)){const err43 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/4/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$"},message:"must match pattern \""+"^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$"+"\"",schema:"^t=(?:npt:)?(?:(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?)(?:,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))?|,(?:[0-9]+:[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-5][0-9]:[0-5][0-9](?:\\.[0-9]*)?|[0-9]+(?:\\.[0-9]*)?))$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[4].then.properties.locator,data:data17};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}else {const err44 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/4/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[4].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[4].then.properties.locator,data:data17};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var _valid7 = _errs59 === errors;valid27 = _valid7;if(valid27){var props5 = {};props5.locator = true;props5.scheme = true;}}if(!valid27){const err45 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[4].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[4],data:data7};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(props1 !== true && props5 !== undefined){if(props5 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props5);}}const _errs63 = errors;let valid30 = true;const _errs64 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing8;if((data7.scheme === undefined) && (missing8 = "scheme")){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data7.scheme !== undefined){if(!(data7.scheme === "quote")){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}}var _valid8 = _errs64 === errors;errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}if(_valid8){const _errs66 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data19 = data7.locator;if(typeof data19 === "string"){if(!pattern13.test(data19)){const err48 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/5/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "[^ \\t\\n\\r]"},message:"must match pattern \""+"[^ \\t\\n\\r]"+"\"",schema:"[^ \\t\\n\\r]",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[5].then.properties.locator,data:data19};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/5/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[5].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[5].then.properties.locator,data:data19};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid8 = _errs66 === errors;valid30 = _valid8;if(valid30){var props6 = {};props6.locator = true;props6.scheme = true;}}if(!valid30){const err50 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[5].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[5],data:data7};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(props1 !== true && props6 !== undefined){if(props6 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props6);}}const _errs70 = errors;let valid33 = true;const _errs71 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing9;if((data7.scheme === undefined) && (missing9 = "scheme")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data7.scheme !== undefined){let data20 = data7.scheme;if(!((data20 === "html") || (data20 === "http://tools.ietf.org/rfc/rfc3236"))){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}var _valid9 = _errs71 === errors;errors = _errs70;if(vErrors !== null){if(_errs70){vErrors.length = _errs70;}else {vErrors = null;}}if(_valid9){const _errs73 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data21 = data7.locator;if(typeof data21 === "string"){if(!pattern14.test(data21)){const err53 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/6/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^#?[^ \\t\\n\\r#]+$"},message:"must match pattern \""+"^#?[^ \\t\\n\\r#]+$"+"\"",schema:"^#?[^ \\t\\n\\r#]+$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[6].then.properties.locator,data:data21};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/6/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[6].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[6].then.properties.locator,data:data21};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid9 = _errs73 === errors;valid33 = _valid9;if(valid33){var props7 = {};props7.locator = true;props7.scheme = true;}}if(!valid33){const err55 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[6].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[6],data:data7};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(props1 !== true && props7 !== undefined){if(props7 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props7);}}const _errs77 = errors;let valid36 = true;const _errs78 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing10;if((data7.scheme === undefined) && (missing10 = "scheme")){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(data7.scheme !== undefined){if(!(data7.scheme === "kg-node")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}}var _valid10 = _errs78 === errors;errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}if(_valid10){const _errs80 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.locator !== undefined){let data23 = data7.locator;if(typeof data23 === "string"){if(!pattern15.test(data23)){const err58 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/7/then/properties/locator/pattern",keyword:"pattern",params:{pattern: "^#?[A-Za-z][A-Za-z0-9_]*$"},message:"must match pattern \""+"^#?[A-Za-z][A-Za-z0-9_]*$"+"\"",schema:"^#?[A-Za-z][A-Za-z0-9_]*$",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[7].then.properties.locator,data:data23};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}else {const err59 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locator",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/7/then/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.allOf[7].then.properties.locator.type,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[7].then.properties.locator,data:data23};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}var _valid10 = _errs80 === errors;valid36 = _valid10;if(valid36){var props8 = {};props8.locator = true;props8.scheme = true;}}if(!valid36){const err60 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[7].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[7],data:data7};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(props1 !== true && props8 !== undefined){if(props8 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props8);}}const _errs84 = errors;let valid39 = true;const _errs85 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing11;if((data7.node_sha256 === undefined) && (missing11 = "node_sha256")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var _valid11 = _errs85 === errors;errors = _errs84;if(vErrors !== null){if(_errs84){vErrors.length = _errs84;}else {vErrors = null;}}if(_valid11){const _errs86 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.scheme === undefined){const err62 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/8/then/required",keyword:"required",params:{missingProperty: "scheme"},message:"must have required property '"+"scheme"+"'",schema:schema31.properties.nodes.items.properties.provenance.allOf[8].then.required,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[8].then,data:data7};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data7.scheme !== undefined){let data24 = data7.scheme;if("kg-node" !== data24){const err63 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/scheme",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/8/then/properties/scheme/const",keyword:"const",params:{allowedValue: "kg-node"},message:"must be equal to constant",schema:"kg-node",parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[8].then.properties.scheme,data:data24};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}var _valid11 = _errs86 === errors;valid39 = _valid11;if(valid39){var props9 = {};props9.scheme = true;}}if(!valid39){const err64 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.provenance.allOf[8].if,parentSchema:schema31.properties.nodes.items.properties.provenance.allOf[8],data:data7};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(props1 !== true && props9 !== undefined){if(props9 === true){props1 = true;}else {props1 = props1 || {};Object.assign(props1, props9);}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key3 in data7){const _errs88 = errors;if(typeof key3 === "string"){if(!pattern4.test(key3)){const err65 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[0],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}const _errs91 = errors;let valid43 = false;const _errs92 = errors;if(!(((((((key3 === "locality") || (key3 === "locator")) || (key3 === "method")) || (key3 === "node_sha256")) || (key3 === "scheme")) || (key3 === "sha256")) || (key3 === "source"))){const err66 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[0],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid12 = _errs92 === errors;valid43 = valid43 || _valid12;const _errs93 = errors;if(typeof key3 === "string"){if(!pattern17.test(key3)){const err67 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf[1],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid12 = _errs93 === errors;valid43 = valid43 || _valid12;if(!valid43){const err68 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.provenance.propertyNames.allOf[1],data:key3,propertyName:key3};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}}var valid41 = _errs88 === errors;if(!valid41){const err69 = {instancePath:instancePath+"/nodes/" + i0+"/provenance",schemaPath:"#/properties/nodes/items/properties/provenance/propertyNames",keyword:"propertyNames",params:{propertyName: key3},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.provenance.propertyNames,parentSchema:schema31.properties.nodes.items.properties.provenance,data:data7};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(props1 !== true){props1 = props1 || {};props1.method = true;props1.locality = true;props1.scheme = true;props1.sha256 = true;props1.node_sha256 = true;}if(data7.method !== undefined){let data25 = data7.method;if(typeof data25 === "string"){if(!pattern18.test(data25)){const err70 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/method",schemaPath:"#/properties/nodes/items/properties/provenance/properties/method/pattern",keyword:"pattern",params:{pattern: "^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]"},message:"must match pattern \""+"^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]"+"\"",schema:"^(?:measurement|reading|judges|derived|testimony|medição|leitura|juízes|derivado|testemunho): [^ \t\n\r]",parentSchema:schema31.properties.nodes.items.properties.provenance.properties.method,data:data25};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}if(data7.locality !== undefined){let data26 = data7.locality;if(!(((((data26 === "host") || (data26 === "pessoa")) || (data26 === "privado")) || (data26 === "repo")) || (data26 === "web"))){const err71 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/locality",schemaPath:"#/properties/nodes/items/properties/provenance/properties/locality/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.provenance.properties.locality.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.provenance.properties.locality.enum,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.locality,data:data26};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data7.scheme !== undefined){let data27 = data7.scheme;if(!(((((((((((((((data27 === "csv") || (data27 === "html")) || (data27 === "http://tools.ietf.org/rfc/rfc3236")) || (data27 === "http://tools.ietf.org/rfc/rfc3778")) || (data27 === "http://tools.ietf.org/rfc/rfc5147")) || (data27 === "http://tools.ietf.org/rfc/rfc6901")) || (data27 === "http://tools.ietf.org/rfc/rfc7111")) || (data27 === "http://tools.ietf.org/rfc/rfc8118")) || (data27 === "http://www.w3.org/TR/media-frags/")) || (data27 === "json-pointer")) || (data27 === "kg-node")) || (data27 === "media")) || (data27 === "pdf")) || (data27 === "quote")) || (data27 === "text"))){const err72 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/scheme",schemaPath:"#/properties/nodes/items/properties/provenance/properties/scheme/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.provenance.properties.scheme.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.provenance.properties.scheme.enum,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.scheme,data:data27};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data7.sha256 !== undefined){let data28 = data7.sha256;if(typeof data28 === "string"){if(!pattern19.test(data28)){const err73 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.provenance.properties.sha256,data:data28};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.properties.sha256.type,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.sha256,data:data28};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data7.node_sha256 !== undefined){let data29 = data7.node_sha256;if(typeof data29 === "string"){if(!pattern19.test(data29)){const err75 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/node_sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/node_sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.provenance.properties.node_sha256,data:data29};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/nodes/" + i0+"/provenance/node_sha256",schemaPath:"#/properties/nodes/items/properties/provenance/properties/node_sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.provenance.properties.node_sha256.type,parentSchema:schema31.properties.nodes.items.properties.provenance.properties.node_sha256,data:data29};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}}if(data3.verified_scope !== undefined){let data30 = data3.verified_scope;if(!(((data30 === "fato") || (data30 === "mecanismo")) || (data30 === "nenhum"))){const err77 = {instancePath:instancePath+"/nodes/" + i0+"/verified_scope",schemaPath:"#/properties/nodes/items/properties/verified_scope/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.verified_scope.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.verified_scope.enum,parentSchema:schema31.properties.nodes.items.properties.verified_scope,data:data30};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data3.reverify_every !== undefined){let data31 = data3.reverify_every;if(typeof data31 !== "string"){const err78 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_every",schemaPath:"#/properties/nodes/items/properties/reverify_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.reverify_every.type,parentSchema:schema31.properties.nodes.items.properties.reverify_every,data:data31};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(typeof data31 === "string"){if(!pattern21.test(data31)){const err79 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_every",schemaPath:"#/properties/nodes/items/properties/reverify_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.reverify_every.allOf[0],data:data31};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}const _errs106 = errors;const _errs107 = errors;if(errors === _errs107){if(typeof data31 === "string"){if(!pattern22.test(data31)){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var valid46 = _errs107 === errors;if(valid46){const err82 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_every",schemaPath:"#/properties/nodes/items/properties/reverify_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.reverify_every.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.reverify_every.allOf[1],data:data31};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs106;if(vErrors !== null){if(_errs106){vErrors.length = _errs106;}else {vErrors = null;}}}}if(data3.reverify_on !== undefined){let data32 = data3.reverify_on;if(typeof data32 === "string"){if(func1(data32) < 1){const err83 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_on",schemaPath:"#/properties/nodes/items/properties/reverify_on/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.reverify_on,data:data32};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/nodes/" + i0+"/reverify_on",schemaPath:"#/properties/nodes/items/properties/reverify_on/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.reverify_on.type,parentSchema:schema31.properties.nodes.items.properties.reverify_on,data:data32};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data3.retain_for !== undefined){let data33 = data3.retain_for;if(typeof data33 !== "string"){const err85 = {instancePath:instancePath+"/nodes/" + i0+"/retain_for",schemaPath:"#/properties/nodes/items/properties/retain_for/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.retain_for.type,parentSchema:schema31.properties.nodes.items.properties.retain_for,data:data33};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(typeof data33 === "string"){if(!pattern21.test(data33)){const err86 = {instancePath:instancePath+"/nodes/" + i0+"/retain_for",schemaPath:"#/properties/nodes/items/properties/retain_for/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.retain_for.allOf[0],data:data33};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}const _errs115 = errors;const _errs116 = errors;if(errors === _errs116){if(typeof data33 === "string"){if(!pattern22.test(data33)){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}var valid48 = _errs116 === errors;if(valid48){const err89 = {instancePath:instancePath+"/nodes/" + i0+"/retain_for",schemaPath:"#/properties/nodes/items/properties/retain_for/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.retain_for.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.retain_for.allOf[1],data:data33};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}}}if(data3.x_term !== undefined){let data34 = data3.x_term;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.pref === undefined){const err90 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/required",keyword:"required",params:{missingProperty: "pref"},message:"must have required property '"+"pref"+"'",schema:schema31.properties.nodes.items.properties.x_term.required,parentSchema:schema31.properties.nodes.items.properties.x_term,data:data34};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}for(const key4 in data34){const _errs120 = errors;if(typeof key4 === "string"){if(!pattern4.test(key4)){const err91 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[0],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}const _errs123 = errors;let valid51 = false;const _errs124 = errors;if(!((((((key4 === "definition") || (key4 === "labels")) || (key4 === "lang")) || (key4 === "notation")) || (key4 === "pref")) || (key4 === "scheme"))){const err92 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[0],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var _valid13 = _errs124 === errors;valid51 = valid51 || _valid13;const _errs125 = errors;if(typeof key4 === "string"){if(!pattern17.test(key4)){const err93 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf[1],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var _valid13 = _errs125 === errors;valid51 = valid51 || _valid13;if(!valid51){const err94 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_term.propertyNames.allOf[1],data:key4,propertyName:key4};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}}var valid49 = _errs120 === errors;if(!valid49){const err95 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/propertyNames",keyword:"propertyNames",params:{propertyName: key4},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_term.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_term,data:data34};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data34.pref !== undefined){let data35 = data34.pref;if(typeof data35 === "string"){if(func1(data35) < 1){const err96 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/pref",schemaPath:"#/properties/nodes/items/properties/x_term/properties/pref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.pref,data:data35};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/pref",schemaPath:"#/properties/nodes/items/properties/x_term/properties/pref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.pref.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.pref,data:data35};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data34.lang !== undefined){let data36 = data34.lang;if(typeof data36 === "string"){if(!pattern27.test(data36)){const err98 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/lang",schemaPath:"#/properties/nodes/items/properties/x_term/properties/lang/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},message:"must match pattern \""+"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"+"\"",schema:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$",parentSchema:schema31.properties.nodes.items.properties.x_term.properties.lang,data:data36};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/lang",schemaPath:"#/properties/nodes/items/properties/x_term/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.lang.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.lang,data:data36};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data34.definition !== undefined){let data37 = data34.definition;if(typeof data37 === "string"){if(func1(data37) < 1){const err100 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/definition",schemaPath:"#/properties/nodes/items/properties/x_term/properties/definition/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.definition,data:data37};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/definition",schemaPath:"#/properties/nodes/items/properties/x_term/properties/definition/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.definition.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.definition,data:data37};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data34.notation !== undefined){let data38 = data34.notation;if(typeof data38 === "string"){if(func1(data38) < 1){const err102 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/notation",schemaPath:"#/properties/nodes/items/properties/x_term/properties/notation/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.notation,data:data38};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/notation",schemaPath:"#/properties/nodes/items/properties/x_term/properties/notation/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.notation.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.notation,data:data38};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data34.labels !== undefined){let data39 = data34.labels;if(Array.isArray(data39)){const len1 = data39.length;for(let i1=0; i1<len1; i1++){let data40 = data39[i1];const _errs140 = errors;let valid57 = true;const _errs141 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){let missing12;if((data40.reverify_every === undefined) && (missing12 = "reverify_every")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var _valid14 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid14){const _errs142 = errors;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.verified_at === undefined){const err105 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/allOf/0/then/required",keyword:"required",params:{missingProperty: "verified_at"},message:"must have required property '"+"verified_at"+"'",schema:schema32.allOf[0].then.required,parentSchema:schema32.allOf[0].then,data:data40};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}var _valid14 = _errs142 === errors;valid57 = _valid14;}if(!valid57){const err106 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema32.allOf[0].if,parentSchema:schema32.allOf[0],data:data40};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.literal === undefined){const err107 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/required",keyword:"required",params:{missingProperty: "literal"},message:"must have required property '"+"literal"+"'",schema:schema32.required,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(data40.kind === undefined){const err108 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'",schema:schema32.required,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data40.source === undefined){const err109 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'",schema:schema32.required,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}for(const key5 in data40){const _errs143 = errors;if(typeof key5 === "string"){if(!pattern4.test(key5)){const err110 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema32.propertyNames.allOf[0],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}const _errs146 = errors;let valid60 = false;const _errs147 = errors;if(!((((((((((key5 === "kind") || (key5 === "lang")) || (key5 === "literal")) || (key5 === "locator")) || (key5 === "retired")) || (key5 === "reverify_every")) || (key5 === "scope")) || (key5 === "source")) || (key5 === "verified_at")) || (key5 === "version"))){const err111 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema32.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema32.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema32.propertyNames.allOf[1].anyOf[0],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var _valid15 = _errs147 === errors;valid60 = valid60 || _valid15;const _errs148 = errors;if(typeof key5 === "string"){if(!pattern17.test(key5)){const err112 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema32.propertyNames.allOf[1].anyOf[1],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var _valid15 = _errs148 === errors;valid60 = valid60 || _valid15;if(!valid60){const err113 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema32.propertyNames.allOf[1].anyOf,parentSchema:schema32.propertyNames.allOf[1],data:key5,propertyName:key5};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}var valid58 = _errs143 === errors;if(!valid58){const err114 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/propertyNames",keyword:"propertyNames",params:{propertyName: key5},message:"property name must be valid",schema:schema32.propertyNames,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data40.literal !== undefined){let data41 = data40.literal;if(typeof data41 === "string"){if(func1(data41) < 1){const err115 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/literal",schemaPath:"#/$defs/termLabel/properties/literal/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.literal,data:data41};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/literal",schemaPath:"#/$defs/termLabel/properties/literal/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.literal.type,parentSchema:schema32.properties.literal,data:data41};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data40.kind !== undefined){let data42 = data40.kind;if(!((data42 === "alt") || (data42 === "hidden"))){const err117 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/kind",schemaPath:"#/$defs/termLabel/properties/kind/enum",keyword:"enum",params:{allowedValues: schema32.properties.kind.enum},message:"must be equal to one of the allowed values",schema:schema32.properties.kind.enum,parentSchema:schema32.properties.kind,data:data42};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data40.lang !== undefined){let data43 = data40.lang;if(typeof data43 === "string"){if(!pattern27.test(data43)){const err118 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/lang",schemaPath:"#/$defs/termLabel/properties/lang/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},message:"must match pattern \""+"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"+"\"",schema:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$",parentSchema:schema32.properties.lang,data:data43};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/lang",schemaPath:"#/$defs/termLabel/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.lang.type,parentSchema:schema32.properties.lang,data:data43};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data40.scope !== undefined){let data44 = data40.scope;const _errs157 = errors;let valid63 = true;const _errs158 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){let missing13;if((data44.level === undefined) && (missing13 = "level")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data44.level !== undefined){if("case" !== data44.level){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}var _valid16 = _errs158 === errors;errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}if(_valid16){const _errs160 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.case === undefined){const err122 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/allOf/0/then/required",keyword:"required",params:{missingProperty: "case"},message:"must have required property '"+"case"+"'",schema:schema32.properties.scope.allOf[0].then.required,parentSchema:schema32.properties.scope.allOf[0].then,data:data44};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid16 = _errs160 === errors;valid63 = _valid16;}if(!valid63){const err123 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema32.properties.scope.allOf[0].if,parentSchema:schema32.properties.scope.allOf[0],data:data44};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.level === undefined){const err124 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/required",keyword:"required",params:{missingProperty: "level"},message:"must have required property '"+"level"+"'",schema:schema32.properties.scope.required,parentSchema:schema32.properties.scope,data:data44};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}for(const key6 in data44){const _errs161 = errors;if(typeof key6 === "string"){if(!pattern4.test(key6)){const err125 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema32.properties.scope.propertyNames.allOf[0],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}const _errs164 = errors;let valid67 = false;const _errs165 = errors;if(!(((key6 === "case") || (key6 === "jurisdiction")) || (key6 === "level"))){const err126 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema32.properties.scope.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema32.properties.scope.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema32.properties.scope.propertyNames.allOf[1].anyOf[0],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid17 = _errs165 === errors;valid67 = valid67 || _valid17;const _errs166 = errors;if(typeof key6 === "string"){if(!pattern17.test(key6)){const err127 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema32.properties.scope.propertyNames.allOf[1].anyOf[1],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}var _valid17 = _errs166 === errors;valid67 = valid67 || _valid17;if(!valid67){const err128 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema32.properties.scope.propertyNames.allOf[1].anyOf,parentSchema:schema32.properties.scope.propertyNames.allOf[1],data:key6,propertyName:key6};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}var valid65 = _errs161 === errors;if(!valid65){const err129 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/propertyNames",keyword:"propertyNames",params:{propertyName: key6},message:"property name must be valid",schema:schema32.properties.scope.propertyNames,parentSchema:schema32.properties.scope,data:data44};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data44.level !== undefined){let data46 = data44.level;if(!((data46 === "case") || (data46 === "domain"))){const err130 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/level",schemaPath:"#/$defs/termLabel/properties/scope/properties/level/enum",keyword:"enum",params:{allowedValues: schema32.properties.scope.properties.level.enum},message:"must be equal to one of the allowed values",schema:schema32.properties.scope.properties.level.enum,parentSchema:schema32.properties.scope.properties.level,data:data46};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data44.case !== undefined){let data47 = data44.case;if(typeof data47 === "string"){if(func1(data47) < 1){const err131 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/case",schemaPath:"#/$defs/termLabel/properties/scope/properties/case/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.scope.properties.case,data:data47};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}else {const err132 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/case",schemaPath:"#/$defs/termLabel/properties/scope/properties/case/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.scope.properties.case.type,parentSchema:schema32.properties.scope.properties.case,data:data47};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data44.jurisdiction !== undefined){let data48 = data44.jurisdiction;if(typeof data48 === "string"){if(func1(data48) < 1){const err133 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/jurisdiction",schemaPath:"#/$defs/termLabel/properties/scope/properties/jurisdiction/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.scope.properties.jurisdiction,data:data48};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope/jurisdiction",schemaPath:"#/$defs/termLabel/properties/scope/properties/jurisdiction/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.scope.properties.jurisdiction.type,parentSchema:schema32.properties.scope.properties.jurisdiction,data:data48};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/scope",schemaPath:"#/$defs/termLabel/properties/scope/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema32.properties.scope.type,parentSchema:schema32.properties.scope,data:data44};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data40.source !== undefined){let data49 = data40.source;if(typeof data49 === "string"){if(func1(data49) < 1){const err136 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/source",schemaPath:"#/$defs/termLabel/properties/source/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.source,data:data49};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/source",schemaPath:"#/$defs/termLabel/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.source.type,parentSchema:schema32.properties.source,data:data49};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data40.locator !== undefined){let data50 = data40.locator;if(typeof data50 === "string"){if(func1(data50) < 1){const err138 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/locator",schemaPath:"#/$defs/termLabel/properties/locator/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.locator,data:data50};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}else {const err139 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/locator",schemaPath:"#/$defs/termLabel/properties/locator/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.locator.type,parentSchema:schema32.properties.locator,data:data50};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data40.version !== undefined){let data51 = data40.version;if(typeof data51 === "string"){if(func1(data51) < 1){const err140 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/version",schemaPath:"#/$defs/termLabel/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema32.properties.version,data:data51};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/version",schemaPath:"#/$defs/termLabel/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.version.type,parentSchema:schema32.properties.version,data:data51};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data40.verified_at !== undefined){let data52 = data40.verified_at;if(typeof data52 === "string"){if(!(formats0.test(data52))){const err142 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/verified_at",schemaPath:"#/$defs/termLabel/properties/verified_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema32.properties.verified_at,data:data52};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}else {const err143 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/verified_at",schemaPath:"#/$defs/termLabel/properties/verified_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.verified_at.type,parentSchema:schema32.properties.verified_at,data:data52};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data40.reverify_every !== undefined){let data53 = data40.reverify_every;if(typeof data53 !== "string"){const err144 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/reverify_every",schemaPath:"#/$defs/termLabel/properties/reverify_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema32.properties.reverify_every.type,parentSchema:schema32.properties.reverify_every,data:data53};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(typeof data53 === "string"){if(!pattern21.test(data53)){const err145 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/reverify_every",schemaPath:"#/$defs/termLabel/properties/reverify_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema32.properties.reverify_every.allOf[0],data:data53};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}const _errs184 = errors;const _errs185 = errors;if(errors === _errs185){if(typeof data53 === "string"){if(!pattern22.test(data53)){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid70 = _errs185 === errors;if(valid70){const err148 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/reverify_every",schemaPath:"#/$defs/termLabel/properties/reverify_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema32.properties.reverify_every.allOf[1].not,parentSchema:schema32.properties.reverify_every.allOf[1],data:data53};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}}}if(data40.retired !== undefined){let data54 = data40.retired;if(typeof data54 !== "boolean"){const err149 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1+"/retired",schemaPath:"#/$defs/termLabel/properties/retired/type",keyword:"type",params:{type: "boolean"},message:"must be boolean",schema:schema32.properties.retired.type,parentSchema:schema32.properties.retired,data:data54};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels/" + i1,schemaPath:"#/$defs/termLabel/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema32.type,parentSchema:schema32,data:data40};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}else {const err151 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/labels",schemaPath:"#/properties/nodes/items/properties/x_term/properties/labels/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.items.properties.x_term.properties.labels.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.labels,data:data39};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data34.scheme !== undefined){let data55 = data34.scheme;if(typeof data55 === "string"){if(!pattern35.test(data55)){const err152 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/scheme",schemaPath:"#/properties/nodes/items/properties/x_term/properties/scheme/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9-]*$"+"\"",schema:"^[a-z0-9][a-z0-9-]*$",parentSchema:schema31.properties.nodes.items.properties.x_term.properties.scheme,data:data55};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/nodes/" + i0+"/x_term/scheme",schemaPath:"#/properties/nodes/items/properties/x_term/properties/scheme/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_term.properties.scheme.type,parentSchema:schema31.properties.nodes.items.properties.x_term.properties.scheme,data:data55};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/nodes/" + i0+"/x_term",schemaPath:"#/properties/nodes/items/properties/x_term/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_term.type,parentSchema:schema31.properties.nodes.items.properties.x_term,data:data34};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data3.x_mirror !== undefined){let data56 = data3.x_mirror;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.system === undefined){const err155 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "system"},message:"must have required property '"+"system"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data56.ref === undefined){const err156 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "ref"},message:"must have required property '"+"ref"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data56.state === undefined){const err157 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data56.synced_at === undefined){const err158 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/required",keyword:"required",params:{missingProperty: "synced_at"},message:"must have required property '"+"synced_at"+"'",schema:schema31.properties.nodes.items.properties.x_mirror.required,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}for(const key7 in data56){const _errs193 = errors;if(typeof key7 === "string"){if(!pattern4.test(key7)){const err159 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[0],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}const _errs196 = errors;let valid73 = false;const _errs197 = errors;if(!((((((key7 === "ref") || (key7 === "resync_every")) || (key7 === "state")) || (key7 === "synced_at")) || (key7 === "system")) || (key7 === "url"))){const err160 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[0],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var _valid18 = _errs197 === errors;valid73 = valid73 || _valid18;const _errs198 = errors;if(typeof key7 === "string"){if(!pattern17.test(key7)){const err161 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf[1],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}var _valid18 = _errs198 === errors;valid73 = valid73 || _valid18;if(!valid73){const err162 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_mirror.propertyNames.allOf[1],data:key7,propertyName:key7};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}var valid71 = _errs193 === errors;if(!valid71){const err163 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/propertyNames",keyword:"propertyNames",params:{propertyName: key7},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_mirror.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data56.system !== undefined){let data57 = data56.system;if(typeof data57 === "string"){if(func1(data57) < 1){const err164 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/system",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/system/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.system,data:data57};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/system",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/system/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.system.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.system,data:data57};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data56.ref !== undefined){let data58 = data56.ref;if(typeof data58 === "string"){if(func1(data58) < 1){const err166 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/ref",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.ref,data:data58};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/ref",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.ref.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.ref,data:data58};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data56.synced_at !== undefined){let data59 = data56.synced_at;if(typeof data59 === "string"){if(!(formats0.test(data59))){const err168 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/synced_at",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/synced_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.synced_at,data:data59};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/synced_at",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/synced_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.synced_at.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.synced_at,data:data59};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data56.url !== undefined){let data60 = data56.url;if(typeof data60 === "string"){if(func1(data60) < 1){const err170 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/url",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.url,data:data60};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/url",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.url.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.url,data:data60};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data56.resync_every !== undefined){let data61 = data56.resync_every;if(typeof data61 !== "string"){const err172 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/resync_every",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/resync_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every,data:data61};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(typeof data61 === "string"){if(!pattern21.test(data61)){const err173 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/resync_every",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/resync_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.allOf[0],data:data61};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}const _errs211 = errors;const _errs212 = errors;if(errors === _errs212){if(typeof data61 === "string"){if(!pattern22.test(data61)){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}else {const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}var valid76 = _errs212 === errors;if(valid76){const err176 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/resync_every",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/resync_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.resync_every.allOf[1],data:data61};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {errors = _errs211;if(vErrors !== null){if(_errs211){vErrors.length = _errs211;}else {vErrors = null;}}}}if(data56.state !== undefined){let data62 = data56.state;if(typeof data62 === "string"){if(func1(data62) < 1){const err177 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/state",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/state/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.state,data:data62};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror/state",schemaPath:"#/properties/nodes/items/properties/x_mirror/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_mirror.properties.state.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror.properties.state,data:data62};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath:instancePath+"/nodes/" + i0+"/x_mirror",schemaPath:"#/properties/nodes/items/properties/x_mirror/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_mirror.type,parentSchema:schema31.properties.nodes.items.properties.x_mirror,data:data56};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data3.x_doc_cycle !== undefined){let data63 = data3.x_doc_cycle;const _errs219 = errors;let valid78 = true;const _errs220 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){let missing14;if((data63.recheck_every === undefined) && (missing14 = "recheck_every")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}var _valid19 = _errs220 === errors;errors = _errs219;if(vErrors !== null){if(_errs219){vErrors.length = _errs219;}else {vErrors = null;}}if(_valid19){const _errs221 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.checked_at === undefined){const err181 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/allOf/0/then/required",keyword:"required",params:{missingProperty: "checked_at"},message:"must have required property '"+"checked_at"+"'",schema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0].then.required,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0].then,data:data63};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}var _valid19 = _errs221 === errors;valid78 = _valid19;}if(!valid78){const err182 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0].if,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.allOf[0],data:data63};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.issuer === undefined){const err183 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/required",keyword:"required",params:{missingProperty: "issuer"},message:"must have required property '"+"issuer"+"'",schema:schema31.properties.nodes.items.properties.x_doc_cycle.required,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data63.state === undefined){const err184 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'",schema:schema31.properties.nodes.items.properties.x_doc_cycle.required,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}for(const key8 in data63){const _errs222 = errors;if(typeof key8 === "string"){if(!pattern4.test(key8)){const err185 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[0],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}const _errs225 = errors;let valid81 = false;const _errs226 = errors;if(!(((((((((key8 === "checked_at") || (key8 === "effective_from")) || (key8 === "effective_to")) || (key8 === "issuer")) || (key8 === "recheck_every")) || (key8 === "ref")) || (key8 === "state")) || (key8 === "updated_at")) || (key8 === "version"))){const err186 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[0],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var _valid20 = _errs226 === errors;valid81 = valid81 || _valid20;const _errs227 = errors;if(typeof key8 === "string"){if(!pattern17.test(key8)){const err187 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf[1],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}var _valid20 = _errs227 === errors;valid81 = valid81 || _valid20;if(!valid81){const err188 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames.allOf[1],data:key8,propertyName:key8};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}else {errors = _errs225;if(vErrors !== null){if(_errs225){vErrors.length = _errs225;}else {vErrors = null;}}}var valid79 = _errs222 === errors;if(!valid79){const err189 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/propertyNames",keyword:"propertyNames",params:{propertyName: key8},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_doc_cycle.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data63.issuer !== undefined){let data64 = data63.issuer;if(typeof data64 === "string"){if(func1(data64) < 1){const err190 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/issuer",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/issuer/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.issuer,data:data64};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}else {const err191 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/issuer",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/issuer/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.issuer.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.issuer,data:data64};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data63.ref !== undefined){let data65 = data63.ref;if(typeof data65 === "string"){if(func1(data65) < 1){const err192 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/ref",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.ref,data:data65};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/ref",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.ref.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.ref,data:data65};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data63.version !== undefined){let data66 = data63.version;if(typeof data66 === "string"){if(func1(data66) < 1){const err194 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/version",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.version,data:data66};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/version",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.version.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.version,data:data66};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data63.state !== undefined){let data67 = data63.state;if(!(((((((data67 === "draft") || (data67 === "enacted")) || (data67 === "expired")) || (data67 === "in_force")) || (data67 === "revoked")) || (data67 === "superseded")) || (data67 === "suspended"))){const err196 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/state",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/state/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_doc_cycle.properties.state.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.state.enum,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.state,data:data67};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data63.effective_from !== undefined){let data68 = data63.effective_from;if(typeof data68 === "string"){if(!(formats0.test(data68))){const err197 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_from",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_from/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_from,data:data68};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}else {const err198 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_from",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_from/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_from.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_from,data:data68};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data63.effective_to !== undefined){let data69 = data63.effective_to;if(typeof data69 === "string"){if(!(formats0.test(data69))){const err199 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_to",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_to/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_to,data:data69};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/effective_to",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/effective_to/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_to.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.effective_to,data:data69};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data63.updated_at !== undefined){let data70 = data63.updated_at;if(typeof data70 === "string"){if(!(formats0.test(data70))){const err201 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/updated_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/updated_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.updated_at,data:data70};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/updated_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.updated_at.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.updated_at,data:data70};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data63.checked_at !== undefined){let data71 = data63.checked_at;if(typeof data71 === "string"){if(!(formats0.test(data71))){const err203 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/checked_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/checked_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.checked_at,data:data71};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}else {const err204 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/checked_at",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/checked_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.checked_at.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.checked_at,data:data71};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data63.recheck_every !== undefined){let data72 = data63.recheck_every;if(typeof data72 !== "string"){const err205 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/recheck_every",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/recheck_every/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every,data:data72};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(typeof data72 === "string"){if(!pattern21.test(data72)){const err206 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/recheck_every",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/recheck_every/allOf/0/pattern",keyword:"pattern",params:{pattern: "^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"},message:"must match pattern \""+"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$"+"\"",schema:"^P(?:[0-9]+Y(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+M(?:[0-9]+W)?(?:[0-9]+D)?|[0-9]+W(?:[0-9]+D)?|[0-9]+D)$",parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.allOf[0],data:data72};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}const _errs247 = errors;const _errs248 = errors;if(errors === _errs248){if(typeof data72 === "string"){if(!pattern22.test(data72)){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}else {const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}var valid84 = _errs248 === errors;if(valid84){const err209 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle/recheck_every",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/properties/recheck_every/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.allOf[1].not,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle.properties.recheck_every.allOf[1],data:data72};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}else {errors = _errs247;if(vErrors !== null){if(_errs247){vErrors.length = _errs247;}else {vErrors = null;}}}}}else {const err210 = {instancePath:instancePath+"/nodes/" + i0+"/x_doc_cycle",schemaPath:"#/properties/nodes/items/properties/x_doc_cycle/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_doc_cycle.type,parentSchema:schema31.properties.nodes.items.properties.x_doc_cycle,data:data63};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data3.x_questionnaire !== undefined){let data73 = data3.x_questionnaire;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.name === undefined){const err211 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'",schema:schema31.properties.nodes.items.properties.x_questionnaire.required,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data73.questions === undefined){const err212 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/required",keyword:"required",params:{missingProperty: "questions"},message:"must have required property '"+"questions"+"'",schema:schema31.properties.nodes.items.properties.x_questionnaire.required,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}for(const key9 in data73){const _errs252 = errors;if(typeof key9 === "string"){if(!pattern4.test(key9)){const err213 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[0],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}const _errs255 = errors;let valid87 = false;const _errs256 = errors;if(!((((((key9 === "answer_draft") || (key9 === "answered_at")) || (key9 === "name")) || (key9 === "questions")) || (key9 === "role")) || (key9 === "verdict"))){const err214 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[0],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var _valid21 = _errs256 === errors;valid87 = valid87 || _valid21;const _errs257 = errors;if(typeof key9 === "string"){if(!pattern17.test(key9)){const err215 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf[1],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}var _valid21 = _errs257 === errors;valid87 = valid87 || _valid21;if(!valid87){const err216 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames.allOf[1],data:key9,propertyName:key9};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}else {errors = _errs255;if(vErrors !== null){if(_errs255){vErrors.length = _errs255;}else {vErrors = null;}}}var valid85 = _errs252 === errors;if(!valid85){const err217 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/propertyNames",keyword:"propertyNames",params:{propertyName: key9},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_questionnaire.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data73.name !== undefined){let data74 = data73.name;if(typeof data74 === "string"){if(func1(data74) < 1){const err218 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/name",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.name,data:data74};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/name",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.name.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.name,data:data74};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data73.questions !== undefined){let data75 = data73.questions;if(Array.isArray(data75)){if(data75.length < 1){const err220 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions,data:data75};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}const len2 = data75.length;for(let i2=0; i2<len2; i2++){let data76 = data75[i2];if(typeof data76 === "string"){if(func1(data76) < 1){const err221 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions/" + i2,schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.items,data:data76};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}else {const err222 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions/" + i2,schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/items/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.items.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.items,data:data76};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/questions",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/questions/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.questions,data:data75};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data73.answer_draft !== undefined){let data77 = data73.answer_draft;if(typeof data77 === "string"){if(func1(data77) < 1){const err224 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answer_draft",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answer_draft/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answer_draft,data:data77};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}else {const err225 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answer_draft",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answer_draft/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answer_draft.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answer_draft,data:data77};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data73.verdict !== undefined){let data78 = data73.verdict;if(!(((((data78 === "does_not_meet") || (data78 === "meets")) || (data78 === "not_applicable")) || (data78 === "partial")) || (data78 === "unknown"))){const err226 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/verdict",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/verdict/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_questionnaire.properties.verdict.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.verdict.enum,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.verdict,data:data78};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data73.answered_at !== undefined){let data79 = data73.answered_at;if(typeof data79 === "string"){if(!(formats0.test(data79))){const err227 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answered_at",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answered_at/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\"",schema:"date",parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answered_at,data:data79};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/answered_at",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/answered_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answered_at.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.answered_at,data:data79};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data73.role !== undefined){let data80 = data73.role;if(!(((data80 === "evidence_request") || (data80 === "evidence_requirement")) || (data80 === "item"))){const err229 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire/role",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/properties/role/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_questionnaire.properties.role.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_questionnaire.properties.role.enum,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire.properties.role,data:data80};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}}else {const err230 = {instancePath:instancePath+"/nodes/" + i0+"/x_questionnaire",schemaPath:"#/properties/nodes/items/properties/x_questionnaire/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_questionnaire.type,parentSchema:schema31.properties.nodes.items.properties.x_questionnaire,data:data73};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data3.x_severity !== undefined){let data81 = data3.x_severity;if(!(((((data81 === "critical") || (data81 === "high")) || (data81 === "info")) || (data81 === "low")) || (data81 === "medium"))){const err231 = {instancePath:instancePath+"/nodes/" + i0+"/x_severity",schemaPath:"#/properties/nodes/items/properties/x_severity/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_severity.enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_severity.enum,parentSchema:schema31.properties.nodes.items.properties.x_severity,data:data81};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data3.x_criterion !== undefined){let data82 = data3.x_criterion;const _errs274 = errors;let valid92 = true;const _errs275 = errors;if(errors === _errs275){if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing15;if((data82.ref === undefined) && (missing15 = "ref")){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}else {const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}var _valid22 = _errs275 === errors;errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}if(_valid22){const _errs277 = errors;const _errs278 = errors;const _errs279 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing16;if((data82.text === undefined) && (missing16 = "text")){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}var valid93 = _errs279 === errors;if(valid93){const err235 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[0].then.not,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[0].then,data:data82};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {errors = _errs278;if(vErrors !== null){if(_errs278){vErrors.length = _errs278;}else {vErrors = null;}}}var _valid22 = _errs277 === errors;valid92 = _valid22;}if(!valid92){const err236 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[0].if,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[0],data:data82};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const _errs281 = errors;let valid94 = true;const _errs282 = errors;if(!(data82 && typeof data82 == "object" && !Array.isArray(data82))){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}const _errs284 = errors;const _errs285 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing17;if((data82.ref === undefined) && (missing17 = "ref")){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}var valid95 = _errs285 === errors;if(valid95){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {errors = _errs284;if(vErrors !== null){if(_errs284){vErrors.length = _errs284;}else {vErrors = null;}}}var _valid23 = _errs282 === errors;errors = _errs281;if(vErrors !== null){if(_errs281){vErrors.length = _errs281;}else {vErrors = null;}}if(_valid23){const _errs286 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.text === undefined){const err240 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/1/then/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[1].then.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[1].then,data:data82};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}var _valid23 = _errs286 === errors;valid94 = _valid23;}if(!valid94){const err241 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[1].if,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[1],data:data82};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}const _errs288 = errors;let valid96 = true;const _errs289 = errors;if(errors === _errs289){if(data82 && typeof data82 == "object" && !Array.isArray(data82)){let missing18;if((data82.amends === undefined) && (missing18 = "amends")){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}else {const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}var _valid24 = _errs289 === errors;errors = _errs288;if(vErrors !== null){if(_errs288){vErrors.length = _errs288;}else {vErrors = null;}}if(_valid24){const _errs291 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.reason === undefined){const err244 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/2/then/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[2].then.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[2].then,data:data82};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}var _valid24 = _errs291 === errors;valid96 = _valid24;}if(!valid96){const err245 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema",schema:schema31.properties.nodes.items.properties.x_criterion.allOf[2].if,parentSchema:schema31.properties.nodes.items.properties.x_criterion.allOf[2],data:data82};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.id === undefined){const err246 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data82.version === undefined){const err247 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "version"},message:"must have required property '"+"version"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data82.registered_at === undefined){const err248 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "registered_at"},message:"must have required property '"+"registered_at"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data82.sha256 === undefined){const err249 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'",schema:schema31.properties.nodes.items.properties.x_criterion.required,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}for(const key10 in data82){const _errs292 = errors;if(typeof key10 === "string"){if(!pattern4.test(key10)){const err250 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[0],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}const _errs295 = errors;let valid99 = false;const _errs296 = errors;if(!(((((((((key10 === "amends") || (key10 === "id")) || (key10 === "reason")) || (key10 === "ref")) || (key10 === "registered_at")) || (key10 === "round")) || (key10 === "sha256")) || (key10 === "text")) || (key10 === "version"))){const err251 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[0],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}var _valid25 = _errs296 === errors;valid99 = valid99 || _valid25;const _errs297 = errors;if(typeof key10 === "string"){if(!pattern17.test(key10)){const err252 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf[1],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}var _valid25 = _errs297 === errors;valid99 = valid99 || _valid25;if(!valid99){const err253 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_criterion.propertyNames.allOf[1],data:key10,propertyName:key10};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}else {errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}}var valid97 = _errs292 === errors;if(!valid97){const err254 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/propertyNames",keyword:"propertyNames",params:{propertyName: key10},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_criterion.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data82.id !== undefined){let data83 = data82.id;if(typeof data83 === "string"){if(func1(data83) < 1){const err255 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/id",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.id,data:data83};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}else {const err256 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/id",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.id.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.id,data:data83};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}if(data82.version !== undefined){let data84 = data82.version;if((typeof data84 !== "string") && (!((typeof data84 == "number") && (!(data84 % 1) && !isNaN(data84))))){const err257 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/version",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/version/type",keyword:"type",params:{type: schema31.properties.nodes.items.properties.x_criterion.properties.version.type},message:"must be string,integer",schema:schema31.properties.nodes.items.properties.x_criterion.properties.version.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.version,data:data84};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(typeof data84 === "string"){if(func1(data84) < 1){const err258 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/version",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.version,data:data84};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}}if(data82.registered_at !== undefined){let data85 = data82.registered_at;if(typeof data85 === "string"){if(!pattern48.test(data85)){const err259 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/registered_at",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/registered_at/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},message:"must match pattern \""+"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"+"\"",schema:"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$",parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.registered_at,data:data85};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}else {const err260 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/registered_at",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/registered_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.registered_at.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.registered_at,data:data85};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data82.sha256 !== undefined){let data86 = data82.sha256;if(typeof data86 === "string"){if(!pattern19.test(data86)){const err261 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/sha256",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.sha256,data:data86};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}else {const err262 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/sha256",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.sha256.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.sha256,data:data86};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data82.ref !== undefined){let data87 = data82.ref;if(typeof data87 === "string"){if(func1(data87) < 1){const err263 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/ref",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.ref,data:data87};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/ref",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.ref.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.ref,data:data87};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data82.text !== undefined){let data88 = data82.text;if(typeof data88 === "string"){if(func1(data88) < 1){const err265 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/text",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.text,data:data88};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}else {const err266 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/text",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.text.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.text,data:data88};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}if(data82.amends !== undefined){let data89 = data82.amends;if(typeof data89 === "string"){if(func1(data89) < 1){const err267 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/amends",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/amends/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.amends,data:data89};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}else {const err268 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/amends",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/amends/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.amends.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.amends,data:data89};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}}if(data82.reason !== undefined){let data90 = data82.reason;if(typeof data90 === "string"){if(func1(data90) < 1){const err269 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/reason",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.reason,data:data90};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}else {const err270 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/reason",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.reason.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.reason,data:data90};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}if(data82.round !== undefined){let data91 = data82.round;if(typeof data91 === "string"){if(func1(data91) < 1){const err271 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/round",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/round/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.round,data:data91};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion/round",schemaPath:"#/properties/nodes/items/properties/x_criterion/properties/round/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_criterion.properties.round.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion.properties.round,data:data91};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}else {const err273 = {instancePath:instancePath+"/nodes/" + i0+"/x_criterion",schemaPath:"#/properties/nodes/items/properties/x_criterion/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_criterion.type,parentSchema:schema31.properties.nodes.items.properties.x_criterion,data:data82};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}if(data3.x_measured_under !== undefined){let data92 = data3.x_measured_under;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if(data92.measured_at === undefined){const err274 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/required",keyword:"required",params:{missingProperty: "measured_at"},message:"must have required property '"+"measured_at"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(data92.criteria === undefined){const err275 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/required",keyword:"required",params:{missingProperty: "criteria"},message:"must have required property '"+"criteria"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}for(const key11 in data92){const _errs318 = errors;if(typeof key11 === "string"){if(!pattern4.test(key11)){const err276 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[0],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}const _errs321 = errors;let valid103 = false;const _errs322 = errors;if(!(((((key11 === "criteria") || (key11 === "measured_at")) || (key11 === "round")) || (key11 === "subject")) || (key11 === "verdict"))){const err277 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[0],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid26 = _errs322 === errors;valid103 = valid103 || _valid26;const _errs323 = errors;if(typeof key11 === "string"){if(!pattern17.test(key11)){const err278 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf[1],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}var _valid26 = _errs323 === errors;valid103 = valid103 || _valid26;if(!valid103){const err279 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames.allOf[1],data:key11,propertyName:key11};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}else {errors = _errs321;if(vErrors !== null){if(_errs321){vErrors.length = _errs321;}else {vErrors = null;}}}var valid101 = _errs318 === errors;if(!valid101){const err280 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/propertyNames",keyword:"propertyNames",params:{propertyName: key11},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_measured_under.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data92.measured_at !== undefined){let data93 = data92.measured_at;if(typeof data93 === "string"){if(!pattern48.test(data93)){const err281 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/measured_at",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/measured_at/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"},message:"must match pattern \""+"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$"+"\"",schema:"^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?:[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]+)?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9]))?$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.measured_at,data:data93};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}else {const err282 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/measured_at",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/measured_at/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.measured_at.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.measured_at,data:data93};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}if(data92.criteria !== undefined){let data94 = data92.criteria;if(Array.isArray(data94)){if(data94.length < 1){const err283 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria,data:data94};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}const len3 = data94.length;for(let i3=0; i3<len3; i3++){let data95 = data94[i3];if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.criterion === undefined){const err284 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/required",keyword:"required",params:{missingProperty: "criterion"},message:"must have required property '"+"criterion"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data95.sha256 === undefined){const err285 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.required,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}for(const key12 in data95){const _errs330 = errors;if(typeof key12 === "string"){if(!pattern4.test(key12)){const err286 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/0/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[0],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}const _errs333 = errors;let valid109 = false;const _errs334 = errors;if(!((key12 === "criterion") || (key12 === "sha256"))){const err287 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/1/anyOf/0/enum",keyword:"enum",params:{allowedValues: schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[0].enum},message:"must be equal to one of the allowed values",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[0].enum,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[0],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}var _valid27 = _errs334 === errors;valid109 = valid109 || _valid27;const _errs335 = errors;if(typeof key12 === "string"){if(!pattern17.test(key12)){const err288 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/1/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^x_"},message:"must match pattern \""+"^x_"+"\"",schema:"^x_",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf[1],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}var _valid27 = _errs335 === errors;valid109 = valid109 || _valid27;if(!valid109){const err289 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1].anyOf,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames.allOf[1],data:key12,propertyName:key12};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs333;if(vErrors !== null){if(_errs333){vErrors.length = _errs333;}else {vErrors = null;}}}var valid107 = _errs330 === errors;if(!valid107){const err290 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/propertyNames",keyword:"propertyNames",params:{propertyName: key12},message:"property name must be valid",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.propertyNames,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data95.criterion !== undefined){let data96 = data95.criterion;if(typeof data96 === "string"){if(func1(data96) < 1){const err291 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/criterion",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/criterion/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.criterion,data:data96};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}else {const err292 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/criterion",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/criterion/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.criterion.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.criterion,data:data96};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}if(data95.sha256 !== undefined){let data97 = data95.sha256;if(typeof data97 === "string"){if(!pattern19.test(data97)){const err293 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/sha256",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\"",schema:"^[0-9a-f]{64}$",parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.sha256,data:data97};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}else {const err294 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3+"/sha256",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.sha256.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.properties.sha256,data:data97};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}}else {const err295 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria/" + i3,schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/items/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.items,data:data95};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}else {const err296 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/criteria",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/criteria/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.criteria,data:data94};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}if(data92.subject !== undefined){let data98 = data92.subject;if(!(data98 && typeof data98 == "object" && !Array.isArray(data98))){const err297 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/subject",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/subject/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.subject.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.subject,data:data98};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(data92.verdict !== undefined){let data99 = data92.verdict;if(typeof data99 === "string"){if(func1(data99) < 1){const err298 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/verdict",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/verdict/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.verdict,data:data99};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}else {const err299 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/verdict",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/verdict/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.verdict.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.verdict,data:data99};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(data92.round !== undefined){let data100 = data92.round;if(typeof data100 === "string"){if(func1(data100) < 1){const err300 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/round",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/round/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.round,data:data100};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}else {const err301 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under/round",schemaPath:"#/properties/nodes/items/properties/x_measured_under/properties/round/type",keyword:"type",params:{type: "string"},message:"must be string",schema:schema31.properties.nodes.items.properties.x_measured_under.properties.round.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under.properties.round,data:data100};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}else {const err302 = {instancePath:instancePath+"/nodes/" + i0+"/x_measured_under",schemaPath:"#/properties/nodes/items/properties/x_measured_under/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.properties.x_measured_under.type,parentSchema:schema31.properties.nodes.items.properties.x_measured_under,data:data92};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}}else {const err303 = {instancePath:instancePath+"/nodes/" + i0,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.nodes.items.type,parentSchema:schema31.properties.nodes.items,data:data3};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.nodes.type,parentSchema:schema31.properties.nodes,data:data2};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data.edges !== undefined){let data101 = data.edges;if(Array.isArray(data101)){const len4 = data101.length;for(let i4=0; i4<len4; i4++){let data102 = data101[i4];if(data102 && typeof data102 == "object" && !Array.isArray(data102)){for(const key13 in data102){const _errs350 = errors;if(typeof key13 === "string"){if(!pattern4.test(key13)){const err305 = {instancePath:instancePath+"/edges/" + i4,schemaPath:"#/properties/edges/items/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_-]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_-]*$"+"\"",schema:"^[A-Za-z_][A-Za-z0-9_-]*$",parentSchema:schema31.properties.edges.items.propertyNames,data:key13,propertyName:key13};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}var valid113 = _errs350 === errors;if(!valid113){const err306 = {instancePath:instancePath+"/edges/" + i4,schemaPath:"#/properties/edges/items/propertyNames",keyword:"propertyNames",params:{propertyName: key13},message:"property name must be valid",schema:schema31.properties.edges.items.propertyNames,parentSchema:schema31.properties.edges.items,data:data102};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}if(data102.x_confidence !== undefined){let data103 = data102.x_confidence;if(typeof data103 == "number"){if(data103 > 1 || isNaN(data103)){const err307 = {instancePath:instancePath+"/edges/" + i4+"/x_confidence",schemaPath:"#/properties/edges/items/properties/x_confidence/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1",schema:1,parentSchema:schema31.properties.edges.items.properties.x_confidence,data:data103};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data103 < 0 || isNaN(data103)){const err308 = {instancePath:instancePath+"/edges/" + i4+"/x_confidence",schemaPath:"#/properties/edges/items/properties/x_confidence/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0",schema:0,parentSchema:schema31.properties.edges.items.properties.x_confidence,data:data103};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {instancePath:instancePath+"/edges/" + i4+"/x_confidence",schemaPath:"#/properties/edges/items/properties/x_confidence/type",keyword:"type",params:{type: "number"},message:"must be number",schema:schema31.properties.edges.items.properties.x_confidence.type,parentSchema:schema31.properties.edges.items.properties.x_confidence,data:data103};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(data102.x_provisional !== undefined){let data104 = data102.x_provisional;if(typeof data104 !== "boolean"){const err310 = {instancePath:instancePath+"/edges/" + i4+"/x_provisional",schemaPath:"#/properties/edges/items/properties/x_provisional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean",schema:schema31.properties.edges.items.properties.x_provisional.type,parentSchema:schema31.properties.edges.items.properties.x_provisional,data:data104};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}}}else {const err311 = {instancePath:instancePath+"/edges/" + i4,schemaPath:"#/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.properties.edges.items.type,parentSchema:schema31.properties.edges.items,data:data102};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}else {const err312 = {instancePath:instancePath+"/edges",schemaPath:"#/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array",schema:schema31.properties.edges.type,parentSchema:schema31.properties.edges,data:data101};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}}else {const err313 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object",schema:schema31.type,parentSchema:schema31,data};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"meta":true,"nodes":true,"edges":true},"dynamicProps":false,"dynamicItems":false};
|