-
Beta Was this translation helpful? Give feedback.
Answered by
mladedav
May 1, 2025
Replies: 1 comment 2 replies
-
You can do |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sidoki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do
Query<Option<QueryParams>>
(which will accept either no query or well formed query but would reject anything that doesn't deserialize depending on your expected query) or you can doResult<Query<QueryParams>, QueryRejection>
which works the same as the oldOption
, you just need to be more explicit.