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

Function taskPatchHasMutableFields

internal/task/validate.go:1246–1257  ·  view source on GitHub ↗
(p Patch)

Source from the content-addressed store, hash-verified

1244}
1245
1246func taskPatchHasMutableFields(p Patch) bool {
1247 return p.Title != nil ||
1248 p.Description != nil ||
1249 p.Priority != nil ||
1250 p.MaxAttempts != nil ||
1251 p.AutoEnqueueOnReady != nil ||
1252 p.ApprovalPolicy != nil ||
1253 p.Metadata != nil ||
1254 p.NetworkChannel != nil ||
1255 p.Owner != nil ||
1256 p.ClearOwner
1257}
1258
1259func validateTaskPatchTextAndSemantics(p Patch, path string) error {
1260 if p.Title != nil && strings.TrimSpace(*p.Title) == "" {

Callers 1

ValidateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected