(req StartRun)
| 2690 | } |
| 2691 | |
| 2692 | func normalizeStartRun(req StartRun) (StartRun, error) { |
| 2693 | normalized := req |
| 2694 | normalized.IdempotencyKey = strings.TrimSpace(normalized.IdempotencyKey) |
| 2695 | if err := normalized.Validate("start_run"); err != nil { |
| 2696 | return StartRun{}, err |
| 2697 | } |
| 2698 | return normalized, nil |
| 2699 | } |
| 2700 | |
| 2701 | func normalizeCancelRun(req CancelRun) (CancelRun, error) { |
| 2702 | normalized := req |