Files
EonaCat.DoxaApi/DoxaApi/Models/ApiParameter.cs
T
2026-06-21 20:10:02 +02:00

29 lines
835 B
C#

using System.Text.Json.Serialization;
namespace EonaCat.DoxaApi.Models
{
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
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; }
}
}