Skip to main content

parse_typed_json_batch

Function parse_typed_json_batch 

Source
pub fn parse_typed_json_batch(
    ops: Vec<TypedJsonOp>,
) -> Result<ParsedRequest, DslError>
Expand description

Validates an already-decoded JSON batch without reapplying the raw DSL byte cap.

This is the typed seam for bounded trusted transports such as kkernel exec --ops-file. The caller must bound the source bytes before decoding; agent-facing and HTTP/MCP inputs must continue to use parse_request, which enforces MAX_OPS_INPUT_LEN. All JSON-form structural rules remain in force: 1–100 independent operations, bounded nesting, no $prev, and no request-envelope fields inside verb args.