PKWALIFY(1p)

πŸ“¦
version 1.24 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– PKWALIFY πŸ’–

okay bestie, so pkwalify is your lil validation bestie for Kwalify schemas on data structures πŸŽ€. That's the whole vibe.


🌸 SYNOPSIS 🌸

pkwalify [-v] [-s] [-m parse-mod] -f schemafile datafile

✨ DESCRIPTION ✨

so basically, <pink>pkwalify</pink> takes the data in datafile (which can be a YAML file or a JSON file, pick your fighter πŸ’…) and validates it against a schema you defined over in schemafile (which, plot twist, can also be a YAML or a JSON file πŸ¦‹). Matching energy, matched vibes, no cap.

Now, the literal requirement here β€” and this is not optional, it's giving prerequisites β€” is that you need one of these installed to parse YAML files:

  • YAML
  • YAML::XS
  • YAML::Syck

…or one of these for JSON files:

  • JSON
  • JSON::XS

orrr you can just pass the module straight up on the command line, main character style πŸ‘‘ (that's the -m flag, we'll get there, stay with me).

The program returns the number of errors found in datafile. An exit status of 0 means no errors. Zero. None. Clean. Immaculate. 🧚

bestie please remember: the exit status IS the error count, so a nonzero exit doesn't just mean "eh it kinda failed" β€” it's literally telling you how many things went wrong 😭

πŸ’… OPTIONS πŸ’…

  • -f schemafile β€” point at your schema file, and it can be YAML or JSON. This one is Required. like, you cannot skip it, it's not a suggestion, it's the whole assignment πŸ™ˆ
  • -m parse-mod β€” tell pkwalify which YAML or JSON Perl module to use. The valid modules are, and I'm quoting the roster exactly: YAML, YAML::XS, YAML::Syck, JSON and JSON::XS. That's the list. Don't get creative πŸŽ€
  • -s β€” be silent if the document is valid. no notes, no fanfare, just quiet success ✨
  • -v β€” show the script and module versions and exit. Little version reveal moment πŸ’–
  • -h, --help β€” show a summary of the options. Your lil cheat sheet 🫢

🌈 AUTHOR 🌈

Slaven ReziΔ‡, <srezic@cpan.org> πŸ’œ β€” yes the legend himself.


⭐ SEE ALSO ⭐

go be nosy, bestie:

  • Kwalify
  • kwalify(1)
  • JSON
  • JSON::XS
  • YAML
  • YAML::XS
  • YAML::Syck

and that's the whole page, periodt πŸ’… this doc is living under perl v5.40.1, dated 2026-01-27, filed in section PKWALIFY(1p). slay, go validate something πŸ¦‹βœ¨

πŸ“¦ where this page comes from