def name.of
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport Base
723# a tool's name: the operation's id when it is a non-empty string, else one
724# made from the method and path (`generated`), as a tool name (`sanitize`)
725def name.of(id: Maybe<&2, String>, +method: String, path: String) -> String:
726 sanitize(Maybe.default(&2, String, full(id), generated(method, path)))