Skip to content

Commit

Permalink
Support "json" for config/option elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Nov 27, 2024
1 parent 97a348c commit 2d5be17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/concrete-cif-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
</xs:simpleType>
</xs:attribute>
<xs:attribute name="overwrite" type="xs:boolean" use="optional" />
<xs:attribute name="json" type="xs:boolean" use="optional" />
<xs:attribute name="package" type="handle" use="required" />
</xs:extension>
</xs:simpleContent>
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/cifs-bad/config-7.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<concrete5-cif version="1.0">
<config>
<option name="o1" json="wrong" package="">foo</option>
</config>
</concrete5-cif>
2 changes: 2 additions & 0 deletions src/test/resources/cifs-good/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
<option name="o12" storage="database" package="my_package">foo</option>
<option name="o13" storage="database" overwrite="false" package="my_package">foo</option>
<option name="o14" storage="database" overwrite="true" package="my_package">foo</option>
<option name="o14" storage="database" overwrite="true" json="false" package="my_package">foo</option>
<option name="o14" storage="database" overwrite="true" json="true" package="my_package">true</option>
</config>
</concrete5-cif>

0 comments on commit 2d5be17

Please sign in to comment.