gin/binding
easonysliu cb5463e5d8 fix(binding): handle non-JSON string values in form binding for custom struct types
When a struct field implements json.Unmarshaler, form binding passes the
raw form value directly to json.Unmarshal. Since form values are plain
strings (e.g. "2020/09/23 13:20:49"), not valid JSON, the unmarshal
fails. Fix this by retrying with the value wrapped in JSON quotes when
the initial unmarshal fails.

Fixes #2510
2026-03-16 12:52:51 +08:00
..
2025-04-12 00:00:59 +08:00
2022-05-30 15:16:10 +08:00