@@ -25,11 +25,11 @@ public static void ProcessOpenApiDocument(
25
25
FileInfo output ,
26
26
OpenApiSpecVersion ? version ,
27
27
OpenApiFormat ? format ,
28
- string filterByOperationIds ,
29
- string filterByTags ,
30
- string filterByCollection ,
28
+ string filterbyoperationids ,
29
+ string filterbytags ,
30
+ string filterbycollection ,
31
31
bool inline ,
32
- bool resolveExternal )
32
+ bool resolveexternal )
33
33
{
34
34
if ( string . IsNullOrEmpty ( openapi ) )
35
35
{
@@ -47,7 +47,7 @@ public static void ProcessOpenApiDocument(
47
47
var stream = GetStream ( openapi ) ;
48
48
var result = new OpenApiStreamReader ( new OpenApiReaderSettings
49
49
{
50
- ReferenceResolution = resolveExternal ? ReferenceResolutionSetting . ResolveAllReferences : ReferenceResolutionSetting . ResolveLocalReferences ,
50
+ ReferenceResolution = resolveexternal ? ReferenceResolutionSetting . ResolveAllReferences : ReferenceResolutionSetting . ResolveLocalReferences ,
51
51
RuleSet = ValidationRuleSet . GetDefaultRuleSet ( )
52
52
}
53
53
) . ReadAsync ( stream ) . GetAwaiter ( ) . GetResult ( ) ;
@@ -56,24 +56,24 @@ public static void ProcessOpenApiDocument(
56
56
Func < string , OperationType ? , OpenApiOperation , bool > predicate ;
57
57
58
58
// Check if filter options are provided, then execute
59
- if ( ! string . IsNullOrEmpty ( filterByOperationIds ) && ! string . IsNullOrEmpty ( filterByTags ) )
59
+ if ( ! string . IsNullOrEmpty ( filterbyoperationids ) && ! string . IsNullOrEmpty ( filterbytags ) )
60
60
{
61
61
throw new InvalidOperationException ( "Cannot filter by operationIds and tags at the same time." ) ;
62
62
}
63
- if ( ! string . IsNullOrEmpty ( filterByOperationIds ) )
63
+ if ( ! string . IsNullOrEmpty ( filterbyoperationids ) )
64
64
{
65
- predicate = OpenApiFilterService . CreatePredicate ( operationIds : filterByOperationIds ) ;
65
+ predicate = OpenApiFilterService . CreatePredicate ( operationIds : filterbyoperationids ) ;
66
66
document = OpenApiFilterService . CreateFilteredDocument ( document , predicate ) ;
67
67
}
68
- if ( ! string . IsNullOrEmpty ( filterByTags ) )
68
+ if ( ! string . IsNullOrEmpty ( filterbytags ) )
69
69
{
70
- predicate = OpenApiFilterService . CreatePredicate ( tags : filterByTags ) ;
70
+ predicate = OpenApiFilterService . CreatePredicate ( tags : filterbytags ) ;
71
71
document = OpenApiFilterService . CreateFilteredDocument ( document , predicate ) ;
72
72
}
73
73
74
- if ( ! string . IsNullOrEmpty ( filterByCollection ) )
74
+ if ( ! string . IsNullOrEmpty ( filterbycollection ) )
75
75
{
76
- var fileStream = GetStream ( filterByCollection ) ;
76
+ var fileStream = GetStream ( filterbycollection ) ;
77
77
var requestUrls = ParseJsonCollectionFile ( fileStream ) ;
78
78
predicate = OpenApiFilterService . CreatePredicate ( requestUrls : requestUrls , source : document ) ;
79
79
document = OpenApiFilterService . CreateFilteredDocument ( document , predicate ) ;
0 commit comments