MCPcopy Create free account
hub / github.com/connor4312/validity / ValidateMap

Function ValidateMap

validity.go:119–125  ·  view source on GitHub ↗

Validates a map against a set of rules. "Data" is obviously a map of string keys to mixed type values, while rules is an instance of the rules to validate the data against. Returns a pointer to ValidationResults

(data map[string]interface{}, rules ValidationRules)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestValidatesMapFunction · 0.85
TestEnforcesRequiredFunction · 0.85
TestAllowsOptionalFunction · 0.85
ValidateStructFunction · 0.85
ValidateStructTagsFunction · 0.85

Calls 1

RunMethod · 0.80

Tested by 3

TestValidatesMapFunction · 0.68
TestEnforcesRequiredFunction · 0.68
TestAllowsOptionalFunction · 0.68