Skip to content

Commit

Permalink
Merge pull request #76 from InseeFr/dev-lunatic-format-control-type
Browse files Browse the repository at this point in the history
Dev lunatic format control type
  • Loading branch information
ORogel authored Oct 19, 2022
2 parents 390a08a + 9dad64a commit 926a4ef
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<groupId>fr.insee.lunatic</groupId>
<artifactId>lunatic-model</artifactId>
<packaging>jar</packaging>
<version>2.3.0</version>

<version>2.3.1</version>

<name>Lunatic Model</name>
<description>Classes and converters for the Lunatic model</description>
<url>http://www.insee.fr</url>
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/xsd/LunaticModel.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,14 @@
<xs:enumeration value="DETACHABLE"/>
</xs:restriction>
</xs:simpleType>

<xs:complexType name="ControlType">
<xs:sequence>
<xs:element name="control" type="labelType"/>
<xs:element name="errorMessage" type="labelType"/>
<xs:element name="bindingDependencies" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" />
<xs:attribute name="typeOfControl" type="ControlTypeOfControlEnum"/>
<xs:attribute name="criticality" type="ControlCriticityEnum"/>
</xs:complexType>
<xs:simpleType name="ControlCriticityEnum">
Expand All @@ -554,6 +554,12 @@
<xs:enumeration value="ERROR"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ControlTypeOfControlEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="FORMAT"/>
<xs:enumeration value="CONSISTENCY"/>
</xs:restriction>
</xs:simpleType>

<xs:complexType name="CleaningType">
<xs:sequence maxOccurs="unbounded">
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/xsd/LunaticModelFlat.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
<xs:element name="bindingDependencies" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" />
<xs:attribute name="typeOfControl" type="ControlTypeOfControlEnum"/>
<xs:attribute name="criticality" type="ControlCriticityEnum"/>
</xs:complexType>
<xs:simpleType name="ControlCriticityEnum">
Expand All @@ -549,6 +550,12 @@
<xs:enumeration value="ERROR"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ControlTypeOfControlEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="FORMAT"/>
<xs:enumeration value="CONSISTENCY"/>
</xs:restriction>
</xs:simpleType>

<xs:complexType name="CleaningType">
<xs:sequence maxOccurs="unbounded">
Expand Down

0 comments on commit 926a4ef

Please sign in to comment.