Import from internal git

This commit is contained in:
2025-10-11 13:08:09 +02:00
commit 97aaa715dc
175 changed files with 7014 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using YamlDotNet.Serialization;
namespace Core.Dto.Yaml;
public class OpenApiYamlDto
{
[YamlMember(Alias = "openapi")]
public string? Openapi { get; set; }
[YamlMember(Alias = "info")]
public IDictionary<string, object>? Info { get; set; }
[YamlMember(Alias = "tags")]
public IList<object>? Tags { get; set; }
[YamlMember(Alias = "components")]
public IDictionary<string, IDictionary<string, object>>? Components { get; set; }
}

View File

@@ -0,0 +1,26 @@
using Newtonsoft.Json;
namespace Core.Dto.Yaml;
[JsonObject]
public class PackageConfigDto
{
[JsonProperty("name")]
public string Name { get; set; } = "";
[JsonProperty("type")]
public string Type { get; set; } = "";
[JsonProperty("dotnetPackage")]
public string DotnetPackage { get; set; } = "";
[JsonProperty("javascriptPackage")]
public string JavascriptPackage { get; set; } = "";
[JsonProperty("keepModels")]
public bool KeepModels { get; set; }
[JsonProperty("priority")]
public int Priority { get; set; }
}

View File

@@ -0,0 +1,19 @@
using Newtonsoft.Json;
namespace Core.Dto.Yaml;
public class SpecConfigDto
{
[JsonProperty("packageTypes")]
public Dictionary<string, List<string>> PackageTypes { get; set; } = [];
[JsonProperty("javaGroup")]
public string JavaGroup { get; set; } = "";
[JsonProperty("modelSuffix")]
public string ModelSuffix { get; set; } = "";
[JsonProperty("packages")]
public List<PackageConfigDto> Packages { get; set; } = [];
}