NAME

PONAPI::Utils::Names - Member names validation utility

VERSION

version 0.002006

SYNOPSIS

use PONAPI::Utils::Names 'check_name';

check_name('a');    # Valid
check_name('a-');   # Invalid
check_name('-a');   # Invalid
check_name('a-b');  # Valid
check_name('a b');  # Valid

DESCRIPTION

This module implements the member name restrictions from the {json:api} specification; it can be used by repositories to implement strict member names, if desired.

AUTHORS

  • Mickey Nasriachi <mickey@cpan.org>

  • Stevan Little <stevan@cpan.org>

  • Brian Fraser <hugmeir@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Mickey Nasriachi, Stevan Little, Brian Fraser.

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