diff --git a/src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs b/src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
index 3a3f1291b1dcb..8084d4a6f613f 100644
--- a/src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
+++ b/src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
@@ -4,8 +4,7 @@
namespace System.Text.Json.Serialization
{
///
- /// Instructs the System.Text.Json source generator to assume the specified
- /// options will be used at run time via .
+ /// Specifies compile-time source generator configuration when applied to class declarations.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
#if BUILDING_SOURCE_GENERATOR
@@ -42,94 +41,92 @@ public JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults)
}
///
- /// Defines whether an extra comma at the end of a list of JSON values in an object or array
- /// is allowed (and ignored) within the JSON payload being deserialized.
+ /// Specifies the default value of when set.
///
public bool AllowTrailingCommas { get; set; }
///
- /// Specifies a list of custom converter types to be used.
+ /// Specifies the default value of when set.
///
public Type[]? Converters { get; set; }
///
- /// The default buffer size in bytes used when creating temporary buffers.
+ /// Specifies the default value of when set.
///
public int DefaultBufferSize { get; set; }
///
- /// Specifies the default ignore condition.
+ /// Specifies the default value of when set.
///
public JsonIgnoreCondition DefaultIgnoreCondition { get; set; }
///
- /// Specifies the policy used to convert a dictionary key to another format, such as camel-casing.
+ /// Specifies the default value of when set.
///
public JsonKnownNamingPolicy DictionaryKeyPolicy { get; set; }
///
- /// Specifies whether to ignore read-only fields.
+ /// Specifies the default value of when set.
///
public bool IgnoreReadOnlyFields { get; set; }
///
- /// Specifies whether to ignore read-only properties.
+ /// Specifies the default value of when set.
///
public bool IgnoreReadOnlyProperties { get; set; }
///
- /// Specifies whether to include fields for serialization and deserialization.
+ /// Specifies the default value of when set.
///
public bool IncludeFields { get; set; }
///
- /// Gets or sets the maximum depth allowed when serializing or deserializing JSON, with the default (i.e. 0) indicating a max depth of 64.
+ /// Specifies the default value of when set.
///
public int MaxDepth { get; set; }
///
- /// Specifies how number types should be handled when serializing or deserializing.
+ /// Specifies the default value of when set.
///
public JsonNumberHandling NumberHandling { get; set; }
///
- /// Specifies preferred object creation handling for properties when deserializing JSON.
+ /// Specifies the default value of when set.
///
public JsonObjectCreationHandling PreferredObjectCreationHandling { get; set; }
///
- /// Determines whether a property name uses a case-insensitive comparison during deserialization.
+ /// Specifies the default value of when set.
///
public bool PropertyNameCaseInsensitive { get; set; }
///
- /// Specifies a built-in naming polices to convert JSON property names with.
+ /// Specifies the default value of when set.
///
public JsonKnownNamingPolicy PropertyNamingPolicy { get; set; }
///
- /// Defines how JSON comments are handled during deserialization.
+ /// Specifies the default value of when set.
///
public JsonCommentHandling ReadCommentHandling { get; set; }
///
- /// Defines how deserializing a type declared as an is handled during deserialization.
+ /// Specifies the default value of when set.
///
public JsonUnknownTypeHandling UnknownTypeHandling { get; set; }
///
- /// Determines how handles JSON properties that
- /// cannot be mapped to a specific .NET member when deserializing object types.
+ /// Specifies the default value of when set.
///
public JsonUnmappedMemberHandling UnmappedMemberHandling { get; set; }
///
- /// Specifies whether JSON output should be pretty-printed.
+ /// Specifies the default value of when set.
///
public bool WriteIndented { get; set; }
///
- /// Specifies the source generation mode for types that don't explicitly set the mode with .
+ /// Specifies the default source generation mode for type declarations that don't set a .
///
public JsonSourceGenerationMode GenerationMode { get; set; }