You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicate schema definitions cause YAML validation issues #14122
While working on #14093 I found a few places where we have more than one schema for an option. In practice, this means we can end up with validation failures when someone specifies the "losing" schema at the top-level of the document options.
I found four options with this problem. In two cases, the more permissive schema wins or the schemas are the same, so these aren't currently causing any issues. In two cases, there are situations where I can generate YAML validation errors with options that should be OK.
1. logo — Conflict
Defined in: document-options.yml (beamer), document-dashboard.yml, document-reveal-content.yml, document-typst.yml.
Typst's logo-light-dark-specifier-path-optional schema wins at top level. Unlike dashboard/revealjs's logo-light-dark-specifier, it doesn't accept false.
Fails:
---
title: Testlogo: falseformat: dashboard
---
ERROR: Field "logo" has value false, which must instead be a string
2. subject — Conflict
Defined in: document-metadata.yml (pdf/office/odt), document-epub.yml
Metadata's string schema wins at top level. Epub's anyOf: [string, object] is not used.
Activity
Fix duplicate schema definitions causing YAML validation issues (quar…
Fix duplicate schema definitions causing YAML validation issues
Fix duplicate schema definitions causing YAML validation issues
Fix duplicate schema definitions causing YAML validation issues