We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16be4fa commit 1ed0d36Copy full SHA for 1ed0d36
src/Exceptionless.Api/Extensions/SwaggerExtensions.cs
@@ -38,6 +38,8 @@ private class SetVersionInPaths : IDocumentFilter {
38
public void Apply(SwaggerDocument doc, DocumentFilterContext context) {
39
foreach (var item in doc.Paths.Where(kvp => kvp.Key.Contains("{apiVersion}")).ToArray()) {
40
doc.Paths.Remove(item.Key);
41
+ if (doc.Info.Version == "v1")
42
+ continue;
43
44
var key = item.Key.Replace("v{apiVersion}", doc.Info.Version);
45
var toAdd = item.Value;
0 commit comments