diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-07-24 22:17:03 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-07-24 22:17:03 +0200 |
commit | f8d1ab946205440ed3c44511ef42e5ad13fb9e5e (patch) | |
tree | b9cae2ce60a010300777528063932d80307a7746 /ChangeLog | |
parent | b3e6d445cbf73da2b00062c3f639c2453041ee41 (diff) | |
download | qpdf-f8d1ab946205440ed3c44511ef42e5ad13fb9e5e.tar.zst |
JSON schema -- accept single item in place of array
When the schema wants a variable-length array, allow a single item as
well as allowing an array.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ 2022-07-24 Jay Berkenbilt <ejb@ql.org> + * include/qpdf/JSON.hh: Schema validation: allow a single item to + appear anywhere that the schema has an array of a single item. + This makes it possible to change an element of the schema from an + item to an array to allow the data to accept an array where a + single value was previously required. This change is needed to + allow QPDFJob JSON to start accepting multiple items where a + single item used to be expected without breaking backward + compatibility. Without this change, the earlier fix to + removeAttachment would be a breaking change. + * QPDFObjectHandle: for the methods insertItem, appendItem, eraseItem, replaceKey, and removeKey, add a corresponding "AndGetNew" and/or "AndGetOld" methods. The ones that end with |