From 17ae36b4190353c2256bfd4d59ad2e37e4c03103 Mon Sep 17 00:00:00 2001 From: HavenDV Date: Sun, 19 May 2024 08:08:27 +0400 Subject: [PATCH] test: Fixed integration tests. --- .../OpenApiGenerator.Core/Generators/ClientGeneratorMethods.cs | 2 +- src/libs/OpenApiGenerator.Core/Models/EndPoint.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/OpenApiGenerator.Core/Generators/ClientGeneratorMethods.cs b/src/libs/OpenApiGenerator.Core/Generators/ClientGeneratorMethods.cs index a965fbae9e..258d835e80 100644 --- a/src/libs/OpenApiGenerator.Core/Generators/ClientGeneratorMethods.cs +++ b/src/libs/OpenApiGenerator.Core/Generators/ClientGeneratorMethods.cs @@ -34,7 +34,7 @@ public static ImmutableArray PrepareData( .Concat(settings.GenerateSdk || settings.GenerateConstructors ? [new EndPoint( Id: "Constructors", Namespace: settings.Namespace, - ClassName: settings.ClassName, + ClassName: settings.ClassName.Replace(".", string.Empty), BaseUrl: openApiDocument.Servers.FirstOrDefault()?.Url ?? string.Empty, Stream: false, Path: string.Empty, diff --git a/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs b/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs index 3546221a26..6e571d8241 100644 --- a/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs +++ b/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs @@ -55,7 +55,7 @@ public static EndPoint FromSchema( var endPoint = new EndPoint( Id: operation.Value.GetOperationIdOrCompute(path: path, operationType: operation.Key), Namespace: settings.Namespace, - ClassName: settings.ClassName, + ClassName: settings.ClassName.Replace(".", string.Empty), BaseUrl: string.Empty, Stream: response?.Content.Keys .Any(x => x.Contains("application/x-ndjson")) ?? false,