Skip to content

Commit f29ebd3

Browse files
committed
Minor fixups
* adds a `schemaVersion` attribute, * replaces `ID` with a more liberal `string`, * removes `TBD` as date value.
1 parent b6634e9 commit f29ebd3

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

log4j-changelog/src/main/resources/log4j-changelog.xsd

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,21 @@
1616
limitations under the License.
1717
-->
1818
<schema xmlns="http://www.w3.org/2001/XMLSchema"
19-
targetNamespace="https://logging.apache.org/log4j/log4j-changelog"
20-
xmlns:cl="https://logging.apache.org/log4j/log4j-changelog" elementFormDefault="qualified">
19+
targetNamespace="https://logging.apache.org/log4j/changelog"
20+
xmlns:cl="https://logging.apache.org/log4j/changelog" elementFormDefault="qualified">
2121

2222
<element name="release">
2323
<complexType>
2424
<simpleContent>
2525
<extension base="string">
2626
<attribute name="version" use="required"/>
27-
<attribute name="date" use="required">
28-
<simpleType>
29-
<union memberTypes="date cl:tbd"/>
30-
</simpleType>
31-
</attribute>
27+
<attribute name="date" type="date" use="required"/>
28+
<attribute name="schemaVersion" use="required" fixed="1.0"/>
3229
</extension>
3330
</simpleContent>
3431
</complexType>
3532
</element>
3633

37-
<simpleType name="tbd">
38-
<restriction base="string">
39-
<enumeration value="TBD"/>
40-
</restriction>
41-
</simpleType>
42-
4334
<element name="entry">
4435
<complexType>
4536
<sequence>
@@ -48,6 +39,7 @@
4839
<element name="description" type="cl:descriptionType"/>
4940
</sequence>
5041
<attribute name="type" type="cl:changeType" use="required"/>
42+
<attribute name="schemaVersion" use="required" fixed="1.0"/>
5143
</complexType>
5244
</element>
5345

@@ -74,7 +66,7 @@
7466
<complexType name="authorType">
7567
<simpleContent>
7668
<extension base="string">
77-
<attribute name="id" type="ID"/>
69+
<attribute name="id" type="string"/>
7870
<attribute name="name"/>
7971
</extension>
8072
</simpleContent>

0 commit comments

Comments
 (0)