CSAF::...essage(3pm)
π 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 (thinkinfo, 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 justsay $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>
β LICENSE AND COPYRIGHT β
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
- ubuntu resolute: libcsaf-perl 0.26-1 Β· Artistic-2.0
- ubuntu stonking: libcsaf-perl 0.26-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms