global

def add_openapi_id(path, route)

def add_openapi_id(path, route)
  return path if route.params.empty?
  route.params.each_pair do |key, value|
    path = path.sub("/#{value}", "/{#{key}}")
  end
  path
end