Skip to content

Commit

Permalink
Adjusting external constraints. Adjust constraint cardinality until a…
Browse files Browse the repository at this point in the history
… solution to usnistgov#548 is completed.
  • Loading branch information
david-waltermire committed Feb 23, 2024
1 parent ec4c9e1 commit 9527c94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion schema/metaschema/metaschema-module-constraints.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<metaschema-meta-constraints xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/metaschema/1.0 ../xml/metaschema-meta-constraints.xsd">
<import href="metaschema-module-metaschema.xml"/>
<context>
<metapath target="/metaschema-meta-constraints"/>
</context>
Expand Down
7 changes: 0 additions & 7 deletions schema/metaschema/metaschema-module-metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1302,13 +1302,6 @@
<description>Defines constraint rules to be applied to an existing set of Metaschema module-based models.</description>
<root-name>metaschema-meta-constraints</root-name>
<model>
<define-assembly name="import" max-occurs="unbounded">
<description>Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.</description>
<group-as name="imports" in-json="ARRAY"/>
<define-flag name="href" as-type="uri-reference" required="yes">
<description>A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition.</description>
</define-flag>
</define-assembly>
<define-assembly name="definition-context">
<define-flag name="name" as-type="token" required="yes"/>
<define-flag name="namespace" as-type="uri" required="yes"/>
Expand Down
1 change: 0 additions & 1 deletion schema/xml/metaschema-meta-constraints.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<xs:element name="metaschema-meta-constraints">
<xs:complexType>
<xs:sequence>
<xs:element name="import" type="MetaschemaImportType" maxOccurs="unbounded"/>
<xs:element name="context" type="ModelContextType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
Expand Down
6 changes: 3 additions & 3 deletions schema/xml/metaschema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
<xs:complexType name="DefineFlagConstraintsType">
<xs:sequence>
<xs:group ref="LetExpressionGroup"/>
<xs:choice maxOccurs="unbounded">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element minOccurs="0" name="allowed-values" type="AllowedValuesType">
<xs:annotation>
<xs:documentation>Constrains the allowed values for the flag.</xs:documentation>
Expand Down Expand Up @@ -1262,7 +1262,7 @@
<xs:complexType name="DefineFieldConstraintsType">
<xs:sequence>
<xs:group ref="LetExpressionGroup"/>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="TargetedCommonConstraintsGroup"/>
</xs:choice>
<xs:element name="remarks" type="RemarksType" minOccurs="0"/>
Expand All @@ -1272,7 +1272,7 @@
<xs:complexType name="DefineAssemblyConstraintsType">
<xs:sequence>
<xs:group ref="LetExpressionGroup"/>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="TargetedCommonConstraintsGroup"/>
<xs:group ref="AssemblyConstraintsGroup"/>
</xs:choice>
Expand Down

0 comments on commit 9527c94

Please sign in to comment.