Skip to content

eqField对于指针类型数据无法正确校验 #272

@ryanexo

Description

@ryanexo

System (please complete the following information):

  • OS: windows 11
  • GO Version: 1.2.2
  • Pkg Version: latest

Describe the bug

如题,eqField对于指针类型数据无法正确校验,

To Reproduce

type T struct {
    FieldA *string `validate:"required"`
    FieldB *string `validate:"eqField:FieldA"`
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions