On Fri, Oct 09, 2009 at 08:31:48AM -0500, Graham Barr wrote: > > On Oct 9, 2009, at 6:43 AM, David Golden wrote: > >> 05. Schema >> >> Proposal: >> >> The META spec should come along with a formal schema definition. >> (SlavenRezic) > > I am not so much concerned about a formal schema. But an official module > to validate, or purge bad data, would be great. otherwise users end up > having to write very defensive code (ie making sure hash/array > references are > as expected). being able to validate first will simplify code for many > people
These already exist: Test::CPAN::Meta (uses Parse::CPAN::Meta) Test::JSON::Meta (uses JSON) Test::YAML::Meta (uses YAML or YAML::Syck) All 3 conatin the schemas for Meta-Spec 1.0 to 1.4 The first is currently used by CPANTS to validate the spec and verify whether the distribution is using the latest spec. Cheers, Barbie. -- Birmingham Perl Mongers <http://birmingham.pm.org> Memoirs Of A Roadie <http://barbie.missbarbell.co.uk> CPAN Testers Blog <http://blog.cpantesters.org> YAPC Conference Surveys <http://yapc-surveys.org>