File: csaf-validator

package info (click to toggle)
libcsaf-perl 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,280 kB
  • sloc: perl: 7,583; makefile: 2
file content (57 lines) | stat: -rwxr-xr-x 1,262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/perl

use strict;
use warnings;
use utf8;

use App::CSAF::Validator;

exit App::CSAF::Validator->run(@ARGV) unless caller();

1;

__END__
=encoding utf-8

=head1 NAME

csaf-validator - CSAF Validator

=head1 SYNOPSIS

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

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

=head1 DESCRIPTION

C<csaf-validator> CSAF Validator

=head1 EXAMPLES

    $ 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)

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

=head1 SEE ALSO

L<csaf-rolie>

=head1 AUTHOR

L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>

=head1 COPYRIGHT AND LICENSE

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

You may use and distribute this module according to the same terms
that Perl is distributed under.