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,