def need
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport 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