def prof_body
import cswap-bend-cli@0.1.0.0/setimp.bend as Setimpimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/fmt/yscal.bend as S
260def prof_body(+name: String, +v: Json.Json) -> Result<&2, &2, String, Json.Json>:
261 match v:
262 case Json.JObj{f}:
263 S.wrap.obj(prof_fields(f))
264 case Json.JNull{}:
265 Done{Json.JNull{}}
266 case _:
267 Fail{"profile '" ++ name ++ "' must be a mapping"}