NAME
SQL::Validator::Error - JSON-SQL Schema Validation Error
ABSTRACT
JSON-SQL Schema Validation Error
SYNOPSIS
use SQL::Validator::Error;
use JSON::Validator::Error;
my $error = SQL::Validator::Error->new(
issues => [
JSON::Validator::Error->new('/root', 'not okay'),
JSON::Validator::Error->new('/node/0', 'not okay'),
JSON::Validator::Error->new('/node/1', 'not okay')
]
);
DESCRIPTION
This package provides a class representation of a error resulting from the validation of JSON-SQL schemas.
INHERITS
This package inherits behaviors from:
ATTRIBUTES
This package has the following attributes:
issues
issues(ArrayRef[InstanceOf["JSON::Validator::Error"]])
This attribute is read-only, accepts (ArrayRef[InstanceOf["JSON::Validator::Error"]])
values, and is required.
METHODS
This package implements the following methods:
match
match(Str $key = '/') : ArrayRef[Object]
The match method returns the matching issues as an error string.
report
report(Str $key = '/') : Str
The report method returns the reporting issues as an error string.
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".