Re: Streamlined application/script development [Re: coding an Application in perl]
Chapman Flack <[email protected]> Wed, 13 Sep 2017 17:12:27 -0400
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
On 09/13/2017 01:10 PM, Jean-Louis Martineau wrote: >> If JSON or XML libraries were in core and supported JSON or XML schemas, >> I would probably have gone that way. A Getopt::Long spec is less >> flexible than JSON Schema or XML Schema, but it is enough to cover >> simple numbers and strings, and has the advantage of being familiar >> already to an application author (who has to know it for application >> arguments already), where another schema language could be something >> else to learn. > > Amanda already require the perl JSON module, so you can use it. It doesn't look like the JSON module has any schema support built in; is it ok to require JSV::Validator ? -Chap