From 9cb705dedb71617abaf4604bf273b51b5ed56e91 Mon Sep 17 00:00:00 2001 From: "A.J. Stein" Date: Mon, 28 Oct 2024 21:40:55 -0400 Subject: [PATCH] Add a constraint for #221 to error on bad group-as This new constraint implements a check for the following issue comment. https://github.com/metaschema-framework/metaschema-java/issues/221#issuecomment-2442802840 --- schema/metaschema/metaschema-module-constraints.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schema/metaschema/metaschema-module-constraints.xml b/schema/metaschema/metaschema-module-constraints.xml index 91346dc..d2d5b6c 100644 --- a/schema/metaschema/metaschema-module-constraints.xml +++ b/schema/metaschema/metaschema-module-constraints.xml @@ -46,6 +46,11 @@ Ensure each import is a Metaschema module. Unable the resource at '{{ resolve-uri(@href) }}' is not a Metaschema module. + + Group-As Behavior Used with Valid Max-Occurs + Given group-as behavior for a parent assembly or field, you cannot have a group-as for multiple values. + The group-as for the parent location requires a max-occurs that is greater than 1 to support that feature. +