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:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user