What will happen if I do a patten like "^.*$" . In this case even the empty string matches. Will it still throw an error if I didn't send anything.?
On Mon, Nov 23, 2015 at 1:43 PM, Ayesha Dissanayaka <aye...@wso2.com> wrote: > Hi all, > > As of now, governance API validates all the fields which has > validate="<some-regex>" attribute in the field, and throws an exception > whenever regex is not matched with input value. Hence, such fields get > required by default even thought required="true" is not set to the field > definition in RXT. > > ex: > <field type="text" validate="^\d+$"> > <name>Age</name> > </field> > > Should this be the default behavior or should we only check regex match > for fields which are explicitly defined to be required. > > > Thanks! > -Ayesha > > -- > *Ayesha Dissanayaka* > Software Engineer, > WSO2, Inc : http://wso2.com > <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> > 20, Palmgrove Avenue, Colombo 3 > E-Mail: aye...@wso2.com <ayshsa...@gmail.com> > -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev