Skip to content

Commit 8859112

Browse files
authored
Use DefaultJsonSerializer for BodyAsJson-Response (#1448)
1 parent 1e591d5 commit 8859112

6 files changed

Lines changed: 260 additions & 206 deletions

File tree

src/WireMock.Net.Minimal/Owin/IWireMockMiddlewareOptions.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using System.Collections.Concurrent;
44
using System.Security.Cryptography.X509Certificates;
5+
using JsonConverter.Abstractions;
56
using Microsoft.AspNetCore.Builder;
67
using Microsoft.Extensions.DependencyInjection;
78
using WireMock.Handlers;
@@ -99,4 +100,12 @@ internal interface IWireMockMiddlewareOptions
99100
/// WebSocket settings.
100101
/// </summary>
101102
WebSocketSettings? WebSocketSettings { get; set; }
103+
104+
/// <summary>
105+
/// Gets or sets the default JSON converter used for serialization.
106+
/// </summary>
107+
/// <remarks>
108+
/// Set this property to customize how objects are serialized to and deserialized from JSON during mapping.
109+
/// </remarks>
110+
IJsonConverter DefaultJsonSerializer { get; set; }
102111
}

0 commit comments

Comments
 (0)