{
    "mode": "perldoc",
    "parameter": "CPAN::Meta::Validator",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/CPAN%3A%3AMeta%3A%3AValidator/json",
    "generated": "2026-06-12T06:51:24Z",
    "synopsis": "my $struct = decodejsonfile('META.json');\nmy $cmv = CPAN::Meta::Validator->new( $struct );\nunless ( $cmv->isvalid ) {\nmy $msg = \"Invalid META structure.  Errors found:\\n\";\n$msg .= join( \"\\n\", $cmv->errors );\ndie $msg;\n}",
    "sections": {
        "NAME": {
            "content": "CPAN::Meta::Validator - validate CPAN distribution metadata structures\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.150010\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $struct = decodejsonfile('META.json');\n\nmy $cmv = CPAN::Meta::Validator->new( $struct );\n\nunless ( $cmv->isvalid ) {\nmy $msg = \"Invalid META structure.  Errors found:\\n\";\n$msg .= join( \"\\n\", $cmv->errors );\ndie $msg;\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module validates a CPAN Meta structure against the version of the the specification claimed\nin the \"meta-spec\" field of the structure.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new\nmy $cmv = CPAN::Meta::Validator->new( $struct )\n\nThe constructor must be passed a metadata structure.\n\nisvalid\nif ( $cmv->isvalid ) {\n...\n}\n\nReturns a boolean value indicating whether the metadata provided is valid.\n\nerrors\nwarn( join \"\\n\", $cmv->errors );\n\nReturns a list of errors seen during validation.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please report any bugs or feature using the CPAN Request Tracker. Bugs can be submitted through\nthe web interface at <http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta>\n\nWhen submitting a bug or request, please include a test-file or a patch to an existing test-file\nthat illustrates the bug or desired feature.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   David Golden <dagolden@cpan.org>\n\n*   Ricardo Signes <rjbs@cpan.org>\n\n*   Adam Kennedy <adamk@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and\nContributors.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "CPAN::Meta::Validator - validate CPAN distribution metadata structures",
    "flags": [],
    "examples": [],
    "see_also": []
}