def generated
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport Base
715# an operation id made from the method and the path, for an operation with
716# none, as openapi-mcp-generator makes it: the method, each path segment in
717# title case, a parameter segment only when it is the last and then after
718# "By", "Root" when there are no segments, the first letter in upper case
719def generated(+method: String, path: String) -> String:
720 +name = String.to_lower(method) ++ gen.parts(segments(String.split(path, '/')))
721 capital(gen.root(String.eq(name, String.to_lower(method)), name))