Skip to content

Commit 0e37903

Browse files
bemillj82w
andauthored
[Internal] Indexing Policy: Fixes upgrade scenario to ignore Annotation property if null (#2310)
Co-authored-by: j82w <[email protected]>
1 parent d444357 commit 0e37903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Azure.Cosmos/src/Resource/Settings/IndexingPolicy.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public IndexingPolicy()
120120
/// <summary>
121121
/// Indexing policy annotation.
122122
/// </summary>
123-
[JsonProperty(PropertyName = "annotation")]
123+
[JsonProperty(PropertyName = "annotation", NullValueHandling = NullValueHandling.Ignore)]
124124
public string Annotation { get; set; }
125125
#endif
126126

0 commit comments

Comments
 (0)