Raisin::Param(3)

NAME
Raisin::Param - Parameter class for Raisin

VERSION
version 0.94

DESCRIPTION
Parameter class for Raisin. Validates request paramters.

coerce

Returns coerce flag. If "true" attempt to coerce a value will be made at validate stage.

By default set to "true".

default

Returns default value if exists or "undef".

desc

Returns parameter description.

name

Returns parameter name.

display_name

An alias to "name" in Raisin::Param.

named

Returns "true" if it's path parameter.

regex

Return paramter regex if exists or "undef".

required { shift->{required} }

Returns "true" if it's required parameter.

type

Returns parameter type object.

in

Returns the location of the parameter: query, header, path, formData, body.

validate

Process and validate parameter. Takes reference as the input paramter.

    $p->validate(\$value);

AUTHOR
Artur Khabibullin

COPYRIGHT AND LICENSE
This software is copyright (c) 2019 by Artur Khabibullin.

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