(value any)
| 707 | } |
| 708 | |
| 709 | func hasRawClaimTokenFieldValue(value any) bool { |
| 710 | switch typed := value.(type) { |
| 711 | case map[string]any: |
| 712 | for key, nested := range typed { |
| 713 | if strings.EqualFold(strings.TrimSpace(key), "claim_token") { |
| 714 | return true |
| 715 | } |
| 716 | if hasRawClaimTokenFieldValue(nested) { |
| 717 | return true |
| 718 | } |
| 719 | } |
| 720 | case []any: |
| 721 | if slices.ContainsFunc(typed, hasRawClaimTokenFieldValue) { |
| 722 | return true |
| 723 | } |
| 724 | } |
| 725 | return false |
| 726 | } |
| 727 | |
| 728 | // Validate reports whether the boot-recovery request contains one supported |
| 729 | // recovery action. |
no outgoing calls
no test coverage detected