Skip to content

Commit b79da59

Browse files
authored
WN update with include Min Api empty string in form post (#34990)
1 parent a1d8cd9 commit b79da59

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ This section describes new features for SignalR.
3535

3636
This section describes new features for minimal APIs.
3737

38+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/MinApiEmptyStringInFormPost.md)]
39+
3840
## OpenAPI
3941

4042
This section describes new features for OpenAPI.

aspnetcore/release-notes/aspnetcore-10/includes/MinApiEmptyStringInFormPost.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Treating empty string in form post as null for nullable value types
22

3-
When using the `[FromForm]` attribute with a complex object in minimal APIs, empty string values in a form post are now converted to null rather than causing a parse failure. This behavior matches the processing logic for form posts not associated with complex object's in minimal APIs.
3+
When using the `[FromForm]` attribute with a complex object in minimal APIs, empty string values in a form post are now converted to `null` rather than causing a parse failure. This behavior matches the processing logic for form posts not associated with complex objects in minimal APIs.
44

55
```csharp
66
using Microsoft.AspNetCore.Http;
@@ -22,4 +22,4 @@ public class Todo
2222
}
2323
```
2424

25-
Thanks to @nvmkpk for contributing this change!
25+
Thanks to [@nvmkpk](https://github.com/nvmkpk) for contributing this change!

0 commit comments

Comments
 (0)