CSAF-VALIDATOR(1p)

πŸ“¦
version 0.26 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay bestie so <pink>csaf-validator</pink> is literally the CSAF Validator πŸ’– β€” it's a lil command-line girly that checks your CSAF documents and yells at you (politely, in brackets) when something's off. this is a 1p page from the User Contributed Perl Documentation section, so yes, it's Perl, and yes, she's serving 🫢


🌸 SYNOPSIS 🌸

the way she wants to be called, bestie:

csaf-validator --file PATH
csaf-validator [--help|--man|-v]

and the options she takes:

Options:
  -f, --file PATH   CSAF document path
      --help        Brief help message
      --man         Full documentation
  -v, --version     Print version

πŸŽ€ DESCRIPTION πŸŽ€

"csaf-validator" β€” CSAF Validator. that's it, that's the whole description. she's an icon, she doesn't need to over-explain herself πŸ’…βœ¨


πŸ’– OPTIONS πŸ’–

  • -f, --file PATH β€” the path to your CSAF document. point her at it and she'll do her thing πŸ¦‹
  • --help β€” gives you the brief, snack-sized help message. quick lil vibe check πŸ‘‘
  • --man β€” serves you the full documentation, the whole main-character deep dive πŸ“–βœ¨
  • -v, --version β€” prints the version. she'll tell you exactly which era of herself you're dealing with πŸ’€

🌈 EXAMPLES 🌈

here's her in action, slaying (and reading) fr fr:

$ csaf-validator -f csaf-document.json
[error] /document/tracking/revision_history: Sorted Revision History (6.1.14 - mandatory)
[error] /document/tracking/version: Detected newer revision of document (6.1.16 - mandatory)

not her being all dramatic with two errors at once 😭 but like, mandatory checks are mandatory, no cap.

and yes, she takes input from a pipe too, because she's flexible like that 🫢

$ cat csaf-document.json | csaf-validator
[error] /product_tree/branches/0/branches/0/branches/name: Version Range in Product Version (6.1.31 - mandatory)

look at that nested path. /product_tree/branches/0/branches/0/branches/name really said "let me make your life difficult" and she caught it anyway πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

  • csaf-rolie β€” go check out the sibling, she's cool too πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Giuseppe Di Terlizzi <https://metacpan.org/author/gdt> β€” the mastermind, the moment, the legend 🌟


Copyright Β© 2023-2025 Giuseppe Di Terlizzi <https://metacpan.org/author/gdt>

bestie this part matters so read it, don't skip: You may use and distribute this module according to the same terms that Perl is distributed under. same terms as Perl, periodt πŸ’–

and that's a wrap, gorgeous ✨ this was CSAF-VALIDATOR(1p), served up by perl v5.40.1, dated 2025-09-03 πŸŽ€ go validate something and slay πŸ’…πŸ«Ά

πŸ“¦ where this page comes from