diff --git a/internal/forms/unmarshal.go b/internal/forms/unmarshal.go index 6735d25..7691fc5 100644 --- a/internal/forms/unmarshal.go +++ b/internal/forms/unmarshal.go @@ -14,7 +14,6 @@ import ( "dynatron.me/x/stillbox/internal/jsontypes" "github.com/araddon/dateparse" - "github.com/google/uuid" ) func (o *options) parseTime(s string, dpo ...dateparse.ParserOption) (t time.Time, set bool, err error) { @@ -213,20 +212,6 @@ func (o *options) unmIterFields(r *http.Request, destStruct reflect.Value) error return err } setVal(destFieldVal, set, d) - case jsontypes.UUIDs: - val := strings.Trim(ff, "[]") - if val == "" && o.acceptBlank { - continue - } - vals := strings.Split(val, ",") - ar := make([]jsontypes.UUID, 0, len(vals)) - for _, v := range vals { - i, err := uuid.Parse(v) - if err == nil { - ar = append(ar, jsontypes.UUID(i)) - } - } - destFieldVal.Set(reflect.ValueOf(ar)) case []int: val := strings.Trim(ff, "[]") if val == "" && o.acceptBlank {