Let a struct field's Go type type a bare number or boolean in its tag, and offer only a datatype that holds a refused column's number

This commit is contained in:
2026-10-08 11:57:06 +02:00
committed by Lillem4n
parent 9e392d02fd
commit 71c5039f04
5 changed files with 39 additions and 30 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ func checkTaggedType(sf reflect.StructField) error {
// only what its field's Go type can.
func (s *structShape) compileRecord(root *folder, t reflect.Type, label string, tags map[string]jsonvalue.Value) error {
tags["format"] = jsonvalue.String("")
n, err := compile(jsonvalue.Object(tags))
n, err := compileFrom(jsonvalue.Object(tags), atGoTop)
if err != nil {
return fmt.Errorf("%s: %w", label, err)
}