mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 07:13:46 +01:00
* Update ProxyUrlReplaceSettingsModel with TransformTemplate property + parse settings correctly * oldValue nullable * <Version>1.14.0-preview-01</Version>
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using WireMock.Types;
|
|
|
|
namespace WireMock.Admin.Settings;
|
|
|
|
/// <summary>
|
|
/// Defines an old path param and a new path param to be replaced when proxying.
|
|
/// </summary>
|
|
[FluentBuilder.AutoGenerateBuilder]
|
|
public class ProxyUrlReplaceSettingsModel
|
|
{
|
|
/// <summary>
|
|
/// The old path value to be replaced by the new path value
|
|
/// </summary>
|
|
public string? OldValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// The new path value to replace the old value with
|
|
/// </summary>
|
|
public string? NewValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines if the case should be ignored when replacing.
|
|
/// </summary>
|
|
public bool IgnoreCase { get; set; }
|
|
|
|
/// <summary>
|
|
/// Holds the transformation template.
|
|
/// </summary>
|
|
public string? TransformTemplate { get; set; }
|
|
|
|
/// <summary>
|
|
/// The transformer type.
|
|
/// </summary>
|
|
public TransformerType TransformerType { get; set; } = TransformerType.Handlebars;
|
|
} |