mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-31 19:10:44 +02:00
Add SystemTextJsonMatchers (#1447)
* SystemTextJsonMatcher * , * . * new projectx * Update test/WireMock.Net.Tests/Pact/PactTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update test/WireMock.Net.Tests/WebSockets/WebSocketIntegrationTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/WireMock.Net/WireMock.Net.csproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/WireMock.Net.Minimal/Properties/AssemblyInfo.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * . * more tests * . * . * x * ... * . * fix tests * 0.11.0 * . * delete jsonutils.cs * s * fix findings * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Potential fix for pull request finding 'Missing Dispose call on local IDisposable' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * JsonConverter 0.12.0 * -- tools --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Copyright © WireMock.Net
|
||||
|
||||
using JetBrains.Annotations;
|
||||
using WireMock.Types;
|
||||
using WireMock.Util;
|
||||
|
||||
namespace WireMock.Transformers;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the contract for transforming JSON-like body data using a transformer context.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
public interface IJsonBodyTransformer
|
||||
{
|
||||
/// <summary>
|
||||
/// Transforms the JSON body using the provided transformer context and model.
|
||||
/// </summary>
|
||||
/// <param name="transformerContext">The transformer context used to render and evaluate template values.</param>
|
||||
/// <param name="options">The JSON node replacement behavior to apply during transformation.</param>
|
||||
/// <param name="model">The model used when rendering or evaluating template values.</param>
|
||||
/// <param name="original">The original body data to transform.</param>
|
||||
/// <returns>The transformed JSON body data.</returns>
|
||||
BodyData TransformBodyAsJson(
|
||||
ITransformerContext transformerContext,
|
||||
ReplaceNodeOptions options,
|
||||
object model,
|
||||
IBodyData original);
|
||||
}
|
||||
Reference in New Issue
Block a user