Config::Generator::Schema - Config::Generator schema support
This module eases the manipulation of schemas used to validate the configuration data.
This module provides the following functions (none of them being exported by default):
extend the named schema
declare a part of the schema to be mandatory
register the given SCHEMA under the given NAME
perform a basic validation (before any schema is even known)
perform a schema-based validation (before the execution of the "check" hooks)
perform a schema-based validation (after the execution of the "check" hooks)
validate the given DATA using the given named schema
This module provides the following useful constants to simplify schema declarations (none of them being exported by default):
DEF_BOOLEAN
DEF_DURATION
DEF_HOSTNAME
DEF_INTEGER
DEF_NAME
DEF_NUMBER
DEF_PATH
DEF_SIZE
DEF_STRING
OPT_BOOLEAN
OPT_DURATION
OPT_HOSTNAME
OPT_INTEGER
OPT_NAME
OPT_NUMBER
OPT_PATH
OPT_SIZE
OPT_STRING
OPT_STRING_LIST
OPT_STRING_TABLE
REQ_BOOLEAN
REQ_DURATION
REQ_HOSTNAME
REQ_INTEGER
REQ_NAME
REQ_NUMBER
REQ_PATH
REQ_SIZE
REQ_STRING
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2013-2016
To install Config::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Generator
CPAN shell
perl -MCPAN -e shell install Config::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.