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
1 changed files with 3 additions and 3 deletions

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