Skip to content

Commit 3489746

Browse files
authored
Add XSD for changelog files
2 parents e8801fa + f29ebd3 commit 3489746

File tree

2 files changed

+87
-1
lines changed

2 files changed

+87
-1
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ target/
1818
*.iml
1919
*.iws
2020
/out
21-
dependency-reduced-pom.xml
21+
.flattened-pom.xml
22+
# Eclipse
23+
.project
24+
.classpath
25+
.settings/
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
https://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<schema xmlns="http://www.w3.org/2001/XMLSchema"
19+
targetNamespace="https://logging.apache.org/log4j/changelog"
20+
xmlns:cl="https://logging.apache.org/log4j/changelog" elementFormDefault="qualified">
21+
22+
<element name="release">
23+
<complexType>
24+
<simpleContent>
25+
<extension base="string">
26+
<attribute name="version" use="required"/>
27+
<attribute name="date" type="date" use="required"/>
28+
<attribute name="schemaVersion" use="required" fixed="1.0"/>
29+
</extension>
30+
</simpleContent>
31+
</complexType>
32+
</element>
33+
34+
<element name="entry">
35+
<complexType>
36+
<sequence>
37+
<element name="issue" type="cl:issueType" minOccurs="0" maxOccurs="unbounded"/>
38+
<element name="author" type="cl:authorType" maxOccurs="unbounded"/>
39+
<element name="description" type="cl:descriptionType"/>
40+
</sequence>
41+
<attribute name="type" type="cl:changeType" use="required"/>
42+
<attribute name="schemaVersion" use="required" fixed="1.0"/>
43+
</complexType>
44+
</element>
45+
46+
<complexType name="issueType">
47+
<simpleContent>
48+
<extension base="string">
49+
<attribute name="id" type="string" use="required"/>
50+
<attribute name="link" type="anyURI" use="required"/>
51+
</extension>
52+
</simpleContent>
53+
</complexType>
54+
55+
<simpleType name="changeType">
56+
<restriction base="string">
57+
<enumeration value="added"/>
58+
<enumeration value="changed"/>
59+
<enumeration value="deprecated"/>
60+
<enumeration value="removed"/>
61+
<enumeration value="fixed"/>
62+
<enumeration value="security"/>
63+
</restriction>
64+
</simpleType>
65+
66+
<complexType name="authorType">
67+
<simpleContent>
68+
<extension base="string">
69+
<attribute name="id" type="string"/>
70+
<attribute name="name"/>
71+
</extension>
72+
</simpleContent>
73+
</complexType>
74+
75+
<complexType name="descriptionType">
76+
<simpleContent>
77+
<extension base="string">
78+
<attribute name="format" type="string" use="required" fixed="asciidoc"/>
79+
</extension>
80+
</simpleContent>
81+
</complexType>
82+
</schema>

0 commit comments

Comments
 (0)