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

Function hasRawClaimTokenField

internal/task/validate.go:698–707  ·  view source on GitHub ↗
(raw json.RawMessage)

Source from the content-addressed store, hash-verified

696}
697
698func hasRawClaimTokenField(raw json.RawMessage) bool {
699 if len(raw) == 0 {
700 return false
701 }
702 var decoded any
703 if err := json.Unmarshal(raw, &decoded); err != nil {
704 return false
705 }
706 return hasRawClaimTokenFieldValue(decoded)
707}
708
709func hasRawClaimTokenFieldValue(value any) bool {
710 switch typed := value.(type) {

Callers 4

ValidateMethod · 0.85
ValidateMethod · 0.85
ValidateMethod · 0.85

Calls 1

Tested by

no test coverage detected