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

Function normalizeClaimRun

internal/task/manager.go:2683–2690  ·  view source on GitHub ↗
(claim ClaimRun)

Source from the content-addressed store, hash-verified

2681}
2682
2683func normalizeClaimRun(claim ClaimRun) (ClaimRun, error) {
2684 normalized := claim
2685 normalized.IdempotencyKey = strings.TrimSpace(normalized.IdempotencyKey)
2686 if err := normalized.Validate("claim_run"); err != nil {
2687 return ClaimRun{}, err
2688 }
2689 return normalized, nil
2690}
2691
2692func normalizeStartRun(req StartRun) (StartRun, error) {
2693 normalized := req

Callers 1

ClaimRunMethod · 0.85

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected