We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1242db8 commit e79727bCopy full SHA for e79727b
src/Elastic.Transport/Products/Elasticsearch/ErrorSerializationContext.cs
@@ -0,0 +1,14 @@
1
+// Licensed to Elasticsearch B.V under one or more agreements.
2
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
+// See the LICENSE file in the project root for more information
4
+
5
+using System.Text.Json;
6
+using System.Text.Json.Serialization;
7
+using System.Text.Json.Serialization.Metadata;
8
9
+namespace Elastic.Transport.Products.Elasticsearch;
10
11
+/// Adds support for serializing Elasticsearch errors using <see cref="IJsonTypeInfoResolver"/>
12
+[JsonSerializable(typeof(Error))]
13
+[JsonSerializable(typeof(ErrorCause))]
14
+public partial class ErrorSerializerContext : JsonSerializerContext;
0 commit comments