schema technology | cover r2ange (A) |
cost to pay (B) |
effectiveness (A)/(B) |
---|---|---|---|
XML Schema | 95% | 100% | 0.95 (= 95/100) |
RelaxNG | 80% | 20% | 4.0 (= 80/20) |
Kwalify | 50% | 5% | 10.0 (= 50/5) |
my $foo_schema = { type => "map", mapping => { -font => { type => 'str', required => 1, }, -width => { type => 'int', range => {max=>20, min=>0}, }, }, }; sub foo { my $args = { @_ }; Kwalify::validate($foo_schema, $args); ... }