NAME
Config::Generator::Schema - Config::Generator schema support
DESCRIPTION
This module eases the manipulation of schemas used to validate the configuration data.
FUNCTIONS
This module provides the following functions (none of them being exported by default):
- extend_schema(NAME, SCHEMA)
-
extend the named schema
- mandatory_subtree(NAME)
-
declare a part of the schema to be mandatory
- register_schema(NAME, SCHEMA)
-
register the given SCHEMA under the given NAME
- validate_basic()
-
perform a basic validation (before any schema is even known)
- validate_before()
-
perform a schema-based validation (before the execution of the "check" hooks)
- validate_after()
-
perform a schema-based validation (after the execution of the "check" hooks)
- validate_data(DATA, NAME)
-
validate the given DATA using the given named schema
CONSTANTS
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
AUTHOR
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2013-2014