Skip to main content

Module wire

Module wire 

Source
Expand description

The jev-1 wire envelope: POST /v1/systemone request → validated IR.

The request body is {state, model, questions}. Parsing goes through [hyprstream_decision::entry::Entry] so insertion order survives (option order is canonical, D6) and validation is delegated to the P0.1a authoring layer — the facade enforces exactly the profile rules, nothing parallel.

Error bodies mirror the FastAPI detail shape (S6a §6.1): 422 carries {"detail": [{"loc": [...], "msg", "type"}]}; other error statuses carry {"detail": "<message>"} (A10 — non-422 shapes are unspecified upstream).

Structs§

DetailItem
One FastAPI-style 422 detail item.
WireError
A facade error: an HTTP status plus a body that matches the documented error shapes.
WireRequest
A parsed, validated SystemOneRequest.

Functions§

parse_request
Parse and validate a POST /v1/systemone request body.