Skip to content

Commit 1ec4bfb

Browse files
committed
Minor log4j-changelog XSD improvements (#13)
1 parent 30724a7 commit 1ec4bfb

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ij_any_while_brace_force = always
5656
ij_java_doc_align_param_comments = false
5757
ij_java_doc_align_exception_comments = false
5858

59-
[*.{xml,properties,yml,yaml,json}]
59+
[*.{xml,xsd,properties,yml,yaml,json}]
6060
indent_size = 2
6161

6262
[*.{md,adoc}]

CHANGELOG.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ limitations under the License.
1717
1818
== Unreleased
1919
20+
* Added XSD for `log4j-changelog` XML files (for https://github.com/apache/logging-log4j-tools/issues/13[#13] by Piotr P. Karwasz, Volkan Yazıcı)
21+
2022
* Added `log4j-changelog-maven-plugin` module and renamed `log4j.changelog.exporter.outputDirectory` property to `log4j.changelog.outputDirectory` (for https://github.com/apache/logging-log4j-tools/issues/20[#20] by Ralph Goers, Volkan Yazıcı)
2123
2224
== 0.1.0 (2023-01-10)

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

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
limitations under the License.
1717
-->
1818
<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">
19+
targetNamespace="https://logging.apache.org/log4j/changelog"
20+
xmlns:cl="https://logging.apache.org/log4j/changelog"
21+
elementFormDefault="qualified"
22+
version="0.1.0">
2123

2224
<element name="release">
2325
<complexType>
2426
<simpleContent>
2527
<extension base="string">
2628
<attribute name="version" use="required"/>
2729
<attribute name="date" type="date" use="required"/>
28-
<attribute name="schemaVersion" use="required" fixed="1.0"/>
2930
</extension>
3031
</simpleContent>
3132
</complexType>
@@ -39,7 +40,6 @@
3940
<element name="description" type="cl:descriptionType"/>
4041
</sequence>
4142
<attribute name="type" type="cl:changeType" use="required"/>
42-
<attribute name="schemaVersion" use="required" fixed="1.0"/>
4343
</complexType>
4444
</element>
4545

@@ -67,7 +67,7 @@
6767
<simpleContent>
6868
<extension base="string">
6969
<attribute name="id" type="string"/>
70-
<attribute name="name"/>
70+
<attribute name="name" type="string"/>
7171
</extension>
7272
</simpleContent>
7373
</complexType>
@@ -79,4 +79,5 @@
7979
</extension>
8080
</simpleContent>
8181
</complexType>
82+
8283
</schema>

0 commit comments

Comments
 (0)