You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to be able to extract the specification generated by Router::route_openapi_specification without serving the contract, how can I do it? Could we split route_openapi_specification in two steps?
The text was updated successfully, but these errors were encountered:
letmut routes = self.routes_operations().openapi_operation_generators();let spec = openapi_builder
.add_operations(routes.into_iter().map(|((x, y), z)| (x, y, z)))? // don't even ask :).generate_spec()?;
Could we split route_openapi_specification in two steps?
Maybe instead add method which will add routes from Router to provided OpenApiBuilder? Something like Router::add_routes(&mut self, builder: &mut OpenaApiBuilder.
I am currently trying to rewrite entire axum integration, if OpenApiBuilder stays I will definitely add this feature.
If someone willing, it could be added to current version
Hi, I would like to be able to extract the specification generated by
Router::route_openapi_specification
without serving the contract, how can I do it? Could we splitroute_openapi_specification
in two steps?The text was updated successfully, but these errors were encountered: