valid_enum is now choice

This commit is contained in:
2021-05-01 18:32:45 +02:00
parent d7a1a52ebb
commit b35d930d7e
91 changed files with 556 additions and 761 deletions

View File

@ -7,17 +7,15 @@
</variable>
<family name="leader" description="leader" leadership="True">
<variable name="leader" type="string" description="leader" multi="True"/>
<variable name="follower1" type="string" description="follower1"/>
<variable name="follower1" type="choice" description="follower1">
<choice type="string">a</choice>
<choice type="string">b</choice>
<choice type="string">c</choice>
<value type="string">a</value>
</variable>
<variable name="follower2" type="string" description="follower2"/>
</family>
</family>
</variables>
<constraints>
<check name="valid_enum">
<param>a</param>
<param>b</param>
<param>c</param>
<target>follower1</target>
</check>
</constraints>
<constraints/>
</rougail>