Subject: | optional_features with upper-case key |
Date: | Sat, 12 Dec 2009 07:24:42 +1100 |
To: | bug-Test-YAML-Meta [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With Test::YAML::Meta 0.13 and recent debian i386 perl 5.10.1, checking
the META.yml below
perl -MTest::YAML::Meta -e 'meta_yaml_ok()'
gives
# ERR: Missing mandatory field, 'abstract' (abstract) [Validation: 1.4]
# ERR: Key 'source_FQ' is not a legal keyword. (optional_features -> source_FQ) [Validation: 1.4]
where I hopped upper-case in the feature name would be accepted.
The spec seems to be silent on what feature names should look like, so
you'd presume anything is fine. Though I suppose non-ascii or
unprintables would be asking for trouble! Upper case is pretty likely
in an abbreviation (which is how I struck it), so you'd hope that it
would be allowed if nothing else.
--- #YAML:1.0
name: foo
version: 1
generated_by: hand
license: gpl
author:
- Me <me@me-me-me.org>
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
optional_features:
source_FQ:
description: Something needing Finance::Quote.
requires:
Finance::Quote: 0