my $struct = decode_json_file('META.json');
  my $cmv = CPAN::Meta::Validator->new( $struct );
  unless ( $cmv->is_valid ) {
    my $msg = "Invalid META structure.  Errors found:\n";
    $msg .= join( "\n", $cmv->errors );
    die $msg;
  }
 
my $cmv = CPAN::Meta::Validator->new( $struct )
The constructor must be passed a metadata structure.
  if ( $cmv->is_valid ) {
    ...
  }
Returns a boolean value indicating whether the metadata provided is valid.
warn( join "\n", $cmv->errors );
Returns a list of errors seen during validation.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.