Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

_quarto.yml: unknown or misplaced keys under project:/website: are silently ignored (Quarto 1 fails validation)

オープン
#880 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust, yaml

調査の方向性

Start by tracing q2 render project configuration loading and the existing Q-1-18 diagnostic for unknown properties, then inspect the schemas for project, website, and other closed top-level blocks. Add validation that reports unknown or misplaced keys with their location; a useful result is diagnostics for the shown tocc and llms-text examples, with the existing format.html.llms-txt case still handled according to its open schema.

索引モデルが issue の本文から書いたものです。

説明

bug

Summary

_quarto.yml is not checked for unknown or misplaced keys. A typo under website: or project:, or a key nested under the wrong parent, renders silently with the option having no effect. Quarto 1 fails validation with the property name and location. q2 has the diagnostic for this (Q-1-18 Unknown Property, "closed" schemas) and its doc even lists "a property that belongs to a different block" as a typical cause, but it does not fire for the project config.

How this was found: llms-txt: true placed under format: html: instead of website: produced nothing, no warning, and it took a trip to the docs to see why. (Quarto 1 is silent for that specific placement too, since format.html is open for pandoc metadata; the cases below are the ones where it does speak up.)

Repro

A scaffold (q2 create project website site --no-prompt) with one of these configs:

Unknown and misspelled keys under website:

project:
  type: website
website:
  title: "site"
  tocc: true
  llms-text: true
format:
  html:
    theme: cosmo

Unknown key under project:

project:
  type: website
  tocc: true
website:
  title: "site"
format:
  html:
    theme: cosmo

Known key under the wrong parent

project:
  type: website
website:
  title: "site"
format:
  html:
    theme: cosmo
    llms-txt: true
q2 render site
quarto render site
Config Quarto 1 (99.9.9 dev) q2 0.35.0-nightly.20261021
website.tocc, website.llms-text ERROR: … validation failed. (line 5, columns 3--7) property name tocc is invalid … (line 6) property name llms-text is invalid, with the location website:tocc renders, no output
project.tocc ERROR: … property name tocc is invalid … location project:tocc renders, no output
format.html.llms-txt renders, no output renders, no output

Expected

At least what Quarto 1 does: Q-1-18 for unknown properties under the closed blocks (project, website, and the other top-level blocks that have schemas), as an error or at least a warning. A nice extra that Quarto 1 does not have: when the unknown key is a known key of a sibling block (llms-txt is website.llms-txt), say so in the hint.

Environment

q2 0.35.0-nightly.20261021 (macOS arm64); repo at ad283a2cb. Quarto 1 at 99.9.9 (dev build from quarto-cli).

主要言語
Rust
スター
278
フォーク
19
平均マージ
21時間 56分
マージ済み PR(30日)
156

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/q2 のほかの issue

quarto-dev/q2 の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。