Skip to content

Commit 6893030

Browse files
even better utility docs
1 parent 2389fae commit 6893030

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/JSON/Schema/Modern/Utilities.pm

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,15 @@ sub canonical_uri ($state, @extra_path) {
301301
# shorthand for creating error objects
302302
# uses these keys from $state:
303303
# - initial_schema_uri
304-
# - keyword
304+
# - effective_base_uri (optional)
305+
# - keyword (optional)
305306
# - data_path
306307
# - traversed_schema_path
307308
# - schema_path
308-
# - _schema_path_suffix
309+
# - _schema_path_suffix (optional)
309310
# - errors
310-
# - exception (set by abort())
311-
# - recommended_response
311+
# - exception (optional; set by abort())
312+
# - recommended_response (optional)
312313
# - depth
313314
# - traverse (boolean, used for mode)
314315
# returns defined-false, so callers can use 'return;' to differentiate between
@@ -347,15 +348,15 @@ sub E ($state, $error_string, @args) {
347348
# shorthand for creating annotations
348349
# uses these keys from $state:
349350
# - initial_schema_uri
350-
# - keyword
351+
# - keyword (mandatory)
351352
# - data_path
352353
# - traversed_schema_path
353354
# - schema_path
354-
# - _schema_path_suffix
355+
# - _schema_path_suffix (optional)
355356
# - annotations
356357
# - collect_annotations
357358
# - spec_version
358-
# - _unknown
359+
# - _unknown (boolean)
359360
# - depth
360361
sub A ($state, $annotation) {
361362
return 1 if not $state->{collect_annotations};

0 commit comments

Comments
 (0)