Commit e396315
authored
Fix: This handles the issue where a URL parameter like
Fix: This handles the issue where a URL parameter like `?age=null` cannot be bound to an `int?` type.
This fix ensures that when the frontend sends a URL parameter with `null` value (e.g., `new URLSearchParams({ age: null }).toString()`),
it correctly binds to a nullable integer (`int?`) instead of causing a binding error.?age=null cannot be bound to an int? type1 parent 9e08e07 commit e396315
File tree
1 file changed
+7
-0
lines changed- src/Mvc/Mvc.Core/src/ModelBinding/Binders
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
0 commit comments