def input.body.of
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport Base
import emerging-ezjson@1.2.0.0/main.bend as Json
import emerging-ezjson@1.2.0.0/src/value.bend as Value
918def input.body.of(+rb: Value.Json, +mt: String, st: In) -> In:
919 match st:
920 case In{props, req}:
921 In{put(props, "requestBody",
922 body.schema(String.eq(mt, "application/json"), rb, mt)),
923 need(req, "requestBody", is_true(Json.get(rb, "required")))}