1
- // Copyright (c) Microsoft Corporation. All rights reserved.
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
4
using System ;
5
5
using System . Collections . Generic ;
6
- using System . IO ;
7
6
using System . Linq ;
8
- using System . Text . Json ;
9
7
using System . Text . RegularExpressions ;
10
8
using Microsoft . OpenApi . Models ;
11
9
@@ -31,7 +29,7 @@ public static class OpenApiFilterService
31
29
32
30
if ( requestUrls != null && ( operationIds != null || tags != null ) )
33
31
{
34
- throw new InvalidOperationException ( "Cannot filter by postman collection and either operationIds and tags at the same time." ) ;
32
+ throw new InvalidOperationException ( "Cannot filter by Postman collection and either operationIds and tags at the same time." ) ;
35
33
}
36
34
if ( ! string . IsNullOrEmpty ( operationIds ) && ! string . IsNullOrEmpty ( tags ) )
37
35
{
@@ -74,7 +72,7 @@ public static class OpenApiFilterService
74
72
var sources = new Dictionary < string , OpenApiDocument > { { apiVersion , source } } ;
75
73
var rootNode = CreateOpenApiUrlTreeNode ( sources ) ;
76
74
77
- //Iterate through urls dictionary and fetch operations for each url
75
+ // Iterate through urls dictionary and fetch operations for each url
78
76
foreach ( var path in requestUrls )
79
77
{
80
78
var serverList = source . Servers ;
@@ -104,7 +102,7 @@ public static class OpenApiFilterService
104
102
105
103
else
106
104
{
107
- throw new InvalidOperationException ( "Either operationId(s),tag(s) or postman collection need to be specified." ) ;
105
+ throw new InvalidOperationException ( "Either operationId(s),tag(s) or Postman collection need to be specified." ) ;
108
106
}
109
107
110
108
return predicate ;
0 commit comments