mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-15 14:53:37 +01:00
60 lines
1.4 KiB
C#
60 lines
1.4 KiB
C#
using System;
|
|
using Microsoft.OpenApi.Models;
|
|
|
|
namespace WireMock.Net.OpenApiParser.Settings;
|
|
|
|
/// <summary>
|
|
/// A interface defining the example values to use for the different types.
|
|
/// </summary>
|
|
public interface IWireMockOpenApiParserExampleValues
|
|
{
|
|
/// <summary>
|
|
/// An example value for a Boolean.
|
|
/// </summary>
|
|
bool Boolean { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for an Integer.
|
|
/// </summary>
|
|
int Integer { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Float.
|
|
/// </summary>
|
|
float Float { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Double.
|
|
/// </summary>
|
|
double Double { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Date.
|
|
/// </summary>
|
|
Func<DateTime> Date { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for a DateTime.
|
|
/// </summary>
|
|
Func<DateTime> DateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for Bytes.
|
|
/// </summary>
|
|
byte[] Bytes { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Object.
|
|
/// </summary>
|
|
object Object { get; set; }
|
|
|
|
/// <summary>
|
|
/// An example value for a String.
|
|
/// </summary>
|
|
string String { get; set; }
|
|
|
|
/// <summary>
|
|
/// OpenApi Schema to generate dynamic examples more accurate
|
|
/// </summary>
|
|
OpenApiSchema? Schema { get; set; }
|
|
} |