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

Method Validate

internal/task/validate.go:901–906  ·  view source on GitHub ↗

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

(path string)

Source from the content-addressed store, hash-verified

899
900// Validate reports whether the start-run request is internally consistent.
901func (r StartRun) Validate(path string) error {
902 if strings.TrimSpace(path) == "" {
903 return fmt.Errorf("%w: start_run path is required", ErrValidation)
904 }
905 return nil
906}
907
908// Validate reports whether the cancel-run request is internally consistent.
909func (r CancelRun) Validate(path string) error {

Callers 2

startTaskRunFromRequestFunction · 0.95
startTaskRunFromRequestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected