CSAF::...essage(3pm)

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

πŸ’– NAME πŸ’–

CSAF::Validator::Message β€” it's the Validator Message class, bestie. That's it, that's the whole name. ✨


🌸 SYNOPSIS 🌸

okay so here's the vibe, literally just look:

use CSAF::Validator::Message;

my $message = CSAF::Validator::Message->new(
    type     => 'info',
    category => 'MY-CATEGORY',
    message  => 'Test message',
    path     => '/document',
    code     => '200'
);

say $message; # [info] /document: Test message (200 - MY-CATEGORY)

and boom πŸ’… you print it and it gives you exactly that string up there in the comment. no notes.


πŸ¦‹ DESCRIPTION πŸ¦‹

So this is the Message class for CSAF::Validator. She's the lil container that holds one (1) validator message. Nothing scary, she's just carrying your info around and looking cute doing it. πŸŽ€

πŸ’œ PROPERTIES

These are her attributes, her whole personality honestly:

  • message β€” the actual text of the message, the words, the content. πŸ‘‘
  • code β€” the code, like a lil numeric label riding along with it.
  • path β€” where in the document this message is pointing, the location basically.
  • type β€” the type of the message (think info, that kind of energy).
  • category β€” the category it belongs to, her little clique.

✨ METHODS

  • to_string β€” turns the whole thing into a string. This is literally the method doing the heavy lifting when you just say $message, no cap.
  • TO_JSON β€” hands you back the JSON-y representation so you can serialise her and send her wherever. slay.

🫢 SUPPORT 🫢

πŸ› Bugs / Feature Requests

If something's broken, or you're like "bestie this needs a feature", please report any bugs or feature requests through the issue tracker at <https://github.com/giterlizzi/perl-CSAF/issues>. You will be notified automatically of any progress on your issue. automatic updates, we love that for you. πŸ”₯

🧚 Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license. come vibe with the code fr fr.

<https://github.com/giterlizzi/perl-CSAF>

git clone https://github.com/giterlizzi/perl-CSAF.git

🌈 AUTHOR 🌈

  • Giuseppe Di Terlizzi <gdt@cpan.org>

This software is copyright (c) 2023-2025 by Giuseppe Di Terlizzi.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

periodt. free software, same terms as Perl 5, go wild (responsibly) πŸ’…

okay that's the whole page bestie!! this was perl v5.40.1, dated 2025-09-03, and it's the CSAF::Validator::Message page from the User Contributed Perl Documentation πŸ’– mwah, go validate something ✨

πŸ“¦ where this page comes from