Re: CMSP 05. Schema

2009-10-09 Thread Ricardo Signes
* David Golden xda...@gmail.com [2009-10-09T07:43:56]
 05. Schema
 
 Proposal:
 
 The META spec should come along with a formal schema definition.
 (SlavenRezic)

No strong feelings.  Not a bad idea.  I believe an Rx schema for 1.4 exists.

-- 
rjbs


Re: CMSP 05. Schema

2009-10-09 Thread Steffen Mueller

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


I think this is a very important point considering that it would 
probably make sense to have this validation supported in the perl core 
so CPAN(PLUS) can use it. Including a framework such as Rx in core for 
this seems unlikely. Including a special purpose module (or extending 
one like Parse::CPAN::Meta) is likely possible and no big deal.


Cheers,
Steffen