Fix 718 url not relative to baseuri (#724)

* trim starting / for api path

* regenerate with api path
This commit is contained in:
Boshi Lian
2021-10-11 12:53:02 -07:00
committed by GitHub
parent 6d90ddb722
commit 78387dc44f
2 changed files with 739 additions and 734 deletions

View File

@@ -170,6 +170,11 @@ namespace KubernetesWatchGenerator
return o;
})
.Select(o =>
{
o.Path = o.Path.TrimStart('/');
return o;
})
.ToArray();
Render.FileToFile("IKubernetes.cs.template", data, Path.Combine(outputDirectory, "IKubernetes.cs"));