1Validation::Class::DireUcsteirveC:o:nRterqiubiurteeddV(a3Pl)eirdlatDioocnu:m:eCnltaastsi:o:nDirective::Required(3)
2
3
4

NAME

6       Validation::Class::Directive::Required - Required Directive for
7       Validation Class Field Definitions
8

VERSION

10       version 7.900059
11

SYNOPSIS

13           use Validation::Class::Simple;
14
15           my $rules = Validation::Class::Simple->new(
16               fields => {
17                   search_query => {
18                       required => 1
19                   }
20               }
21           );
22
23           # set parameters to be validated
24           $rules->params->add($parameters);
25
26           # validate
27           unless ($rules->validate) {
28               # handle the failures
29           }
30

DESCRIPTION

32       Validation::Class::Directive::Required is a core validation class field
33       directive that handles validation of supply and demand.
34

AUTHOR

36       Al Newkirk <anewkirk@ana.io>
37
39       This software is copyright (c) 2011 by Al Newkirk.
40
41       This is free software; you can redistribute it and/or modify it under
42       the same terms as the Perl 5 programming language system itself.
43
44
45
46perl v5.38.0                      2023V-a0l7i-d2a1tion::Class::Directive::Required(3)
Impressum