Skip to content

Commit

Permalink
found a bug between class and namespace generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelsh committed Jul 17, 2017
1 parent a0b38ff commit 8e83354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EpicorSwaggerRESTGenerator/Models/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static async Task<bool> generateCode(service services, EpicorDetails deta
var code = generator.GenerateFile();
code = code
//need to replace with my actual namespace
.Replace("MyNamespace", details.Namespace + "." + name)
.Replace("MyNamespace", details.Namespace + "." + service.href.Replace("-", ""))
//Had an error so added but I dont think this replacement is needed for all scenarios, maybe add flag in details later
.Replace("var client_ = await CreateHttpClientAsync(cancellationToken).ConfigureAwait(false);", "var client_ = CreateHttpClientAsync(cancellationToken);")
//no need
Expand Down

0 comments on commit 8e83354

Please sign in to comment.