def input.param.put

ezmcp@0.1.0.0 · src/openapi.bend:845

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base
import emerging-ezjson@1.2.0.0/main.bend as Json
import emerging-ezjson@1.2.0.0/src/value.bend as Value

845def input.param.put(+name: String, +one: Value.Json, st: In) -> In:
846  match st:
847    case In{props, req}:
848      In{put(props, name, described(schema(Json.get(one, "schema")),
849        full(Json.as_str(Json.get(one, "description"))))),
850        need(req, name, is_true(Json.get(one, "required")))}

Uses (11)

Used by (1)