ValidateMetadataSize reports whether metadata JSON respects the shared 16 KiB guardrail.
(payload json.RawMessage, path string)
| 1145 | |
| 1146 | // ValidateMetadataSize reports whether metadata JSON respects the shared 16 KiB guardrail. |
| 1147 | func ValidateMetadataSize(payload json.RawMessage, path string) error { |
| 1148 | return validateJSONSize(payload, MaxMetadataBytes, path) |
| 1149 | } |
| 1150 | |
| 1151 | // ValidatePayloadSize reports whether a persisted JSON payload respects the shared 64 KiB guardrail. |
| 1152 | func ValidatePayloadSize(payload json.RawMessage, path string) error { |