def body.text

ezmcp@0.1.0.0 · src/openapi.bend:906

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

906def body.text(+rb: Value.Json, mt: String) -> Value.Json:
907  Json.obj([("type", Json.str("string")), ("description", Json.str(
908    Maybe.default(&2, String, full(Json.as_str(Json.get(rb, "description"))),
909      "Request body (content type: " ++ mt ++ ")")))])

Uses (11)

Used by (1)