Skip to content

Commit 78387dc

Browse files
authored
Fix 718 url not relative to baseuri (#724)
* trim starting / for api path * regenerate with api path
1 parent 6d90ddb commit 78387dc

File tree

2 files changed

+739
-734
lines changed

2 files changed

+739
-734
lines changed

gen/KubernetesGenerator/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ private static async Task Main(string[] args)
170170

171171
return o;
172172
})
173+
.Select(o =>
174+
{
175+
o.Path = o.Path.TrimStart('/');
176+
return o;
177+
})
173178
.ToArray();
174179

175180
Render.FileToFile("IKubernetes.cs.template", data, Path.Combine(outputDirectory, "IKubernetes.cs"));

0 commit comments

Comments
 (0)