Remove the converter from the path. For example, a route like this: Route("/users/{id:int}", endpoint=get_user, methods=["GET"]) Should be represented as `/users/{id}` in the OpenAPI schema.
(self, path: str)
| 87 | return endpoints_info |
| 88 | |
| 89 | def _remove_converter(self, path: str) -> str: |
| 90 | """ |
| 91 | Remove the converter from the path. |
| 92 | For example, a route like this: |
| 93 | Route("/users/{id:int}", endpoint=get_user, methods=["GET"]) |
| 94 | Should be represented as `/users/{id}` in the OpenAPI schema. |
| 95 | """ |
| 96 | return _remove_converter_pattern.sub("}", path) |
| 97 | |
| 98 | def parse_docstring(self, func_or_method: Callable[..., Any]) -> dict[str, Any]: |
| 99 | """ |