Openapi.call: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/openapi.bend as Openapi Lines 1288-1297 of ezmcp@0.1.0.0/src/openapi.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/openapi.bend&start_line=1288&end_line=1297 import Base import emerging-ezjson@1.2.0.0/src/value.bend as Value # the request a call of an operation stands for, with these arguments: # each parameter with an argument there and not null put in the request # (`req.params`), the header fields Accept: application/json, then the # header parameters', then Content-Type when there is a body (`body.arg`); # or Unfilled when the path still holds a `{` def call(oper: Op, +args: Value.Json) -> Call: match oper: case Op{name, description, input, method, path, params, +mt}: call.of(method, mt, body.arg(String.is_empty(mt), mt, args), req.params(params, args, Req{path, [], []})) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=Call https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=Op https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=Req https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=body.arg https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=call.of https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=req.params