Add metadata to IsValid goodies

master
Michael Smith 2012-11-06 16:54:07 -07:00
parent 268c8814aa
commit 4d13eff7a1
2 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,14 @@ use DDG::Goodie;
use Try::Tiny;
use JSON qw(from_json);
primary_example_queries 'is valid {"test": "json"}';
secondary_example_queries 'valid? ["test", "json"]';
description 'validate JSON data';
name 'IsValid::JSON';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsValid/JSON.pm';
category 'programming';
topics 'programming';
attribution github => ['https://github.com/ghedo', 'ghedo' ],
web => ['http://ghedini.me', 'Alessandro Ghedini'];

View File

@ -6,6 +6,14 @@ use DDG::Goodie;
use Try::Tiny;
use XML::Simple;
primary_example_queries 'is valid <test>xml</test>';
secondary_example_queries 'valid? <test type="xml"></test>';
description 'validate XML data';
name 'IsValid::XML';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsValid/XML.pm';
category 'programming';
topics 'programming';
attribution github => ['https://github.com/ghedo', 'ghedo' ],
web => ['http://ghedini.me', 'Alessandro Ghedini'];