Example #1
0
 function startRule()
 {
     return parent::startRule()->mix(Rule::arrays(['REQUEST' => Rule::arrays(['object' => Rule::entity(['is', '/vendor/boolive/basic/text'])->required()])]));
 }
Example #2
0
 function startRule()
 {
     return parent::startRule()->mix(Rule::arrays(['REQUEST' => Rule::arrays(['object' => Rule::any([Rule::entity(['is', '/vendor/boolive/basic/user/title']), Rule::entity(['is', '/vendor/boolive/basic/user/email']), Rule::entity(['is', '/vendor/boolive/basic/user/password'])])])]));
 }