The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Sah::Object::Schema - Represent Sah schema

VERSION

This document describes version 0.02 of Data::Sah::Object::Schema (from Perl distribution Data-Sah-Object), released on 2015-09-06.

METHODS

new($sch, $is_normalized) => obj

Constructor. Will create a normalized copy of $sch, unless $is_normalized is true, in which case won't create a copy.

type([ $value ]) => str

Get or set type. If set, will return the old value.

clause($name[, $value]) => any

Get or set a clause. If set, will return the old value.

req([ $value ]) => bool

Shortcut for $osch->clause('req'[, $value ]).

delete_clause($name) => any

Delete clause named $name. Return the old value.

as_struct => array

Return the schema raw data structure.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-Sah-Object.

SOURCE

Source repository is at https://github.com/sharyanto/perl-Data-Sah-Object.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah-Object

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by perlancar@cpan.org.

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