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