MCPcopy Create free account
hub / github.com/corestoreio/pkg / RegisterValidator

Function RegisterValidator

config/observer/validator.go:77–81  ·  view source on GitHub ↗

RegisterValidator adds a custom string validation function to the global registry for later use with function NewValidator. Adding an entry with an already existing `typeName` overwrites the previous validator. `typeName` will be handled case-sensitive.

(typeName string, vfn ValidateFn)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestNewValidatorFunction · 0.85

Calls 1

LockMethod · 0.80

Tested by 1

TestNewValidatorFunction · 0.68