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 ApiDocument { [JsonPropertyName("info")] public ApiInfo Info { get; set; } = new(); [JsonPropertyName("servers")] public List Servers { get; set; } = new(); [JsonPropertyName("groups")] public List Groups { get; set; } = new(); [JsonPropertyName("schemas")] public Dictionary Schemas { get; set; } = new(); /// All security schemes available for this API (keyed by scheme id). [JsonPropertyName("securitySchemes")] public Dictionary SecuritySchemes { get; set; } = new(); /// Which optional DoxaApi server-side features are enabled, for UI feature detection. [JsonPropertyName("features")] public ApiFeatureFlags Features { get; set; } = new(); } }