-
Notifications
You must be signed in to change notification settings - Fork 2
Description
expanding manubot/manubot#187 (comment) into an issue
In certain cases, it makes sense for users to enter only a subset of the final metadata that is needed by Pandoc filters and templates, and have a program auto-complete metadata.
For example, the following approaches be convenient for users and help avoid error-prone data duplication:
-
assume
authoris a key-value object. Ifauthor.orcidis set, auto-complete missing author fields that can be retrieved from the ORCID API likeauthor.name,author.email,author.affiliations. -
assume author affiliations are described via a alphnumeric key or even inline. Add an affiliations object with numbered affiliations for use in frontmatters.
-
assume
licenseis a key-value object. Iflicense.spdxis set, detect license details from the SPDX API, such as name, URL, full text. -
adding metadata that the user doesn't explicitly provide a seed value for at all. For example, the commit hash of
HEADif executed within a git repository.
Do we need to make our schema aware of auto-completion / auto-population? Do we need multiple schema, like user-schema that describe what the user should input rather than the final output-schema? Should output-schema be a superset of input-schema such that auto-complete/populate only fills in additional values but does not delete any existing values?
@tarleb any general thoughts?