Skip to content

Commit

Permalink
feat: Add IsDynamicUnit + extends Unit content (#138)
Browse files Browse the repository at this point in the history
- add IsDynamicUnit + extends Unit content
- bump version
  • Loading branch information
BulotF authored Dec 11, 2024
1 parent 3b6bd14 commit d6fdd9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>fr.insee.pogues</groupId>
<artifactId>pogues-model</artifactId>
<version>1.4.2</version>
<version>1.5.0</version>
<packaging>jar</packaging>

<name>Pogues Model</name>
Expand Down
11 changes: 9 additions & 2 deletions src/main/resources/xsd/Questionnaire.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,16 @@
<xs:documentation>Number of decimal places.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Unit" type="xs:anyURI" minOccurs="0">
<xs:element name="IsDynamicUnit" type="xs:boolean" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of units available at INSEE is described in this file :
<xs:documentation>default value is false
Allows Unit to interpret the content of Unit (reference to a Variable or Uri leading to a static unit)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Unit" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>When dynamic, Unit contains a reference to a Variable (containing the value)
When not dynamic, Unit contains a Uri leading to an element of the list of units available at INSEE is described in this file:
https://github.com/InseeFr/DDI-Access-Services/blob/main/src/main/resources/measure-units.json.</xs:documentation>
</xs:annotation>
</xs:element>
Expand Down

0 comments on commit d6fdd9d

Please sign in to comment.