Skip to content

Commit ff4cfb7

Browse files
committed
Add schema file
A schema file might help remembering the new changelog format.
1 parent d10ada0 commit ff4cfb7

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<schema xmlns="http://www.w3.org/2001/XMLSchema"
3+
targetNamespace="https://logging.apache.org/log4j/log4j-changelog"
4+
xmlns:cl="https://logging.apache.org/log4j/log4j-changelog" elementFormDefault="qualified">
5+
6+
<element name="release">
7+
<complexType>
8+
<simpleContent>
9+
<extension base="string">
10+
<attribute name="version" use="required"/>
11+
<attribute name="date" use="required">
12+
<simpleType>
13+
<union memberTypes="date cl:tbd"/>
14+
</simpleType>
15+
</attribute>
16+
</extension>
17+
</simpleContent>
18+
</complexType>
19+
</element>
20+
21+
<simpleType name="tbd">
22+
<restriction base="string">
23+
<enumeration value="TBD"/>
24+
</restriction>
25+
</simpleType>
26+
27+
<element name="entry">
28+
<complexType>
29+
<sequence>
30+
<element name="issue" type="cl:issueType" minOccurs="0" maxOccurs="unbounded"/>
31+
<element name="author" type="cl:authorType" maxOccurs="unbounded"/>
32+
<element name="description" type="cl:descriptionType"/>
33+
</sequence>
34+
<attribute name="type" type="cl:changeType" use="required"/>
35+
</complexType>
36+
</element>
37+
38+
<complexType name="issueType">
39+
<simpleContent>
40+
<extension base="string">
41+
<attribute name="id" type="ID" use="required"/>
42+
<attribute name="link" type="anyURI" use="required"/>
43+
</extension>
44+
</simpleContent>
45+
</complexType>
46+
47+
<simpleType name="changeType">
48+
<restriction base="string">
49+
<enumeration value="added"/>
50+
<enumeration value="changed"/>
51+
<enumeration value="deprecated"/>
52+
<enumeration value="removed"/>
53+
<enumeration value="fixed"/>
54+
</restriction>
55+
</simpleType>
56+
57+
<complexType name="authorType">
58+
<simpleContent>
59+
<extension base="string">
60+
<attribute name="id" type="ID"/>
61+
<attribute name="name"/>
62+
</extension>
63+
</simpleContent>
64+
</complexType>
65+
66+
<complexType name="descriptionType">
67+
<simpleContent>
68+
<extension base="string">
69+
<attribute name="type" use="required"/>
70+
</extension>
71+
</simpleContent>
72+
</complexType>
73+
</schema>

0 commit comments

Comments
 (0)