def body.json
ezmcp@0.1.0.0 · src/openapi.bend:899
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
899def body.json(+rb: Value.Json) -> Value.Json:
900 +bs = schema(Json.get(Json.get(Json.get(rb, "content"), "application/json"),
901 "schema"))
902 described(bs, first(full(Json.as_str(Json.get(rb, "description"))),
903 first(full(Json.as_str(Json.get(bs, "description"))),
904 Some{"The JSON request body."})))