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.