MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ValidateInterfaceMapMissing

Function ValidateInterfaceMapMissing

pkg/lib/configreader/interface_map.go:65–70  ·  view source on GitHub ↗
(v *InterfaceMapValidation)

Source from the content-addressed store, hash-verified

63}
64
65func ValidateInterfaceMapMissing(v *InterfaceMapValidation) (map[string]interface{}, error) {
66 if v.Required {
67 return nil, ErrorMustBeDefined()
68 }
69 return validateInterfaceMap(v.Default, v)
70}
71
72func ValidateInterfaceMapProvided(val map[string]interface{}, v *InterfaceMapValidation) (map[string]interface{}, error) {
73 if v.CantBeSpecifiedErrStr != nil {

Callers 1

Calls 2

ErrorMustBeDefinedFunction · 0.85
validateInterfaceMapFunction · 0.85

Tested by

no test coverage detected