The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

validate_pgxn_meta - Validate the structure of a PGXN META.json file

Usage

  validate_pgxn_meta
  validate_pgxn_meta mumble.json

Options

  -h --help     Print a usage statement and exit.
  -M --man      Print the complete documentation and exit.
  -v --version  Print the version number and exit.

Description

Validates a PGXN META.json file against the PGXN meta specification. If a file name is passed, that file will be validated. Otherwise, if a file named META.json exists in the current directory, it will be validated.

Output

If META.json valid, the output will be:

  META.json is OK

If it's not valid, the output will look something like:

  META.json is invalid. Errors:
    Missing mandatory field, 'license' (license) [Validation: 1.0.0]

See Also

PGXN::Meta::Validator is the class that does the actual validation, and may be used programmatically.

Author

David E. Wheeler <david@justatheory.com>

Copyright and License

Copyright (c) 2011 David E. Wheeler. Some Rights Reserved.

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