File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Microsoft.OpenApi.Tool Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ public static void ProcessOpenApiDocument(
21
21
FileInfo output ,
22
22
OpenApiSpecVersion version ,
23
23
OpenApiFormat format ,
24
- string filterbyOperationId ,
24
+ string filterbyOperationIds ,
25
+ string filterByTags ,
25
26
bool inline ,
26
27
bool resolveExternal )
27
28
{
@@ -44,9 +45,9 @@ public static void ProcessOpenApiDocument(
44
45
document = result . OpenApiDocument ;
45
46
46
47
// Check if filter options are provided, then execute
47
- if ( ! string . IsNullOrEmpty ( filterbyOperationId ) )
48
+ if ( ! string . IsNullOrEmpty ( filterbyOperationIds ) || ! string . IsNullOrEmpty ( filterByTags ) )
48
49
{
49
- var predicate = OpenApiFilterService . CreatePredicate ( filterbyOperationId ) ;
50
+ var predicate = OpenApiFilterService . CreatePredicate ( filterbyOperationIds , filterByTags ) ;
50
51
document = OpenApiFilterService . CreateFilteredDocument ( document , predicate ) ;
51
52
}
52
53
You can’t perform that action at this time.
0 commit comments