quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.9k stars 322 forks source link

our YAML validator doesn't work well with YAML references #8762

Open cscheid opened 8 months ago

cscheid commented 8 months ago

I'd like to do the following:

image

Notice how html and dashboard fail our validation. The frontmatter still parses and works, but our validator doesn't know that those entries aren't empty objects.

This fix is going to be tricky because YAML references need to be verified against multiple schemas, and the source code information tracking will be hard (how do we signal an error inside the reference differently from an error in the definition?). But we should try to do it next time we're improving our YAML validation.

acederberg commented 2 weeks ago

If it is any help, please see my comment in the discussions about this anchoring issue.