ValidatePayloadSize reports whether a persisted JSON payload respects the shared 64 KiB guardrail.
(payload json.RawMessage, path string)
| 1150 | |
| 1151 | // ValidatePayloadSize reports whether a persisted JSON payload respects the shared 64 KiB guardrail. |
| 1152 | func 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. |
| 1157 | func ValidateResultSize(payload json.RawMessage, path string) error { |