|
16 | 16 | <Interfaces /> |
17 | 17 | <Docs> |
18 | 18 | <summary>Provides JSON serialization-related metadata about a property or field.</summary> |
19 | | - <remarks> |
20 | | - <format type="text/markdown"><![CDATA[ |
21 | | -
|
22 | | -## Remarks |
23 | | -
|
24 | | -This API is intended for use by the output of the System.Text.Json source generator and should not be called directly. |
25 | | -
|
26 | | - ]]></format> |
27 | | - </remarks> |
| 19 | + <remarks>To be added.</remarks> |
28 | 20 | </Docs> |
29 | 21 | <Members> |
30 | 22 | <Member MemberName="AttributeProvider"> |
@@ -177,10 +169,21 @@ The current <see cref="P:System.Text.Json.Serialization.Metadata.JsonPropertyInf |
177 | 169 | <Docs> |
178 | 170 | <summary>Gets or sets a value that indicates whether the current property is required for deserialization to be successful.</summary> |
179 | 171 | <value>To be added.</value> |
180 | | - <remarks>For contracts originating from <see cref="T:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver" /> or <see cref="T:System.Text.Json.Serialization.JsonSerializerContext" />, the value of this property will be mapped from <see cref="T:System.Text.Json.Serialization.JsonRequiredAttribute" /> annotations. |
181 | | - For contracts using <see cref="T:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver" />, the value of this property will also map from properties that have the <see langword="required" /> modifier, unless deserialization uses a constructor that populates all required properties and that has <see cref="T:System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute" />. |
182 | | - <see langword="required" /> keyword is currently not supported in <see cref="T:System.Text.Json.Serialization.JsonSerializerContext" /> contracts.</remarks> |
| 172 | + <remarks> |
| 173 | + <format type="text/markdown"><![CDATA[ |
| 174 | +
|
| 175 | +## Remarks |
| 176 | +
|
| 177 | +For contracts that originate from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, the value of this property is mapped from <xref:System.Text.Json.Serialization.JsonRequiredAttribute> annotations. |
| 178 | +
|
| 179 | +For contracts that use <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver>, the value of this property is also mapped from properties that have the `required` modifier, unless deserialization uses a constructor that populates all required properties and has <xref:System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute>. |
| 180 | +
|
| 181 | +The `required` keyword is currently not supported in <xref:System.Text.Json.Serialization.JsonSerializerContext> contracts. |
| 182 | +
|
| 183 | +]]></format> |
| 184 | + </remarks> |
183 | 185 | <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Text.Json.Serialization.Metadata.JsonPropertyInfo" /> instance has been locked for further modification.</exception> |
| 186 | + <related type="Article" href="/dotnet/standard/serialization/system-text-json/required-properties">Required properties</related> |
184 | 187 | </Docs> |
185 | 188 | </Member> |
186 | 189 | <Member MemberName="Name"> |
|
0 commit comments