def plan
import cswap-bend-cli@0.1.0.0/rpcmsg.bend as Rpcmsgimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
164# The command line a request asks for, or why it cannot be served.
165def plan(+j: Json.Json) -> Req:
166 match j:
167 case Json.JObj{f}:
168 build(j)
169 case _:
170 bad(Json.JNull{}, "bad_request", "a request is an object: {\"id\": ..., \"cmd\": ..., \"args\": [...], \"opts\": {...}}")