-
-
23 Feb 2016 13:09:13 UTC
- Distribution: BenchmarkAnything-Schema
- Module version: 0.004
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (2337 / 0 / 0)
- Kwalitee
Bus factor: 1- 97.14% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (17.59KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Steffen Schwigon
NAME
BenchmarkAnything::Schema - Tooling to handle the "BenchmarkAnything" schema
SYNOPSIS
require BenchmarkAnything::Schema; if (my $result = BenchmarkAnything::Schema::valid_json_schema($input_data__or__raw_json_text)) { print "Data structure is valid BenchmarkAnything data.\n"; } else { print STDERR "JSON schema errors:\n"; print STDERR " - $_\n" foreach $result->errors; }
valid_json_schema($data_or_json)
Validate if $data_or_json conforms to the BenchmarkAnything schema.
Returns a JSON::Schema::Result object which is overloaded to behave and stringify sensibly, and also provides error details.
AUTHOR
Steffen Schwigon <ss5@renormalist.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Steffen Schwigon.
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 BenchmarkAnything::Schema, copy and paste the appropriate command in to your terminal.
cpanm BenchmarkAnything::Schema
perl -MCPAN -e shell install BenchmarkAnything::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.