diff --git a/internal/impl/validate.go b/internal/impl/validate.go index e2100861..e568c758 100644 --- a/internal/impl/validate.go +++ b/internal/impl/validate.go @@ -434,6 +434,9 @@ State: vi.mi.init() fallthrough case validationTypeMap: + if vi.mi != nil { + vi.mi.init() + } states = append(states, validationState{ typ: vi.typ, keyType: vi.keyType,