2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Fix json schema for objects to include dictionary key

This commit is contained in:
Jay Berkenbilt 2022-01-19 11:41:23 -05:00
parent 2e58541493
commit cf8405d91e

View File

@ -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"))
{