Skip to content

Commit 8d460ae

Browse files
committed
Merge branch 'bugfix/AttributeDescriptor.DefaultValue' into develop
Ensure that the `DefaultValue` defaults to null, not empty, if it is undefined. This makes it easier for calling code to determine if there is a value associated with it that should be utilized.
2 parents 3552bf6 + 7b894d8 commit 8d460ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic/Metadata/AttributeDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public bool IsRequired {
168168
/// </remarks>
169169
[ExcludeFromCodeCoverage]
170170
public string? DefaultValue {
171-
get => Attributes.GetValue("DefaultValue", "");
171+
get => Attributes.GetValue("DefaultValue", null);
172172
set => SetAttributeValue("DefaultValue", value);
173173
}
174174

0 commit comments

Comments
 (0)