MCPcopy
hub / github.com/gin-gonic/gin / validate

Function validate

binding/binding.go:122–127  ·  view source on GitHub ↗
(obj any)

Source from the content-addressed store, hash-verified

120}
121
122func validate(obj any) error {
123 if Validator == nil {
124 return nil
125 }
126 return Validator.ValidateStruct(obj)
127}

Callers 15

BindMethod · 0.70
decodeMsgPackFunction · 0.70
BindMethod · 0.70
BindMethod · 0.70
BindMethod · 0.70
BindMethod · 0.70
decodeXMLFunction · 0.70
decodeYAMLFunction · 0.70
decodeTomlFunction · 0.70
TestValidatePrimitivesFunction · 0.70

Calls 1

ValidateStructMethod · 0.65

Tested by 5

TestValidatePrimitivesFunction · 0.56
TestValidatorEngineFunction · 0.56