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

TypeAlias ValidationRules

validity.go:56–56  ·  view source on GitHub ↗

ValidationRules is a map of strings to slices of things. The keys of the map should be the field names to validate, in the struct or map of input given. The values should be slices of validators to run. For example: rules := ValidationRules{"username": []string{"String", "required", "between: 4,

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected