def need

ezmcp@0.1.0.0 · src/openapi.bend:827

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

827# `name` added to the end of the required names when `want`
828def need(req: List<&2, String>, name: String, want: Bool) -> List<&2, String>:
829  match want:
830    case True{}:
831      List.append(&2, String, req, [name])
832    case False{}:
833      req

Uses (4)

Used by (2)