condition and check
This commit is contained in:
@ -20,7 +20,6 @@
|
||||
<constraints>
|
||||
<check name="valid_enum" target="enumvar">
|
||||
<param>['a', 'b', 'c', 'é']</param>
|
||||
<param name="checkval">False</param>
|
||||
</check>
|
||||
</constraints>
|
||||
|
||||
|
@ -1 +1 @@
|
||||
{"creole.general.mode_conteneur_actif": "non", "creole.enumfam.enumvar": "a"}
|
||||
{"creole.general.mode_conteneur_actif": "non", "creole.enumfam.enumvar": "c"}
|
||||
|
@ -1,10 +1,5 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<creole>
|
||||
<constraints>
|
||||
<check name="valid_enum" target="creole.enumfam.enumvar" transitive="True" warnings_only="False">
|
||||
<param type="string">['a', 'b', 'c', 'é']</param>
|
||||
</check>
|
||||
</constraints>
|
||||
<family doc="" name="creole">
|
||||
<family doc="general" name="general">
|
||||
<property>expert</property>
|
||||
@ -18,10 +13,14 @@
|
||||
</family>
|
||||
<family doc="enumfam" name="enumfam">
|
||||
<property>expert</property>
|
||||
<variable doc="multi" help="bla bla bla" multi="False" name="enumvar" type="string">
|
||||
<variable doc="multi" help="bla bla bla" multi="False" name="enumvar" type="choice">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<choice type="string">é</choice>
|
||||
<property>mandatory</property>
|
||||
<property>expert</property>
|
||||
<value>a</value>
|
||||
<value type="string">c</value>
|
||||
</variable>
|
||||
</family>
|
||||
<separators/>
|
||||
|
Reference in New Issue
Block a user