Skip to content

Commit 1a70e48

Browse files
authored
Merge pull request #233 from patricklucas/190_move_datatype_type
[#190] Move `datatype` to repositorytypes.xsd
2 parents 1f3e4d9 + c429129 commit 1a70e48

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

repository/src/main/resources/xsd/repository.xsd

-21
Original file line numberDiff line numberDiff line change
@@ -108,27 +108,6 @@
108108
<xs:field xpath="@name"/>
109109
</xs:key>
110110
</xs:element>
111-
<xs:element name="datatype">
112-
<xs:complexType>
113-
<xs:sequence>
114-
<xs:element name="mappedDatatype" type="fixr:mappedDatatype" minOccurs="0" maxOccurs="unbounded"/>
115-
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
116-
</xs:sequence>
117-
<xs:attribute name="name" type="fixr:Name_t" use="required"/>
118-
<xs:attribute name="scenario" type="fixr:Name_t" default="base">
119-
<xs:annotation>
120-
<xs:documentation>The use case of a datatype by name</xs:documentation>
121-
</xs:annotation>
122-
</xs:attribute>
123-
<xs:attribute name="scenarioId" type="fixr:id_t" default="1">
124-
<xs:annotation>
125-
<xs:documentation>Unique identifier of a scenario. Default is '1' for base scenario.</xs:documentation>
126-
</xs:annotation>
127-
</xs:attribute>
128-
<xs:attribute name="baseType" type="fixr:Name_t"/>
129-
<xs:attributeGroup ref="fixr:entityAttribGrp"/>
130-
</xs:complexType>
131-
</xs:element>
132111
<xs:element name="datatypes">
133112
<xs:complexType>
134113
<xs:sequence>

repository/src/main/resources/xsd/repositorytypes.xsd

+21
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,27 @@
245245
</xs:sequence>
246246
<xs:attribute name="name" type="fixr:Name_t" use="required"/>
247247
</xs:complexType>
248+
<xs:element name="datatype">
249+
<xs:complexType>
250+
<xs:sequence>
251+
<xs:element name="mappedDatatype" type="fixr:mappedDatatype" minOccurs="0" maxOccurs="unbounded"/>
252+
<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
253+
</xs:sequence>
254+
<xs:attribute name="name" type="fixr:Name_t" use="required"/>
255+
<xs:attribute name="scenario" type="fixr:Name_t" default="base">
256+
<xs:annotation>
257+
<xs:documentation>The use case of a datatype by name</xs:documentation>
258+
</xs:annotation>
259+
</xs:attribute>
260+
<xs:attribute name="scenarioId" type="fixr:id_t" default="1">
261+
<xs:annotation>
262+
<xs:documentation>Unique identifier of a scenario. Default is '1' for base scenario.</xs:documentation>
263+
</xs:annotation>
264+
</xs:attribute>
265+
<xs:attribute name="baseType" type="fixr:Name_t"/>
266+
<xs:attributeGroup ref="fixr:entityAttribGrp"/>
267+
</xs:complexType>
268+
</xs:element>
248269
<xs:simpleType name="datatypeStandard_enum">
249270
<xs:restriction base="xs:string">
250271
<xs:enumeration value="ISO11404">

0 commit comments

Comments
 (0)