From 384fefb44b1a7dd49f98e4416b0e896edd787def Mon Sep 17 00:00:00 2001 From: TsukiCTF <32463233+TsukiCTF@users.noreply.github.com> Date: Fri, 19 May 2023 23:08:49 -0400 Subject: [PATCH 1/2] Fix typo Property is named `ObjectId` in the example shown. --- aspnetcore/mvc/models/model-binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/mvc/models/model-binding.md b/aspnetcore/mvc/models/model-binding.md index 79ca39ca93..50a114c03e 100644 --- a/aspnetcore/mvc/models/model-binding.md +++ b/aspnetcore/mvc/models/model-binding.md @@ -650,7 +650,7 @@ To use the built-in XML input formatters: An input formatter takes full responsibility for reading data from the request body. To customize this process, configure the APIs used by the input formatter. This section describes how to customize the `System.Text.Json`-based input formatter to understand a custom type named `ObjectId`. -Consider the following model, which contains a custom `ObjectId` property named `Id`: +Consider the following model, which contains a custom `ObjectId` property named `ObjectId`: :::code language="csharp" source="model-binding/samples/6.x/ModelBindingSample/Snippets/InstructorObjectId.cs" id="snippet_Class" highlight="4"::: From ba87cef77f45651edc314569018c9e019fff4912 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Sat, 20 May 2023 06:31:09 -0400 Subject: [PATCH 2/2] Updates --- aspnetcore/mvc/models/model-binding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/mvc/models/model-binding.md b/aspnetcore/mvc/models/model-binding.md index 50a114c03e..688be6fee3 100644 --- a/aspnetcore/mvc/models/model-binding.md +++ b/aspnetcore/mvc/models/model-binding.md @@ -650,7 +650,7 @@ To use the built-in XML input formatters: An input formatter takes full responsibility for reading data from the request body. To customize this process, configure the APIs used by the input formatter. This section describes how to customize the `System.Text.Json`-based input formatter to understand a custom type named `ObjectId`. -Consider the following model, which contains a custom `ObjectId` property named `ObjectId`: +Consider the following model, which contains a custom `ObjectId` property: :::code language="csharp" source="model-binding/samples/6.x/ModelBindingSample/Snippets/InstructorObjectId.cs" id="snippet_Class" highlight="4"::: @@ -1283,7 +1283,7 @@ To use the built-in XML input formatters: An input formatter takes full responsibility for reading data from the request body. To customize this process, configure the APIs used by the input formatter. This section describes how to customize the `System.Text.Json`-based input formatter to understand a custom type named `ObjectId`. -Consider the following model, which contains a custom `ObjectId` property named `Id`: +Consider the following model, which contains a custom `ObjectId` property: :::code language="csharp" source="model-binding/samples/6.x/ModelBindingSample/Snippets/InstructorObjectId.cs" id="snippet_Class" highlight="4":::