diff --git a/src/lib/auditors/legi/articles.ts b/src/lib/auditors/legi/articles.ts index aa02990..1787814 100644 --- a/src/lib/auditors/legi/articles.ts +++ b/src/lib/auditors/legi/articles.ts @@ -579,6 +579,7 @@ function auditTexte(audit: Audit, dataUnknown: unknown): [unknown, unknown] { const remainingKeys = new Set(Object.keys(data)) for (const key of [ "@autorite", + "@cid", "@ministere", "@nor", "@num", @@ -594,16 +595,6 @@ function auditTexte(audit: Audit, dataUnknown: unknown): [unknown, unknown] { auditEmptyToNull, ) } - audit.attribute( - data, - "@cid", - true, - errors, - remainingKeys, - auditTrimString, - auditEmptyToNull, - auditRequire, - ) for (const key of ["@date_publi", "@date_signature"]) { audit.attribute( data, @@ -613,7 +604,6 @@ function auditTexte(audit: Audit, dataUnknown: unknown): [unknown, unknown] { remainingKeys, auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")), auditDateIso8601String, - auditRequire, ) } audit.attribute( diff --git a/src/lib/legal/legi.ts b/src/lib/legal/legi.ts index 0836692..2a40ab0 100644 --- a/src/lib/legal/legi.ts +++ b/src/lib/legal/legi.ts @@ -7,9 +7,9 @@ export interface LegiArticle { CONTEXTE: { TEXTE: { "@autorite"?: string - "@cid": string - "@date_publi": string - "@date_signature": string + "@cid"?: string + "@date_publi"?: string + "@date_signature"?: string "@ministere"?: string "@nature"?: LegiArticleTexteNature "@nor"?: string