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
Note that the query_params definition takes a params::OptionalProjectSelector. That OptionalProjectSelector is just a wrapper for ProjectSelector with an Option and #[serde(flatten)] in the definition. It's a whole lot of noise that could be avoided if Query<Option<params::ProjectSelector>> was valid. Unfortunately if we try that we get this gem
In Oxide's V1 API we have endpoint definitions like the following
Note that the
query_params
definition takes aparams::OptionalProjectSelector
. ThatOptionalProjectSelector
is just a wrapper forProjectSelector
with anOption
and#[serde(flatten)]
in the definition. It's a whole lot of noise that could be avoided ifQuery<Option<params::ProjectSelector>>
was valid. Unfortunately if we try that we get this gemOptional query panic
This is somewhat related to #635 that that ultimately both
Body
andQuery
would be improved by takingOption
types.The text was updated successfully, but these errors were encountered: