Commit cf8405d91e073dde4425fd8983651e7b91ccc167
1 parent
2e585414
Fix json schema for objects to include dictionary key
Showing
1 changed file
with
3 additions
and
3 deletions
libqpdf/QPDFJob.cc
| @@ -1474,9 +1474,9 @@ QPDFJob::json_schema(std::set<std::string>* keys) | @@ -1474,9 +1474,9 @@ QPDFJob::json_schema(std::set<std::string>* keys) | ||
| 1474 | if (all_keys || keys->count("objects")) | 1474 | if (all_keys || keys->count("objects")) |
| 1475 | { | 1475 | { |
| 1476 | schema.addDictionaryMember( | 1476 | schema.addDictionaryMember( |
| 1477 | - "objects", JSON::makeString( | ||
| 1478 | - "dictionary of original objects;" | ||
| 1479 | - " keys are 'trailer' or 'n n R'")); | 1477 | + "objects", JSON::parse(R"({ |
| 1478 | + "<n n R|trailer>": "json representation of object" | ||
| 1479 | +})")); | ||
| 1480 | } | 1480 | } |
| 1481 | if (all_keys || keys->count("objectinfo")) | 1481 | if (all_keys || keys->count("objectinfo")) |
| 1482 | { | 1482 | { |