MCPcopy
hub / github.com/wavetermdev/waveterm / validateMethodArg

Function validateMethodArg

pkg/service/service.go:394–400  ·  view source on GitHub ↗
(argType reflect.Type)

Source from the content-addressed store, hash-verified

392}
393
394func validateMethodArg(argType reflect.Type) error {
395 // specifically allow waveobj.WaveObj, []waveobj.WaveObj, map[string]waveobj.WaveObj, and context.Context
396 if isSpecialWaveArgType(argType) || argType == contextRType {
397 return nil
398 }
399 return baseValidateServiceArg(argType)
400}
401
402func validateServiceMethod(service string, method reflect.Method) error {
403 for idx := 0; idx < method.Type.NumOut(); idx++ {

Callers 1

validateServiceMethodFunction · 0.85

Calls 2

isSpecialWaveArgTypeFunction · 0.85
baseValidateServiceArgFunction · 0.85

Tested by

no test coverage detected