Skip to content

Commit 9728415

Browse files
JSON-Schema-Draft201909-0.019
- further improvements to the "terse" output format - add_schema will now die with a Result object rather than a listref of Error objects, when the document contains errors.
1 parent 676ef6e commit 9728415

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Changes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Revision history for JSON-Schema-Draft201909
22

3-
{{$NEXT}}
3+
0.019 2020-12-08 18:40:10Z
44
- further improvements to the "terse" output format
55
- add_schema will now die with a Result object rather than a
66
listref of Error objects, when the document contains errors.

README.pod

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ JSON::Schema::Draft201909 - Validate data against a schema
1010

1111
=head1 VERSION
1212

13-
version 0.018
13+
version 0.019
1414

1515
=head1 SYNOPSIS
1616

@@ -187,11 +187,10 @@ You B<MUST> call C<add_schema> for any external resources that a schema may refe
187187
before calling L</evaluate>, other than the standard metaschemas which are loaded from a local cache
188188
as needed.
189189

190-
Returns the L<JSON::Schema::Draft201909::Document> that contains the added schema, or C<undef>
191-
if the resource could not be found.
192-
193-
May die with a listref of L<JSON::Schema::Draft201909::Error> object(s), if there were errors in the
194-
document.
190+
Returns C<undef> if the resource could not be found;
191+
if there were errors in the document, will die with a L<JSON::Schema::Draft201909::Result> object
192+
containing the errors;
193+
otherwise returns the L<JSON::Schema::Draft201909::Document> that contains the added schema.
195194

196195
=head2 get
197196

0 commit comments

Comments
 (0)