-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support query string binding for Option<'T> #51
Comments
This is actually a Json.NET thing, see https://gist.github.com/isaacabraham/ba679f285bfd15d2f53e. |
I meant Query String binding :) [<CLIMutable>]
type Query =
{ pattern: string
page: int
perPage: int
userId: string
dataViewId: int option } and the code to do the binding: let! query = ctx.BindQueryString<Query>() That line gives me the exception. I don't currently use JSON payload on my requests, althoug that link provide a lot of insights for future needs, I think for now it should be mentioned on docs and after people feedback may be enabled by default. |
Oh, my bad. |
Hey guys, yes I think we could add a case for options to the binding of the query string. |
I'll do a PR for this soon, just finishing the tests. |
When binding from a query string to a record with a field of type
int option
this exception happens.Haven't try with form/json/xml binding.
The text was updated successfully, but these errors were encountered: