Skip to content

Commit df4b18e

Browse files
f1nzerflobernd
authored andcommitted
Fix RawJsonString serialization (#8051)
1 parent f38406e commit df4b18e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Elastic.Clients.Elasticsearch.Shared/Core/RawJsonString.cs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Elastic.Clients.Elasticsearch;
1313
#endif
1414

1515
#if NET6_0_OR_GREATER
16+
[JsonConverter(typeof(RawJsonConverter))]
1617
public struct RawJsonString
1718
{
1819
public RawJsonString(string rawJson) => Json = rawJson;

tests/Tests/_VerifySnapshots/ScriptParamsSerializationTests.SerializesRawJson.verified.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{
1+
{
22
params: {
33
person: {
4-
json: { "forename": "raw_json" }
4+
forename: raw_json
55
}
66
},
77
source: source

0 commit comments

Comments
 (0)