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

35 lines
1.0 KiB
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 SchemaModel
{
[JsonPropertyName("type")]
public string Type { get; set; } = "object";
[JsonPropertyName("format")]
public string? Format { get; set; }
[JsonPropertyName("refName")]
public string? RefName { get; set; }
[JsonPropertyName("items")]
public SchemaModel? Items { get; set; }
[JsonPropertyName("properties")]
public Dictionary<string, SchemaModel>? Properties { get; set; }
[JsonPropertyName("required")]
public List<string>? Required { get; set; }
[JsonPropertyName("enumValues")]
public List<string>? EnumValues { get; set; }
[JsonPropertyName("nullable")]
public bool Nullable { get; set; }
}
}