def is_param

ezmcp@0.1.0.0 · src/openapi.bend:663

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

663# whether a path segment is a template expression, `{` to `}`
664def is_param(+part: String) -> Bool:
665  Bool.and(String.starts_with(part, "{"), String.ends_with(part, "}"))

Uses (5)

Used by (1)