(req RetryRunRequest)
| 576 | } |
| 577 | |
| 578 | func normalizeRetryRunRequest(req RetryRunRequest) (RetryRunRequest, error) { |
| 579 | req.Metadata = normalizeRawJSON(req.Metadata) |
| 580 | if err := ValidateMetadataSize(req.Metadata, "retry_run.metadata"); err != nil { |
| 581 | return RetryRunRequest{}, err |
| 582 | } |
| 583 | return req, nil |
| 584 | } |
| 585 | |
| 586 | func normalizeRecoverRunRequest(req RecoverRunRequest) (RecoverRunRequest, error) { |
| 587 | req.Reason = strings.TrimSpace(req.Reason) |
no test coverage detected