Open mygitcsv opened 1 year ago
I am also running into this issue. Not sure how it can be solved if at all.
@juhaku
edit:
Add the following to the struct
#[into_params(parameter_in = Query)]
@GunnarMorrigan that is the solution. However I believe that you have axum_extras
feature flag enabled from utoipa
and handler that looks like this:
#[derive(IntoParams)]
struct Params {...}
async fn handler(query: Query<Params>) {...}
You should be see those parameters in query parameters by default. But if not the adding #[into_params(parameter_in = Query)]
fill set those fields as query parameters.
TODO example for axum does not work. The generated page for Query parameters is not correct. utoipa = "3.4.4" utoipa-swagger-ui = { version = "3.1.5", features = ["axum"] }