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

Function hasRawClaimTokenFieldValue

internal/task/validate.go:709–726  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

707}
708
709func 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.

Callers 1

hasRawClaimTokenFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected