2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-30 08:50:51 +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")) if (all_keys || keys->count("objects"))
{ {
schema.addDictionaryMember( schema.addDictionaryMember(
"objects", JSON::makeString( "objects", JSON::parse(R"({
"dictionary of original objects;" "<n n R|trailer>": "json representation of object"
" keys are 'trailer' or 'n n R'")); })"));
} }
if (all_keys || keys->count("objectinfo")) if (all_keys || keys->count("objectinfo"))
{ {