Name : perl-Syccess
| |
Version : 0.104
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 19:03:43
|
Group : Development/Libraries/Perl
| Source RPM : perl-Syccess-0.104-lp155.1.1.src.rpm
|
Size : 0.09 MB
| |
Packager : https://www_suse_com/
| |
Summary : Easy Validation Handler
|
Description :
_Syccess_ is developed for at https://sycontent.de/.
_Syccess_ is a simple validation layer, which allows to check a hash of values against a validation definition and give back success or allow to see the error messages of the failure. _Syccess_ is not made for caring about anything else, so for a higher level library you integrate Syccess and not try to extend it. _Syccess_ is not made for giving extra attributes to the fields, the validator should be the key topic here, and it is very easy to make own validators specific for your environment, see Syccess::Validator and Syccess::ValidatorSimple, but you should be aware that most requirements should be covered with Syccess::Validator::Code and Syccess::Validator::Call, as both allow you to use simple validation methods you already may have in your model. This way you don\'t end up making _Syccess_ specific procedures, that might be harder to maintain.
The complete concept of Syccess is read only, which means, a call to validate will produce a Syccess::Result which contains the resulting information, while the _Syccess_ object stays unchanged. A _Syccess_ object contains a _Syccess::Field_ object for every field of your fields definition. On this field you have an object for every validator. Be aware that the validators are given as ArrayRef and you can use the same validator several times.
*BEHAVIOUR INFO:* The validators provided by the Syccess core are all designed to ignore a non existing value, an undefined value or an empty string. If you want that giving those leads to an error, then you must use the *required* validator of Syccess::Validator::Required. If you need to check against those values, for example you use Syccess::Validator::Code and in some cases an undefined value is valid and sometimes not, then you must make a custom validator, see custom_validator_namespaces.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/noarch |