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

Method Validate

internal/task/validate.go:861–871  ·  view source on GitHub ↗

Validate reports whether the dependency-create request is internally consistent.

(path string)

Source from the content-addressed store, hash-verified

859
860// Validate reports whether the dependency-create request is internally consistent.
861func (r AddDependency) Validate(path string) error {
862 dependency := Dependency{
863 TaskID: r.TaskID,
864 DependsOnTaskID: r.DependsOnTaskID,
865 Kind: r.Kind,
866 }
867 if err := dependency.Validate(); err != nil {
868 return fmt.Errorf("%w: %s", err, path)
869 }
870 return nil
871}
872
873// Validate reports whether the enqueue-run request is internally consistent.
874func (r EnqueueRun) Validate(path string) error {

Callers 1

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected