mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-21 00:50:24 +01:00
* Add Support Random Generation in Examples, this commit add the bool property DynamicExamples. * Comments applied * Remove '#pragma warning disable 1591'
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using WireMock.Net.OpenApiParser.Types;
|
|
|
|
namespace WireMock.Net.OpenApiParser.Settings
|
|
{
|
|
/// <summary>
|
|
/// The WireMockOpenApiParser Settings
|
|
/// </summary>
|
|
public class WireMockOpenApiParserSettings
|
|
{
|
|
/// <summary>
|
|
/// The number of array items to generate (default is 3).
|
|
/// </summary>
|
|
public int NumberOfArrayItems { get; set; } = 3;
|
|
|
|
/// <summary>
|
|
/// The example value type to use when generating a Path
|
|
/// </summary>
|
|
public ExampleValueType PathPatternToUse { get; set; } = ExampleValueType.Value;
|
|
|
|
/// <summary>
|
|
/// The example value type to use when generating a Header
|
|
/// </summary>
|
|
public ExampleValueType HeaderPatternToUse { get; set; } = ExampleValueType.Value;
|
|
|
|
/// <summary>
|
|
/// The example values to use
|
|
/// </summary>
|
|
public IWireMockOpenApiParserExampleValues ExampleValues { get; set; } = new WireMockOpenApiParserExampleValues();
|
|
|
|
/// <summary>
|
|
/// Are examples generated dynamically?
|
|
/// </summary>
|
|
public bool DynamicExamples { get; set; } = false;
|
|
}
|
|
} |