Skip to content

Commit 29d207c

Browse files
committed
Capitalize postman and add necessary usings
1 parent df40781 commit 29d207c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Microsoft.OpenApi/Services/OpenApiFilterService.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System;
55
using System.Collections.Generic;
6-
using System.IO;
76
using System.Linq;
8-
using System.Text.Json;
97
using System.Text.RegularExpressions;
108
using Microsoft.OpenApi.Models;
119

@@ -31,7 +29,7 @@ public static class OpenApiFilterService
3129

3230
if (requestUrls != null && (operationIds != null || tags != null))
3331
{
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.");
3533
}
3634
if (!string.IsNullOrEmpty(operationIds) && !string.IsNullOrEmpty(tags))
3735
{
@@ -74,7 +72,7 @@ public static class OpenApiFilterService
7472
var sources = new Dictionary<string, OpenApiDocument> {{ apiVersion, source}};
7573
var rootNode = CreateOpenApiUrlTreeNode(sources);
7674

77-
//Iterate through urls dictionary and fetch operations for each url
75+
// Iterate through urls dictionary and fetch operations for each url
7876
foreach (var path in requestUrls)
7977
{
8078
var serverList = source.Servers;
@@ -104,7 +102,7 @@ public static class OpenApiFilterService
104102

105103
else
106104
{
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.");
108106
}
109107

110108
return predicate;

0 commit comments

Comments
 (0)