[pp:metadata] add 'include' and 'exclude' options (#6058)

This commit is contained in:
Mike Fährmann
2024-08-19 21:18:39 +02:00
parent 80c423a444
commit 4b94b7d477
3 changed files with 80 additions and 3 deletions

View File

@@ -5692,6 +5692,30 @@ Description
After downloading all files of a `post`
metadata.include
----------------
Type
``list`` of ``strings``
Example
``["id", "width", "height", "description"]``
Description
Include only the given top-level keys when writing JSON data.
Note: Missing or undefined fields will be silently ignored.
metadata.exclude
----------------
Type
``list`` of ``strings``
Example
``["blocked", "watching", "status"]``
Description
Exclude all given keys from written JSON data.
Note: Cannot be used with `metadata.include`_.
metadata.fields
---------------
Type