Skip to content

Commit 45773e1

Browse files
Per Kopsperkops
authored andcommitted
fix(minimal): ensure global usings contains using for ApiGroupNames for handlers to be able to build
1 parent 1e06dd7 commit 45773e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Atc.Rest.ApiGenerator.Framework.Minimal/ProjectGenerator/ServerDomainGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ public void MaintainGlobalUsings(
261261
var apiGroupNames = openApiDocument.GetApiGroupNames();
262262

263263
requiredUsings.AddRange(apiGroupNames.Select(x => NamespaceFactory.Create(apiProjectName, NamespaceFactory.CreateWithApiGroupName(x, settings.ContractsNamespace))));
264+
requiredUsings.AddRange(apiGroupNames.Select(x => NamespaceFactory.Create(settings.ProjectName, NamespaceFactory.CreateWithApiGroupName(x, settings.HandlersNamespace))));
264265

265266
GlobalUsingsHelper.CreateOrUpdate(
266267
logger,

0 commit comments

Comments
 (0)