| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use utf8; |
| 6 |
|
| 7 |
use App::CSAF::Validator; |
| 8 |
|
| 9 |
exit App::CSAF::Validator->run(@ARGV) unless caller(); |
| 10 |
|
| 11 |
1; |
| 12 |
|
| 13 |
__END__ |
| 14 |
=encoding utf-8 |
| 15 |
|
| 16 |
=head1 NAME |
| 17 |
|
| 18 |
csaf-validator - CSAF Validator |
| 19 |
|
| 20 |
=head1 SYNOPSIS |
| 21 |
|
| 22 |
csaf-validator --file PATH |
| 23 |
csaf-validator [--help|--man|-v] |
| 24 |
|
| 25 |
Options: |
| 26 |
-f, --file PATH CSAF document path |
| 27 |
--help Brief help message |
| 28 |
--man Full documentation |
| 29 |
-v, --version Print version |
| 30 |
|
| 31 |
=head1 DESCRIPTION |
| 32 |
|
| 33 |
C<csaf-validator> CSAF Validator |
| 34 |
|
| 35 |
=head1 EXAMPLES |
| 36 |
|
| 37 |
$ csaf-validator -f csaf-document.json |
| 38 |
[error] /document/tracking/revision_history: Sorted Revision History (6.1.14 - mandatory) |
| 39 |
[error] /document/tracking/version: Detected newer revision of document (6.1.16 - mandatory) |
| 40 |
|
| 41 |
$ cat csaf-document.json | csaf-validator |
| 42 |
[error] /product_tree/branches/0/branches/0/branches/name: Version Range in Product Version (6.1.31 - mandatory) |
| 43 |
|
| 44 |
=head1 SEE ALSO |
| 45 |
|
| 46 |
L<csaf-rolie> |
| 47 |
|
| 48 |
=head1 AUTHOR |
| 49 |
|
| 50 |
L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt> |
| 51 |
|
| 52 |
=head1 COPYRIGHT AND LICENSE |
| 53 |
|
| 54 |
Copyright © 2023-2025 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt> |
| 55 |
|
| 56 |
You may use and distribute this module according to the same terms |
| 57 |
that Perl is distributed under. |