logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CSAF::Schema - "JSON::Validator" wrapper

Author

       •   Giuseppe Di Terlizzi <gdt@cpan.org>

Description

       CSAF::Schema is a wrapper for JSON::Validator.

   METHODS
       validator
           Load the provided schema (ID, URL or hash) and return JSON::Validator object.

Name

       CSAF::Schema - "JSON::Validator" wrapper

Support

Bugs/FeatureRequests
       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.

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

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

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

Synopsis

           use CSAF::Schema;

           my $schema = CSAF::Schema->validator('strict-csaf-2.0');
           my @errors = $schema->validate($data);

See Also