Debian Codegraph @

README

raw
1 NAME
2 Perinci::Sub::Normalize - Normalize Rinci function metadata
3
4 VERSION
5 This document describes version 0.207 of Perinci::Sub::Normalize (from
6 Perl distribution Perinci-Sub-Normalize), released on 2022-12-19.
7
8 SYNOPSIS
9 use Perinci::Sub::Normalize qw(normalize_function_metadata);
10
11 my $nmeta = normalize_function_metadata($meta);
12
13 FUNCTIONS
14 normalize_function_metadata($meta[ , \%opts ]) => HASH
15 Normalize and check Rinci function metadata $meta. Return normalized
16 metadata, which is a shallow copy of $meta. Die on error.
17
18 Available options:
19
20 * allow_unknown_properties => BOOL (default: 0)
21
22 If set to true, will die if there are unknown properties.
23
24 * normalize_sah_schemas => BOOL (default: 1)
25
26 By default, Sah schemas e.g. in "result/schema" or "args/*/schema"
27 property is normalized using Data::Sah's "normalize_schema". Set
28 this to 0 if you don't want this.
29
30 * remove_internal_properties => BOOL (default: 0)
31
32 If set to 1, all properties and attributes starting with underscore
33 ("_") with will be stripped. According to DefHash specification,
34 they are ignored and usually contain notes/comments/extra
35 information.
36
37 HOMEPAGE
38 Please visit the project's homepage at
39 <https://metacpan.org/release/Perinci-Sub-Normalize>.
40
41 SOURCE
42 Source repository is at
43 <https://github.com/perlancar/perl-Perinci-Sub-Normalize>.
44
45 SEE ALSO
46 Rinci::function
47
48 AUTHOR
49 perlancar <[email protected]>
50
51 CONTRIBUTOR
52 Steven Haryanto <[email protected]>
53
54 CONTRIBUTING
55 To contribute, you can send patches by email/via RT, or send pull
56 requests on GitHub.
57
58 Most of the time, you don't need to build the distribution yourself. You
59 can simply modify the code, then test via:
60
61 % prove -l
62
63 If you want to build the distribution (e.g. to try to install it locally
64 on your system), you can install Dist::Zilla,
65 Dist::Zilla::PluginBundle::Author::PERLANCAR,
66 Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two
67 other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps
68 required beyond that are considered a bug and can be reported to me.
69
70 COPYRIGHT AND LICENSE
71 This software is copyright (c) 2022, 2018, 2016, 2015, 2014 by perlancar
72 <[email protected]>.
73
74 This is free software; you can redistribute it and/or modify it under
75 the same terms as the Perl 5 programming language system itself.
76
77 BUGS
78 Please report any bugs or feature requests on the bugtracker website
79 <https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-Normalize
80 >
81
82 When submitting a bug or request, please include a test-file or a patch
83 to an existing test-file that illustrates the bug or desired feature.
84