Marquee HTML::ValidationRules::Legacy - Extract Validation Rules from HTML Form Element

TABLE OF CONTENTS

NAME

HTML::ValidationRules::Legacy - Extract Validation Rules from HTML Form Element

SYNOPSIS

DESCRIPTION

This software is considered to be alpha quality and isn't recommended for regular usage.

CLASS METHODS

extract

my $schema = extract($form_in_strig, $charset)
my $schema = extract($form_in_mojo_dom)

Generates a schema out of form string or Mojo::DOM instance. It returns schema in hashref consists of JSON-schema-like properties.

validate

Validates form data against given schema.

my $error = validate($params_in_string, $schema, $charset);
my $error = validate($params_in_mojo_params, $schema);

AUTHOR

Sugama Keita, <sugama@jamadam.com>

COPYRIGHT AND LICENSE

Copyright (C) Sugama Keita.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.