mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-16 16:36:46 +01:00
* . * Use ILRepack to include Microsoft.OpenApi as internal * ... * OpenApiSpecificationVersion * . * 080 * 4
62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
using Microsoft.OpenApi.Models.Interfaces;
|
|
|
|
namespace WireMock.Net.OpenApiParser.Settings;
|
|
|
|
/// <summary>
|
|
/// An 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; }
|
|
|
|
/// <summary>
|
|
/// An example value for an Integer.
|
|
/// </summary>
|
|
int Integer { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Float.
|
|
/// </summary>
|
|
float Float { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Decimal.
|
|
/// </summary>
|
|
decimal Decimal { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Date.
|
|
/// </summary>
|
|
Func<DateTime> Date { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for a DateTime.
|
|
/// </summary>
|
|
Func<DateTime> DateTime { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for Bytes.
|
|
/// </summary>
|
|
byte[] Bytes { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for a Object.
|
|
/// </summary>
|
|
object Object { get; }
|
|
|
|
/// <summary>
|
|
/// An example value for a String.
|
|
/// </summary>
|
|
string String { get; }
|
|
|
|
/// <summary>
|
|
/// OpenApi Schema to generate dynamic examples more accurate
|
|
/// </summary>
|
|
IOpenApiSchema? Schema { get; set; }
|
|
} |