From ed5376120a3776b9a3cb97666f7de41934b5775a Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Thu, 21 Sep 2023 11:58:25 +0200 Subject: [PATCH] fields: Add pattern constraint for BT-1501(s)-Contract (TEDEFO-1964) Also add corresponding schematron rules. --- fields/fields.json | 8 ++++++-- schematrons/dynamic/validation-stage-3b.sch | 3 +++ schematrons/static/validation-stage-3b.sch | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/fields/fields.json b/fields/fields.json index 81da21122..3e2df752f 100644 --- a/fields/fields.json +++ b/fields/fields.json @@ -2,8 +2,8 @@ "ublVersion" : "2.3", "sdkVersion" : "eforms-sdk-1.10.0-SNAPSHOT", "metadataDatabase" : { - "version" : "1.9.58", - "createdOn" : "2023-09-19T16:34:47" + "version" : "1.9.60", + "createdOn" : "2023-09-21T11:22:09" }, "xmlStructure" : [ { "id" : "ND-Root", @@ -5888,6 +5888,10 @@ "severity" : "ERROR" } ] }, + "pattern" : { + "value" : "^(RESULT|((CON|RES|TEN|TPA|TPO|ORG)-\\d{4}))$", + "severity" : "ERROR" + }, "assert" : { "value" : "{ND-Root} ${TRUE}", "severity" : "ERROR", diff --git a/schematrons/dynamic/validation-stage-3b.sch b/schematrons/dynamic/validation-stage-3b.sch index 86b2ac5f8..f15303ae0 100644 --- a/schematrons/dynamic/validation-stage-3b.sch +++ b/schematrons/dynamic/validation-stage-3b.sch @@ -2529,6 +2529,9 @@ rule|text|BR-BT-01501-0102 + + rule|text|BR-BT-01501-0109 + rule|text|BR-BT-03202-0051 diff --git a/schematrons/static/validation-stage-3b.sch b/schematrons/static/validation-stage-3b.sch index 86b2ac5f8..f15303ae0 100644 --- a/schematrons/static/validation-stage-3b.sch +++ b/schematrons/static/validation-stage-3b.sch @@ -2529,6 +2529,9 @@ rule|text|BR-BT-01501-0102 + + rule|text|BR-BT-01501-0109 + rule|text|BR-BT-03202-0051