diff --git a/src/libs/AutoSDK/Sources/Data.cs b/src/libs/AutoSDK/Sources/Data.cs index c1d14ad821..afb27f7e42 100644 --- a/src/libs/AutoSDK/Sources/Data.cs +++ b/src/libs/AutoSDK/Sources/Data.cs @@ -217,7 +217,7 @@ .. includedTags.Select(tag => PropertyData.Default with { CSharpType = ClientNameGenerator.Generate(settings, tag), }, - Summary = tag.Description ?? string.Empty, + Summary = tag.Description?.ClearForXml() ?? string.Empty, }) ] : [], diff --git a/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs b/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs index 88c74adca9..ddec282139 100644 --- a/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs +++ b/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs @@ -5,8 +5,8 @@ namespace AutoSDK.IntegrationTests; [TestClass] public class CliTests { - //[DataTestMethod] - //[DataRow("github.yaml")] + // [DataTestMethod] + // [DataRow("github.yaml")] [DataRow("ipinfo.yaml")] [DataRow("langsmith.yaml")] [DataRow("ollama.yaml")] @@ -21,6 +21,7 @@ public class CliTests [DataRow("https://dedoose-rest-api.onrender.com/swagger/v1/swagger.json")] [DataRow("together.yaml")] [DataRow("mystic.yaml")] + [DataRow("heygen.yaml")] public async Task Generate(string spec) { var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); @@ -53,6 +54,7 @@ await File.WriteAllTextAsync(Path.Combine(tempDirectory, "Oag.csproj"), @"preview enable enable + true