gitpan / data-domain Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for Data-Domain
Home Page: http://metacpan.org/release/Data-Domain
Read-only release history for Data-Domain
Home Page: http://metacpan.org/release/Data-Domain
NAME Data::Domain - Data description and validation DESCRIPTION A data domain is a description of a set of values, either scalar or structured (arrays or hashes). The description can include many constraints, like minimal or maximal values, regular expressions, required fields, forbidden fields, and also contextual dependencies. From that description, one can then invoke the domain's C<inspect> method to check if a given value belongs to the domain or not. In case of mismatch, a structured set of error messages is returned, giving detailed explanations about what was wrong. The motivation for writing this package was to be able to express in a compact way some possibly complex constraints about structured data. Typically the data is a Perl tree (nested hashrefs or arrayrefs) that may come from XML, L<JSON|JSON>, from a database through L<DBIx::DataModel|DBIx::DataModel>, or from postprocessing an HTML form through L<CGI::Expand|CGI::Expand>. C<Data::Domain> is a kind of tree parser on that structure, with some facilities for dealing with dependencies within the structure, and with several options to finely tune the error messages returned to the user. The main usage for C<Data::Domain> is to check input from forms in interactive applications : the structured error messages make it easy to display a form again, highlighting which fields were rejected and why. Another usage is for writing automatic tests, with the help of the companion module L<Test::InDomain>. COPYRIGHT AND LICENCE Copyright 2006, 2007, 2012 by Laurent Dami. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.