Files
EonaCat.DoxaApi/DoxaApi/Models/SchemaModel.cs
T

35 lines
989 B
C#

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