Hi, Correct behavior is observed when carbon.governance.version is updated to 4.6.1, earlier it was 4.6.0.
Thanks! -Ayesha On Mon, Nov 23, 2015 at 2:00 PM, Chandana Napagoda <[email protected]> wrote: > Hi Ayesha, > > No, it's not. Governance API doesn't validate the fields when a value is > not present. You can check it in latest G-Reg pack. We(Chanaka and me) > implemented this for G-Reg 5.1.0 release. > > Regards, > Chandana > > On Mon, Nov 23, 2015 at 1:43 PM, Ayesha Dissanayaka <[email protected]> > 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: [email protected] <[email protected]> >> > > > > -- > *Chandana Napagoda* > Senior Software Engineer > WSO2 Inc. - http://wso2.org > > *Email : [email protected] <[email protected]>**Mobile : +94718169299 > <%2B94718169299>* > > *Blog : http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>* > > -- *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: [email protected] <[email protected]>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
