Reject a standalone weight on key presence, whatever its value

This commit is contained in:
M
2026-08-28 00:39:49 +02:00
committed by lilleman-tw
parent 48cadd6c4d
commit 16f91503b0
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ func TestNewErrors(t *testing.T) {
},
"an option name used as a token": {
map[string]string{"a": `{"format":"{weight}"}`},
`"weight" is an option, never a field`,
`"weight" is an option and can never be a field`,
},
"category name with a dot": {
map[string]string{"a.b": `["1"]`},