Config:...::Schema(3)

πŸ“¦ version 1.0, in epel 9

✨ Config::...::Schema(3) ✨

okay so bestie, this is the Config::Generator::Schema page from the Perl docs (User Contributed Perl Documentation, iykyk πŸ’…) β€” and it's literally the schema support module for Config::Generator. it's giving "small but mighty" and honestly? we love her for that 🫢


πŸŽ€ NAME πŸŽ€

Config::Generator::Schema β€” Config::Generator schema support ✨


🌸 DESCRIPTION 🌸

This module eases the manipulation of schemas used to validate the configuration data. no cap, that's the whole vibe β€” it makes wrangling those schemas way less of a struggle πŸ’–


πŸ¦‹ FUNCTIONS πŸ¦‹

This module provides the following functions, and bestie listen β€” none of them are exported by default πŸ™ˆ so you gotta ask for them yourself, okay?

  • extend_schema(NAME, SCHEMA) β€” extend the named schema. like giving it a little glow-up ✨
  • mandatory_subtree(NAME) β€” declare a part of the schema to be mandatory. no skipping this one, it's non-negotiable πŸ‘‘
  • register_schema(NAME, SCHEMA) β€” register the given SCHEMA under the given NAME. official filing, main character energy πŸ“‹
  • validate_basic() β€” perform a basic validation (before any schema is even known). baby's first vibe check 🌱
  • 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. put it through the test, bestie πŸ”

πŸ’œ CONSTANTS πŸ’œ

This module provides the following useful constants to simplify schema declarations β€” and again, none of them are exported by default, so grab them yourself πŸ™ˆ

⭐ The DEF_ crew ⭐

  • DEF_BOOLEAN
  • DEF_DURATION
  • DEF_HOSTNAME
  • DEF_INTEGER
  • DEF_NAME
  • DEF_NUMBER
  • DEF_PATH
  • DEF_SIZE
  • DEF_STRING

🌈 The OPT_ squad 🌈

  • OPT_BOOLEAN
  • OPT_DURATION
  • OPT_HOSTNAME
  • OPT_INTEGER
  • OPT_NAME
  • OPT_NUMBER
  • OPT_PATH
  • OPT_SIZE
  • OPT_STRING
  • OPT_STRING_LIST
  • OPT_STRING_TABLE

πŸ”₯ The REQ_ icons πŸ”₯

  • 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-2016 🌸


and that's the whole page bestie, every single constant accounted for, nothing skipped, we ate and left no crumbs πŸ’…πŸ“

perl v5.32.1 Β· 2019-07-26 Β· Config:...::Schema(3) β€” mwah, see u in the next manpage, ily! πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from