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

Function ValidatePayloadSize

internal/task/validate.go:1152–1154  ·  view source on GitHub ↗

ValidatePayloadSize reports whether a persisted JSON payload respects the shared 64 KiB guardrail.

(payload json.RawMessage, path string)

Source from the content-addressed store, hash-verified

1150
1151// ValidatePayloadSize reports whether a persisted JSON payload respects the shared 64 KiB guardrail.
1152func ValidatePayloadSize(payload json.RawMessage, path string) error {
1153 return validateJSONSize(payload, MaxPayloadBytes, path)
1154}
1155
1156// ValidateResultSize reports whether a persisted run result respects the shared 64 KiB guardrail.
1157func ValidateResultSize(payload json.RawMessage, path string) error {

Callers 7

ValidateMethod · 0.85
ValidateMethod · 0.85
ValidateMethod · 0.85
ValidateMethod · 0.85
decodeVerdictMissingWorkFunction · 0.85
TestPayloadSizeGuardsFunction · 0.85

Calls 1

validateJSONSizeFunction · 0.85

Tested by 1

TestPayloadSizeGuardsFunction · 0.68