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 <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>
>



-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299*

*Blog  :    http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to