/SampleApplication/ColdBox3/model/artist/Artist.xml
http://github.com/bobsilverberg/ValidateThisColdBoxPlugin · XML · 19 lines · 19 code · 0 blank · 0 comment · 0 complexity · f906ed27864a5720be4c841a791d1277 MD5 · raw file
- <?xml version="1.0" encoding="UTF-8"?>
- <validateThis xsi:noNamespaceSchemaLocation="validateThis.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <objectProperties>
- <property name="Firstname" desc="First Name">
- <rule type="required" />
- </property>
- <property name="Lastname" desc="Last Name">
- <rule type="required" />
- <rule type="rangelength" contexts="*">
- <param minlength="5" />
- <param maxlength="10" />
- </rule>
- </property>
- <property name="email" desc="Email Address">
- <rule type="required" />
- <rule type="email" failureMessage="Hey, buddy, you call that an Email Address?" />
- </property>
- </objectProperties>
- </validateThis>