Skip to content

Commit 7f6c225

Browse files
breyedRon Petrusha
authored andcommitted
Correct JsonNamingPolicy docs (#3244)
This removes the incorrect docs about JsonNamingPolicy being an enum and indicates the behavior if the property is null, as described in dotnet/aspnetcore#10156.
1 parent 4f9dbb8 commit 7f6c225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Text.Json/JsonSerializerOptions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ There is a performance cost associated with case-insensitie comparison (that is,
338338
<ReturnType>System.Text.Json.JsonNamingPolicy</ReturnType>
339339
</ReturnValue>
340340
<Docs>
341-
<summary>Gets or sets a value that specifies the policy used to convert a property's name on an object to another format, such as camel-casing. </summary>
342-
<value>One of the enum values from <see cref="T:System.Text.Json.JsonNamingPolicy" />.</value>
341+
<summary>Gets or sets a value that specifies the policy used to convert a property's name on an object to another format, such as camel-casing, or <see langword="null" /> to leave property names unchanged.</summary>
342+
<value>A property naming policy, or <see langword="null" /> to leave property names unchanged.</value>
343343
<remarks>
344344
<format type="text/markdown"><![CDATA[
345345

0 commit comments

Comments
 (0)