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$docthat'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
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms