aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-07-24 22:44:51 +0200
committerJay Berkenbilt <ejb@ql.org>2022-07-24 22:44:51 +0200
commit4674c04cb80e0a50cde1b97464642e2778f9522f (patch)
tree9a79072f17c0053e576d754fb7d22ac046b4f4b4 /manual
parentf8d1ab946205440ed3c44511ef42e5ad13fb9e5e (diff)
downloadqpdf-4674c04cb80e0a50cde1b97464642e2778f9522f.tar.zst
JSON schema: support multi-element array validation
Diffstat (limited to 'manual')
-rw-r--r--manual/json.rst16
1 files changed, 11 insertions, 5 deletions
diff --git a/manual/json.rst b/manual/json.rst
index 2e71bdab..92a89b6b 100644
--- a/manual/json.rst
+++ b/manual/json.rst
@@ -595,11 +595,17 @@ Documentation
appears in the corresponding location of the actual output. The
corresponding output can have any value including ``null``.
- - An array in the help output always contains a single element. It
- indicates that the corresponding location in the actual output is
- an array of any length, and that each element of the array has
- whatever format is implied by the single element of the help
- output's array.
+ - A single-element array in the help output indicates that the
+ corresponding location in the actual output is either a single
+ item or is an array of any length. The single item or each
+ element of the array has whatever format is implied by the single
+ element of the help output's array.
+
+ - A multi-element array in the help output indicates that the
+ corresponding location in the actual output is an array of the
+ same length. Each element of the output array has whatever format
+ is implied by the corresponding element of the help output's
+ array.
For example, the help output indicates includes a ``"pagelabels"``
key whose value is an array of one element. That element is a