Skip to content

Commit 2532f44

Browse files
Increase MaxDepth to 512 for internal request/response type serializer (#8573) (#8575)
(cherry picked from commit 21c028c) Co-authored-by: Florian Bernd <[email protected]>
1 parent e80c2ba commit 2532f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ private static void MutateOptions(JsonSerializerOptions options)
151151
);
152152
#pragma warning restore IL2026, IL3050
153153

154+
options.MaxDepth = 512;
154155
options.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
155-
options.IncludeFields = true;
156156
options.NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.AllowNamedFloatingPointLiterals;
157157
options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
158158
}

0 commit comments

Comments
 (0)