26 lines
648 B
C#
26 lines
648 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace EonaCat.DoxaApi.Models
|
|
{
|
|
public sealed class ApiParameter
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; } = "";
|
|
|
|
[JsonPropertyName("in")]
|
|
public string In { get; set; } = "query";
|
|
|
|
[JsonPropertyName("required")]
|
|
public bool Required { get; set; }
|
|
|
|
[JsonPropertyName("description")]
|
|
public string? Description { get; set; }
|
|
|
|
[JsonPropertyName("schema")]
|
|
public SchemaModel Schema { get; set; } = new();
|
|
|
|
[JsonPropertyName("default")]
|
|
public object? Default { get; set; }
|
|
}
|
|
}
|