Skip to content
Discussion options

You must be logged in to vote

I think the key distinction here is schema validation vs semantic render validation.

In the current schema, documentclass is a PDF-tagged field, but its schema is still string. The listed classes (scrartcl, scrbook, scrreprt, scrlttr2, article, book, report, memoir) are completions, not an enum. So YAML validation can validate that the field is a string and appears in a place where PDF options are allowed, but it will not reject another string as an unsupported LaTeX class.

There are two relevant validation paths:

  • document front matter is validated against getFrontMatterSchema() unless that YAML sets validate-yaml: false
  • _quarto.yml project config is read against getProjectConfigSchema(),…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wlatendresse
Comment options

Answer selected by wlatendresse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
yaml-validation Issues with YAML validation and autocompletion in quarto latex LaTeX engines related libraries and technologies
2 participants