CPAN::Kwalify(3pm)

πŸ’… CPAN::Kwalify β€” bestie edition

ok so this little icon is the interface between CPAN.pm and Kwalify.pm β€” like, it's the mutual friend that introduces them. fr fr, that's the whole name. 🫢


✨ SYNOPSIS ✨

use CPAN::Kwalify;
validate($schema_name, $data, $file, $doc);

that's it, that's the vibe check 🌸


πŸŽ€ DESCRIPTION πŸŽ€

_validate($schema_name, $data, $file, $doc)

okay so, breaking down the cast of characters 🧚:

  • $schema_name β€” the name of a supported schema. and bestie, currently only "distroprefs" is supported β€” that's the whole roster, one icon only πŸ‘‘
  • $data β€” the data that's getting validated, no cap
  • $file β€” the absolute path to the file the data are coming from
  • $doc β€” the index of the document within $doc that's the one being validated (yes, same name, don't @ me, that's literally what the manpage says πŸ’€)

the last two arguments? literally only there for better error reporting. they're not doing the heavy lifting, they're just there to make the error messages ✨serve✨

this function relies on being called from within CPAN.pm β€” it's not a solo act, it needs its context, iykyk

and the energy of this function is very "all or nothing" 😭 β€” it dies if something fails, and it does not return anything useful. no results, no little gift, just vibes and validation. periodt.

yaml($schema_name)

returns the YAML text of that schema πŸ“. simple, clean, iconic. and same deal β€” it dies if something fails. dramatic? maybe. effective? absolutely.


πŸ’– AUTHOR πŸ’–

Andreas Koenig <andk@cpan.org> β€” putting in the work so we can all validate our distroprefs in peace, we stan 🌈


πŸ‘‘ LICENSE πŸ‘‘

This program is free software β€” you can redistribute it and/or modify it under the same terms as Perl itself. slay.

See <http://www.perl.com/perl/misc/Artistic.html> for the deets πŸ“œ


okay that's the whole page bestie, go forth and validate responsibly πŸ’œβœ¨

sign-off szn: this masterpiece was brought to you by perl v5.42.3, dated 2026-11-03 β€” CPAN::Kwalify(3pm) out πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from