aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-19 17:41:23 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitcf8405d91e073dde4425fd8983651e7b91ccc167 (patch)
treebe458825766212dc3e14729714de3cfe78a1f347
parent2e585414937a31751c4b431e1e1be2563bef024e (diff)
downloadqpdf-cf8405d91e073dde4425fd8983651e7b91ccc167.tar.zst
Fix json schema for objects to include dictionary key
-rw-r--r--libqpdf/QPDFJob.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc
index 95a40103..4676d872 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -1474,9 +1474,9 @@ QPDFJob::json_schema(std::set<std::string>* keys)
if (all_keys || keys->count("objects"))
{
schema.addDictionaryMember(
- "objects", JSON::makeString(
- "dictionary of original objects;"
- " keys are 'trailer' or 'n n R'"));
+ "objects", JSON::parse(R"({
+ "<n n R|trailer>": "json representation of object"
+})"));
}
if (all_keys || keys->count("objectinfo"))
{