{
    "content": [
        {
            "type": "text",
            "text": "# CPAN::Meta::Validator (perldoc)\n\n## NAME\n\nCPAN::Meta::Validator - validate CPAN distribution metadata structures\n\n## SYNOPSIS\n\nmy $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}\n\n## DESCRIPTION\n\nThis module validates a CPAN Meta structure against the version of the the specification claimed\nin the \"meta-spec\" field of the structure.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **BUGS**\n- **AUTHORS**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CPAN::Meta::Validator",
        "section": "",
        "mode": "perldoc",
        "summary": "CPAN::Meta::Validator - validate CPAN distribution metadata structures",
        "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}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 6,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}