Changes for version 0.002020
- *** BREAKING CHANGE *** DBIx::Class::Valiant is no longer bundled; it is now the standalone DBIx-Class-Valiant distribution.
- Now the framework-agnostic core (validations, filters, i18n, HTML/JSON generation); ORM/web integrations ship separately as DBIx-Class-Valiant, Catalyst-View-Valiant, and async DBIO-Valiant.
- Fixed: errors->added/of_kind never matched translation-tag errors.
- Fixed: numericality pg_serial/pg_bigserial rejected every value but 0.
- Fixed: strict => 'My::Class' raised the generic exception, not it.
- Fixed: only_of counted empty strings as filled group members.
- Fixed: the check validator crashed on its coderef and arrayref forms.
- Fixed: Upper/UcFirst filters clobbered defaults and warned on undef.
- Fixed: errors->merge/import_error now preserve imported error types.
- Fixed: the length validator dropped per-check message overrides.
- Fixed: translation keys containing '.' now resolve via nested lookup.
- Fixed: form_enctype read the wrong option key, so enctype was ignored.
- Fixed: 'validated'/'skip_validation' are no longer constructor-set.
- Fixed: format and numericality validators warned on undef values.
- Fixed: JSONBuilder->errors, unusable outside Catalyst, now takes content_type (default application/json) and emits a JSON:API 'errors'.
- New: acceptance validator (Rails parity) for TOS-style checkboxes.
- New: errors->details (raw details by attribute); errors->uniq dedupes.
- Behavior change: Valiant::Proxy::Object throws MissingMethod on an absent method, instead of silently returning nothing.
- Behavior change: generate_message strips trailing dot indices from attribute names, as full_message always did.
- Removed: the dead Valiant::HTML::Tag and Valiant::HTML::Tag::Label modules, plus the unused format 'exclusion' option.
- example/ (the Catalyst demo) is no longer shipped (needs the split-out dists); it stays in git.
- Documentation truth pass: documented names now exist, undocumented public API is documented, phantom methods removed, SYNOPSIS fixed.
Documentation
Modules
Object validation inspired by Ruby on Rails and more.
A single error encountered during validation.
A collection of errors associated with an object
A role to define the Filter interface.
collapse whitespace
A filter that contains and runs other filters
A Role to create custom validators
Array or Hash ref to string
HTML escaping on strings
lower case a string
Force into number context
Flatten a Hashref into a string via a template pattern
title case a string
Force the value into an arrayref if its not one already
Validate using a coderef or method
upper case the first letter of a string
up case a string
Filter using a coderef and options opts
Role that adds class and instance methods supporting field filters
Adds a filter DSL and API to your Moo/se classes
General HTML Forms
A custom formbuilder for checkbox content
A custom formbuilder for radio button content
A Perl module for building HTML paginators
String rendering safety
A utility class for creating collections of items.
HTML Form
HTML Form Tags
HTML pager component
Utility class to generate HTML tags
Default view for Formbuilder
Translations
Wraps a model with a JSON builder
Importable utility methods
Standard naming information for your models
An error imported from another object's errors collection
Create a validation ruleset dynamically
Wrap an arrayref in a result object for validation.
Wrap a hashref in a result object for validation.
Wrap any object into a validatable result object.
Localized, human readable names for models and attributes
Importable utility methods;
Base exceptions class;
A non categorized exception
Args passed to a Filter are invalid
Args passed to a Validator are invalid
Not count subkey for the translation tag
Object is missing method
Failure to load a filter
Failure to load a validator
A Validation error that throws strictly
Unexpected error while using a module dynamically
Role that adds class and instance methods supporting validations
Adds a validation DSL and API to your Moo/se classes
A role to define the validator interface.
Verify that a value is missing
Verify that a value was accepted
Verify items in an arrayref.
Verify that a value is either true or false
Validate using a 'check' method
A validator that contains and runs other validators
Checks for a 'confirming' attributes equality.
Verify that a value is is a standard Date (YYY-MM-DD)
A Role to create custom validators
Value cannot be in a list
Validate a value based on a regular expression
Verify the values of a hashref
Value must be one of a list
Validate the length of an attributes string value
Validate numeric attributes
Verify a related object
Limit the number of fields not blank in a group
Verify that a value is present
Validate that a value is a scalar (like a string or number)
Verify that a value is unique to the record domain
Validate using a coderef or method
Provides
in lib/Valiant/HTML/FormBuilder/DefaultModel.pm
in lib/Valiant/HTML/FormBuilder.pm
in lib/Valiant/HTML/Util/Collection.pm
in lib/Valiant/HTML/Util/Collection.pm
in lib/Valiant/HTML/Util/Form.pm
in lib/Valiant/HTML/Util/TagBuilder.pm
in lib/Valiant/I18N.pm
in lib/Valiant/Naming.pm