Answer stability round 2, prose round 2 and product-owner round 2: a head may be a name, scope and link come before the entries using them, a path reaches a node, and resolve ties a reference or a name

This commit is contained in:
2026-10-07 00:59:30 +02:00
committed by Lillem4n
parent 63223c6d63
commit d0886e4795
7 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ func TestPathKeyIsUnambiguous(t *testing.T) {
if err == nil || !strings.Contains(err.Error(), `field "a.b" contains "."`) {
t.Fatalf("New = %v, want the dotted field name rejected", err)
}
// The same data without the dotted key is fine, and the path resolves.
// The same data without the dotted key is fine, and the path reaches a node.
f := newGenerator(t, writeData(t, map[string]string{
"cat": `{"format":"{a.b}","a":{"format":"{b}","b":"2"}}`,
}), WithSeed(1))