MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / validationError

Function validationError

projects/runtime-protocol/src/protocol.ts:366–368  ·  view source on GitHub ↗
(path: string, message: string, code = "invalid_message")

Source from the content-addressed store, hash-verified

364} as const
365
366function validationError(path: string, message: string, code = "invalid_message"): RuntimeValidationResult<never> {
367 return { ok: false, error: { code, message, path } }
368}
369
370function paramsError(path: string, message: string): RuntimeValidationResult<never> {
371 return validationError(path, message, "invalid_params")

Callers 6

paramsErrorFunction · 0.85
validateRuntimeRequestFunction · 0.85
validateRuntimeResponseFunction · 0.85
validateRuntimeScopeFunction · 0.85
validateRuntimeRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected