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
YAML autocompletion suggests incorrect 'category' (singular) instead of Quarto's 'categories' (plural); schema type should be array #13519
Go to File → New File → Quarto Document (any format, e.g., HTML).
Trigger YAML autocompletion:
In the YAML frontmatter, type cat and pause to let autocompletion suggest fields.
Observe the suggested field: category: (singular, string type).
Verify incorrect behavior:
Accept the suggestion (category: "Test").
Render the document (e.g., "Render" button or quarto render).
Result: Quarto ignores category: (no error, but no effect).
Manual correction:
Replace category: "Test" with categories: [Test].
Re-render. Result: Works correctly.
Describe the problem in detail
RStudio’s YAML autocompletion suggests the incorrect fieldcategory: (singular, string) for Quarto documents (.qmd), but the official Quarto documentation specifies that the correct field is categories: (plural, array).
Root cause:
The schema in RStudio’s internal YAML validator (/opt/quarto/share/editor/tools/yaml/web-worker.js, line ~16457) defines:
{
"name": "category",
"schema": "string",
"description": "The document category."
}
Activity
cscheid commentedon Oct 8, 2025
Thanks! Sending this to quarto-cli, where all the schema information is stored and managed.