Skip to content

Commit 1ed0d36

Browse files
committed
Removed v1 dynamic end points (were not apart of v1)
1 parent 16be4fa commit 1ed0d36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Exceptionless.Api/Extensions/SwaggerExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ private class SetVersionInPaths : IDocumentFilter {
3838
public void Apply(SwaggerDocument doc, DocumentFilterContext context) {
3939
foreach (var item in doc.Paths.Where(kvp => kvp.Key.Contains("{apiVersion}")).ToArray()) {
4040
doc.Paths.Remove(item.Key);
41+
if (doc.Info.Version == "v1")
42+
continue;
4143

4244
var key = item.Key.Replace("v{apiVersion}", doc.Info.Version);
4345
var toAdd = item.Value;

0 commit comments

Comments
 (0)