Skip to content

Commit 9270993

Browse files
committed
Way too many namespaces on URLs
1 parent 9e2ed2e commit 9270993

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

GoLive.Generator.ApiClientGenerator.Tests.WebApi/GeneratedURLs.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
// ReSharper disable All
2-
using System.Net.Http;
3-
using System;
4-
using System.Threading.Tasks;
5-
using System.Net.Http.Json;
6-
using System.Collections.Generic;
7-
using System.Threading;
8-
using System.Diagnostics.CodeAnalysis;
9-
using System.Text.Json.Serialization.Metadata;
10-
using Microsoft.Extensions.Primitives;
111
using Microsoft.AspNetCore.Http;
12-
using System.Text.Json.Serialization;
13-
using System.Net;
14-
using System.Net.Http.Headers;
15-
using GoLive.Generator.ApiClientGenerator;
2+
using System;
163

174
namespace GoLive.Generator.ApiClientGenerator.URLs;
185
public class GeneratedURLs

GoLive.Generator.ApiClientGenerator/ApiClientGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ public static void Execute(
198198
foreach (var urlGenerationSetting in config.URLGeneration)
199199
{
200200
StringBuilder tempBuilder = new();
201-
tempBuilder.Append(namespaceBuilder);
201+
tempBuilder.AppendLine("using Microsoft.AspNetCore.Http;");
202+
tempBuilder.AppendLine("using System;");
202203
tempBuilder.AppendLine($"namespace {urlGenerationSetting.Namespace};");
203204
tempBuilder.AppendLine($"public class {urlGenerationSetting.ClassName} {{");
204205
tempBuilder.Append(urlSourceBuilder);

0 commit comments

Comments
 (0)