fix(bookspec): the schema refuses a key only its query may name (P13)

`accepted` and `refused` are a command's (and `refused` a period's): the
schema now refuses either on a query that does not take it, as the loader
already did, instead of letting a malformed example reach the runner.
The no-op table walk in the same branch goes with it.
This commit is contained in:
swaits committed 2026-10-26 21:23:16 -06:00
1 parent b0512f214c
commit 02fd1f79fe
2 files changed
+14 -23

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ as_of = "2026-01-02"
refused = "end_before_start""#,
);
let e = Example::from_toml(&text).unwrap_err();
assert!(e.message.contains("only a period may be refused"), "{e}");
assert!(e.message.contains("refused is for"), "{e}");
}
/// A command is accepted or refused, never both, and shows no values.