mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-11 12:19:04 +02:00
chore(deps): update Go to v1.27.0
This commit is contained in:
@@ -31,7 +31,7 @@ func init() {
|
||||
|
||||
// Use JSON tags to keep client-visible validation field names stable
|
||||
engine.RegisterTagNameFunc(func(field reflect.StructField) string {
|
||||
name := strings.SplitN(field.Tag.Get("json"), ",", 2)[0]
|
||||
name, _, _ := strings.Cut(field.Tag.Get("json"), ",")
|
||||
if name == "" || name == "-" {
|
||||
return field.Name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user