32 lines
852 B
C#
32 lines
852 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace EonaCat.DoxaApi.Models
|
|
{
|
|
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; }
|
|
}
|
|
}
|