Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply narrative schema in child documents #28

Open
jwoLondon opened this issue Mar 30, 2019 · 0 comments
Open

Apply narrative schema in child documents #28

jwoLondon opened this issue Mar 30, 2019 · 0 comments
Labels
enhancement New feature or request priority/p2

Comments

@jwoLondon
Copy link
Member

Currently narrative schemas can only be linked a 'root' document. If a document follows another, it cannot directly link to a schema in its own frontmatter.

A consequence of this is that any schema requirements apply to all documents in a linked or branching narrative, which limits the usefulness of the schema for guiding different branches of a narrative.

A common use case which we cannot currently support is to have a root document containing some literate data shaping and a following document containing a narrative about its visualization structured by a schema.

We need a mechanism for scoping schemas on a per-document basis. Ideally we would allow schemas to apply only in the document in which the schema is referenced in its frontmatter, and that we would allow schemas to be referenced in non-root documents as well as the root.

If this is not practical to implement, we could keep the current root-only schema referencing but allow a per-document ignoreSchema schemaName option to prevent schema warnings from appearing in documents in which we don't want them to be applied.

@jwoLondon jwoLondon added the enhancement New feature or request label Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/p2
Projects
None yet
Development

No branches or pull requests

1 participant