MCPcopy Create free account
hub / github.com/compozy/agh / Validate

Method Validate

internal/task/validate.go:893–898  ·  view source on GitHub ↗

Validate reports whether the claim-run request is internally consistent.

(path string)

Source from the content-addressed store, hash-verified

891
892// Validate reports whether the claim-run request is internally consistent.
893func (r ClaimRun) Validate(path string) error {
894 if strings.TrimSpace(path) == "" {
895 return fmt.Errorf("%w: claim_run path is required", ErrValidation)
896 }
897 return nil
898}
899
900// Validate reports whether the start-run request is internally consistent.
901func (r StartRun) Validate(path string) error {

Callers 2

claimTaskRunFromRequestFunction · 0.95
claimTaskRunFromRequestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected