`required` attribute for salvo_oapi endpoint macro
YorKnEz opened this issue · 2 comments
YorKnEz commented
According to docs of params_attributes, there is no way of setting the required
flag of a query param off. I would like an attribute that does that.
For example, I want to be able to say:
#[endpoint(parameters(("test" = String, Query, required = false)))]
chrislearn commented
Use Option<String>
.
#[endpoint(parameters(("test" = Option<String>, Query, )))]
YorKnEz commented
How did I not think of that.. thank you very much