(p Patch)
| 1244 | } |
| 1245 | |
| 1246 | func 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 | |
| 1259 | func validateTaskPatchTextAndSemantics(p Patch, path string) error { |
| 1260 | if p.Title != nil && strings.TrimSpace(*p.Title) == "" { |