Skip to content

Commit

Permalink
fix: Fixed HeyGen xml doc issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Sep 11, 2024
1 parent 666b3a4 commit cdd293b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/AutoSDK/Sources/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
]
: [],
Expand Down
6 changes: 4 additions & 2 deletions src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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());
Expand Down Expand Up @@ -53,6 +54,7 @@ await File.WriteAllTextAsync(Path.Combine(tempDirectory, "Oag.csproj"), @"<Proje
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Label=""Analyzers"">
Expand Down

0 comments on commit cdd293b

Please sign in to comment.