-
-
29 Jul 2021 15:58:28 UTC
- Distribution: Data-Sah-Util-Subschema
- Module version: 0.005
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (453 / 0 / 2)
- Kwalitee
Bus factor: 1- 93.90% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (15.43KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- FUNCTIONS
- HOMEPAGE
- SOURCE
- BUGS
- SEE ALSO
- AUTHOR
- COPYRIGHT AND LICENSE
NAME
Data::Sah::Util::Subschema - Extract subschemas from a schema
VERSION
This document describes version 0.005 of Data::Sah::Util::Subschema (from Perl distribution Data-Sah-Util-Subschema), released on 2021-07-29.
SYNOPSIS
use Data::Sah::Util::Subschema qw(extract_subschemas) my $subschemas = extract_subschemas([array => of=>"int*"]); # => ("int*") $subschemas = extract_subschemas([any => of=>["int*", [array => of=>"int"]]]); # => ("int*", [array => of=>"int"], "int")
DESCRIPTION
FUNCTIONS
extract_subschemas([ \%opts, ] $sch) => list
Extract all subschemas found inside Sah schema
$sch
. Schema will be normalized first, then schemas from all clauses which contains subschemas will be collected recursively.Known options:
schema_is_normalized => bool (default: 0)
When set to true, function will skip normalizing schema and assume input schema is normalized.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Data-Sah-Util-Subschema.
SOURCE
Source repository is at https://github.com/perlancar/perl-Data-Sah-Util-Subschema.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah-Util-Subschema
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.
SEE ALSO
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021, 2016 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.
Module Install Instructions
To install Data::Sah::Util::Subschema, copy and paste the appropriate command in to your terminal.
cpanm Data::Sah::Util::Subschema
perl -MCPAN -e shell install Data::Sah::Util::Subschema
For more information on module installation, please visit the detailed CPAN module installation guide.