@@ -65,11 +65,11 @@ public static class OpenApiFilterService
65
65
}
66
66
else if ( requestUrls != null )
67
67
{
68
- List < string > operationTypes = new List < string > ( ) ;
68
+ var operationTypes = new List < string > ( ) ;
69
69
70
- var graphVersion = source . Info . Version ;
70
+ var apiVersion = source . Info . Version ;
71
71
72
- var sources = new Dictionary < string , OpenApiDocument > { { graphVersion , source } } ;
72
+ var sources = new Dictionary < string , OpenApiDocument > { { apiVersion , source } } ;
73
73
var rootNode = CreateOpenApiUrlTreeNode ( sources ) ;
74
74
75
75
//Iterate through urls dictionary and fetch operations for each url
@@ -78,7 +78,7 @@ public static class OpenApiFilterService
78
78
var serverList = source . Servers ;
79
79
var url = FormatUrlString ( path . Key , serverList ) ;
80
80
81
- var openApiOperations = GetOpenApiOperations ( rootNode , url , graphVersion ) ;
81
+ var openApiOperations = GetOpenApiOperations ( rootNode , url , apiVersion ) ;
82
82
if ( openApiOperations == null )
83
83
{
84
84
continue ;
@@ -90,7 +90,7 @@ public static class OpenApiFilterService
90
90
}
91
91
}
92
92
93
- if ( ! ( bool ) operationTypes ? . Any ( ) )
93
+ if ( ! operationTypes . Any ( ) )
94
94
{
95
95
throw new ArgumentException ( "The urls in the postman collection supplied could not be found." ) ;
96
96
}
0 commit comments