def plan

cswap-bend-cli@0.1.0.0 · rpcmsg.bend:164

import cswap-bend-cli@0.1.0.0/rpcmsg.bend as Rpcmsg
import 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\": {...}}")

Uses (4)

Used by (1)