juhaku/utoipa

TypedPath support

Opened this issue · 1 comments

Hi,

is there a way to use TypedPath from axum_extra with utoipa? If not, is there a plan to integrate it more closely?

Thanks! :)

As of now there are no plans on adding support for that, but perhaps sometime in future it could be considered. This would need some assessment on how this support could be achieved nonetheless.

Since the TypedPath needs it's own Router methods, it would also be necessary for utoipa to have a custom methods that is able to handle them as well, most likely in utoipa-axum project. But as far as the support now reaches TypedPath can be used as is without the utoipa-axum bindings. That is using the macros like #[utoipa::path(...)] and #[derive(OpenApi)] where path(...) annotated handler functions are registered to the OpenApi like in the most of the examples for now.