From 187d3bb8f2c30b9551b39c4739a0038fe6098214 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sat, 21 Oct 2023 09:36:27 +0200 Subject: [PATCH] Make TITRE_TEXT.#text optional for JORF articles --- src/lib/auditors/jorf/articles.ts | 2 +- src/lib/legal/jorf.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/auditors/jorf/articles.ts b/src/lib/auditors/jorf/articles.ts index e28fc53..5c5ded1 100644 --- a/src/lib/auditors/jorf/articles.ts +++ b/src/lib/auditors/jorf/articles.ts @@ -662,7 +662,7 @@ function auditTitreTxt(audit: Audit, dataUnknown: unknown): [unknown, unknown] { remainingKeys, auditTrimString, auditEmptyToNull, - auditRequire, + // auditRequire, ) audit.attribute( data, diff --git a/src/lib/legal/jorf.ts b/src/lib/legal/jorf.ts index c6da72a..debdef1 100644 --- a/src/lib/legal/jorf.ts +++ b/src/lib/legal/jorf.ts @@ -46,7 +46,7 @@ export interface JorfArticle { "@num"?: string "@num_parution_jo"?: string TITRE_TXT?: Array<{ - "#text": string + "#text"?: string "@c_titre_court"?: string "@debut": string "@fin": string