Skip to content

Commit 01f4603

Browse files
authored
Support "json" for config/option elements (#37)
1 parent 97a348c commit 01f4603

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/main/resources/concrete-cif-1.0.xsd

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@
343343
</xs:simpleType>
344344
</xs:attribute>
345345
<xs:attribute name="overwrite" type="xs:boolean" use="optional" />
346+
<xs:attribute name="json" type="xs:boolean" use="optional" />
346347
<xs:attribute name="package" type="handle" use="required" />
347348
</xs:extension>
348349
</xs:simpleContent>
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<concrete5-cif version="1.0">
3+
<config>
4+
<option name="o1" json="wrong" package="">foo</option>
5+
</config>
6+
</concrete5-cif>

src/test/resources/cifs-good/config.xml

+2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
<option name="o12" storage="database" package="my_package">foo</option>
1616
<option name="o13" storage="database" overwrite="false" package="my_package">foo</option>
1717
<option name="o14" storage="database" overwrite="true" package="my_package">foo</option>
18+
<option name="o14" storage="database" overwrite="true" json="false" package="my_package">foo</option>
19+
<option name="o14" storage="database" overwrite="true" json="true" package="my_package">true</option>
1820
</config>
1921
</concrete5-cif>

0 commit comments

Comments
 (0)