Replies: 2 comments
-
|
Hello @mnbob70, |
Beta Was this translation helpful? Give feedback.
-
|
A similar issue was fixed for POST but it does not seem to have been done for GET. With Blazor SSR it should be possible to process a Form GET with model binding. I was trying to use Blazor with HTMX and Form GET instead of POST. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a GET search minimal API that included optional startdate and end date parameters. I set the parameter types to nullable datetime. I incorrectly expected an empty query string to map to null, but instead it generated 400 Bad Request errors.
This makes it impossible to process an HTML form using GET without processing all of the parameters as strings, performing null checks and finally converting to the expected type. Is there a reason this can't be handled with nullable parameter types?
Beta Was this translation helpful? Give feedback.
All reactions