Skip to content

Commit e38525c

Browse files
authored
Squashed commit of the following: (#492)
commit dc93612 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:24:33 2020 -0700 fix SA1505 commit dc9fdbc Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:24:02 2020 -0700 add () commit 16fb735 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:21:37 2020 -0700 disable SA1117 commit 544a7e5 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:21:16 2020 -0700 fix SA1508 commit 4e998ad Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:08:28 2020 -0700 allow sa1623 commit baf7872 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:07:23 2020 -0700 fix SA1413 commit 5ef2ca6 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 16:05:45 2020 -0700 fix SA1413 commit 6cb71f0 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:44:55 2020 -0700 fix throw stack commit e6ada0b Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:44:35 2020 -0700 allow CA2225 commit 2e79ede Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:35:50 2020 -0700 allow SA1507 commit 108f5a6 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:35:31 2020 -0700 force SA1413 commit 20f33b6 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:30:58 2020 -0700 force SA1413 commit 6b0de10 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:28:33 2020 -0700 fix encoding commit 4bd8892 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:26:00 2020 -0700 fix xunit order commit e28556b Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:10:20 2020 -0700 fix spacing SA1012 SA1004 commit e8cf4b1 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:04:44 2020 -0700 fix SA1211 commit b416444 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 06:02:34 2020 -0700 fix attribute related warning commit 2f17ef4 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 05:56:53 2020 -0700 allow ca1801 ca1052 ca1054 commit 49b857f Author: Boshi Lian <[email protected]> Date: Fri Oct 9 05:50:07 2020 -0700 fix SA1001 commit 3389662 Author: Boshi LIAN <[email protected]> Date: Fri Oct 9 06:24:32 2020 -0700 fix dotnet format commit f9d55fc Merge: 8e81532 0d68823 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 05:44:30 2020 -0700 Merge branch 'master' into style_fix0 commit 8e81532 Author: Boshi Lian <[email protected]> Date: Fri Oct 9 05:33:02 2020 -0700 fix remaing build err commit ecf0152 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 05:24:00 2020 -0700 fix SA1707 commit 462d947 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 05:19:38 2020 -0700 fix underscore naming commit 5271b11 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 05:19:12 2020 -0700 allow CA1822 commit 602713c Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:37:16 2020 -0700 fix CA1822 commit bd4fee4 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:36:36 2020 -0700 fix CA1822 commit 257d461 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:34:25 2020 -0700 introduce dispose pattern commit 1d668c7 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:23:09 2020 -0700 allow CA2008 commit e4fa6ac Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:20:28 2020 -0700 allow CA1827 commit dd931d9 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:14:35 2020 -0700 allow SA1314 CA1825 commit 13b6cf1 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:13:51 2020 -0700 Revert "fix CA1825" This reverts commit 17e03bc. commit 3686641 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:09:52 2020 -0700 move class to single files commit 0015631 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:09:27 2020 -0700 disable CA2000 / TODO commit 0a1241e Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:07:23 2020 -0700 allow SA1715 commit 17e03bc Author: Boshi Lian <[email protected]> Date: Wed Oct 7 04:06:57 2020 -0700 fix CA1825 commit 7baf350 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:42:04 2020 -0700 fix SA1312 SA1306 commit 44ad593 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:30:35 2020 -0700 fix CA2007 commit 325fa2c Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:25:11 2020 -0700 fix SA1131 commit 8f1f46b Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:17:08 2020 -0700 allow SA1119 commit 57c0fe7 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:14:14 2020 -0700 fix SA1400 commit 0afcbbc Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:12:18 2020 -0700 fix SA1513 commit 45f2424 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 03:09:17 2020 -0700 allow ca1720 ca1716 sa1405 commit 3403814 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:16:37 2020 -0700 fix model oper not contains generated header commit 11377d9 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:14:05 2020 -0700 fix SA1649 commit 92b0005 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:11:16 2020 -0700 fix SA1124 commit 901a9dd Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:09:27 2020 -0700 save 1122 commit a8f17b6 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:09:07 2020 -0700 1507 followup commit a143184 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:07:38 2020 -0700 fix sa1507 commit 54b5602 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:06:44 2020 -0700 fix sa1513 commit 53a0092 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:05:36 2020 -0700 fix SA1649 commit 26d3e78 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 02:01:01 2020 -0700 fix ca1816 commit 1ce5a04 Author: Boshi Lian <[email protected]> Date: Wed Oct 7 01:56:43 2020 -0700 readable ruleset commit dafc55f Author: Boshi Lian <[email protected]> Date: Wed May 27 19:13:56 2020 -0700 sync none from guideline
1 parent 0d68823 commit e38525c

File tree

65 files changed

+1351
-618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1351
-618
lines changed

examples/attach/Attach.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ private static async Task Main(string[] args)
1818

1919
var list = client.ListNamespacedPod("default");
2020
var pod = list.Items[0];
21-
await AttachToPod(client, pod);
21+
await AttachToPod(client, pod).ConfigureAwait(false);
2222
}
2323

2424
private async static Task AttachToPod(IKubernetes client, V1Pod pod)
2525
{
2626
var webSocket =
2727
await client.WebSocketNamespacedPodAttachAsync(pod.Metadata.Name, "default",
28-
pod.Spec.Containers[0].Name);
28+
pod.Spec.Containers[0].Name).ConfigureAwait(false);
2929

3030
var demux = new StreamDemuxer(webSocket);
3131
demux.Start();

examples/exec/Exec.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ private static async Task Main(string[] args)
1515

1616
var list = client.ListNamespacedPod("default");
1717
var pod = list.Items[0];
18-
await ExecInPod(client, pod);
18+
await ExecInPod(client, pod).ConfigureAwait(false);
1919
}
2020

2121
private async static Task ExecInPod(IKubernetes client, V1Pod pod)
2222
{
2323
var webSocket =
2424
await client.WebSocketNamespacedPodExecAsync(pod.Metadata.Name, "default", "ls",
25-
pod.Spec.Containers[0].Name);
25+
pod.Spec.Containers[0].Name).ConfigureAwait(false);
2626

2727
var demux = new StreamDemuxer(webSocket);
2828
demux.Start();

examples/httpClientFactory/PodListHostedService.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace httpClientFactory
99
{
1010
// Learn more about IHostedServices at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.2&tabs=visual-studio
11-
internal class PodListHostedService : IHostedService
11+
public class PodListHostedService : IHostedService
1212
{
1313
private readonly IKubernetes _kubernetesClient;
1414
private readonly ILogger<PodListHostedService> _logger;
@@ -23,7 +23,7 @@ public async Task StartAsync(CancellationToken cancellationToken)
2323
{
2424
_logger.LogInformation("Starting Request!");
2525

26-
var list = await _kubernetesClient.ListNamespacedPodAsync("default", cancellationToken: cancellationToken);
26+
var list = await _kubernetesClient.ListNamespacedPodAsync("default", cancellationToken: cancellationToken).ConfigureAwait(false);
2727
foreach (var item in list.Items)
2828
{
2929
_logger.LogInformation(item.Metadata.Name);

examples/logs/Logs.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private static async Task Main(string[] args)
2323
var pod = list.Items[0];
2424

2525
var response = await client.ReadNamespacedPodLogWithHttpMessagesAsync(pod.Metadata.Name,
26-
pod.Metadata.NamespaceProperty, follow: true);
26+
pod.Metadata.NamespaceProperty, follow: true).ConfigureAwait(false);
2727
var stream = response.Body;
2828
stream.CopyTo(Console.OpenStandardOutput());
2929
}

examples/metrics/Metrics.cs renamed to examples/metrics/Program.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
namespace metrics
77
{
8-
class Program
8+
internal class Program
99
{
10-
static async Task NodesMetrics(IKubernetes client)
10+
private static async Task NodesMetrics(IKubernetes client)
1111
{
1212
var nodesMetrics = await client.GetKubernetesNodesMetricsAsync().ConfigureAwait(false);
1313

@@ -22,7 +22,7 @@ static async Task NodesMetrics(IKubernetes client)
2222
}
2323
}
2424

25-
static async Task PodsMetrics(IKubernetes client)
25+
private static async Task PodsMetrics(IKubernetes client)
2626
{
2727
var podsMetrics = await client.GetKubernetesPodsMetricsAsync().ConfigureAwait(false);
2828

@@ -42,11 +42,12 @@ static async Task PodsMetrics(IKubernetes client)
4242
Console.WriteLine($"{metric.Key}: {metric.Value}");
4343
}
4444
}
45+
4546
Console.Write(Environment.NewLine);
4647
}
4748
}
4849

49-
static async Task Main(string[] args)
50+
private static async Task Main(string[] args)
5051
{
5152
var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
5253
var client = new Kubernetes(config);

examples/namespace/Namespace.cs renamed to examples/namespace/NamespaceExample.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
namespace @namespace
88
{
9-
class NamespaceExample
9+
internal class NamespaceExample
1010
{
11-
static void ListNamespaces(IKubernetes client)
11+
private static void ListNamespaces(IKubernetes client)
1212
{
1313
var list = client.ListNamespace();
1414
foreach (var item in list.Items)
@@ -22,14 +22,14 @@ static void ListNamespaces(IKubernetes client)
2222
}
2323
}
2424

25-
static async Task DeleteAsync(IKubernetes client, string name, int delayMillis)
25+
private static async Task DeleteAsync(IKubernetes client, string name, int delayMillis)
2626
{
2727
while (true)
2828
{
29-
await Task.Delay(delayMillis);
29+
await Task.Delay(delayMillis).ConfigureAwait(false);
3030
try
3131
{
32-
await client.ReadNamespaceAsync(name);
32+
await client.ReadNamespaceAsync(name).ConfigureAwait(false);
3333
}
3434
catch (AggregateException ex)
3535
{
@@ -43,7 +43,7 @@ static async Task DeleteAsync(IKubernetes client, string name, int delayMillis)
4343
return;
4444
}
4545

46-
throw ex;
46+
throw;
4747
}
4848
}
4949
}
@@ -54,12 +54,12 @@ static async Task DeleteAsync(IKubernetes client, string name, int delayMillis)
5454
return;
5555
}
5656

57-
throw ex;
57+
throw;
5858
}
5959
}
6060
}
6161

62-
static void Delete(IKubernetes client, string name, int delayMillis)
62+
private static void Delete(IKubernetes client, string name, int delayMillis)
6363
{
6464
DeleteAsync(client, name, delayMillis).Wait();
6565
}

gen/KubernetesWatchGenerator/KubernetesWatchGenerator.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>

gen/KubernetesWatchGenerator/ModelOperators.cs.template

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// <auto-generated>
2+
// Code generated by gen/KubernetesWatchGenerator
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
16
using k8s.Versioning;
27

38
namespace k8s.Models

gen/KubernetesWatchGenerator/Program.cs

+20-29
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
namespace KubernetesWatchGenerator
1313
{
14-
class Program
14+
internal class Program
1515
{
1616
private static HashSet<string> _classesWithValidation;
17-
static readonly Dictionary<string, string> ClassNameMap = new Dictionary<string, string>();
17+
private static readonly Dictionary<string, string> ClassNameMap = new Dictionary<string, string>();
1818
private static Dictionary<JsonSchema4, string> _schemaToNameMap;
1919
private static HashSet<string> _schemaDefinitionsInMultipleGroups;
2020
private static Dictionary<string, string> _classNameToPluralMap;
2121

22-
static async Task Main(string[] args)
22+
private static async Task Main(string[] args)
2323
{
2424
if (args.Length < 2)
2525
{
@@ -31,7 +31,7 @@ static async Task Main(string[] args)
3131

3232
// Read the spec trimmed
3333
// here we cache all name in gen project for later use
34-
var swagger = await SwaggerDocument.FromFileAsync(Path.Combine(args[1], "swagger.json"));
34+
var swagger = await SwaggerDocument.FromFileAsync(Path.Combine(args[1], "swagger.json")).ConfigureAwait(false);
3535
foreach (var (k, v) in swagger.Definitions)
3636
{
3737
if (v.ExtensionData?.TryGetValue("x-kubernetes-group-version-kind", out var _) == true)
@@ -46,9 +46,8 @@ static async Task Main(string[] args)
4646
}
4747
}
4848

49-
5049
// gen project removed all watch operations, so here we switch back to unprocessed version
51-
swagger = await SwaggerDocument.FromFileAsync(Path.Combine(args[1], "swagger.json.unprocessed"));
50+
swagger = await SwaggerDocument.FromFileAsync(Path.Combine(args[1], "swagger.json.unprocessed")).ConfigureAwait(false);
5251
_schemaToNameMap = swagger.Definitions.ToDictionary(x => x.Value, x => x.Key);
5352
_schemaDefinitionsInMultipleGroups = _schemaToNameMap.Values.Select(x =>
5453
{
@@ -90,7 +89,6 @@ static async Task Main(string[] args)
9089
.Union(_classNameToPluralMap)
9190
.ToDictionary(x => x.Key, x => x.Value);
9291

93-
9492
// Register helpers used in the templating.
9593
Helpers.Register(nameof(ToXmlDoc), ToXmlDoc);
9694
Helpers.Register(nameof(GetClassName), GetClassName);
@@ -166,12 +164,9 @@ static async Task Main(string[] args)
166164

167165
Render.FileToFile("VersionConverter.cs.template", versionConverterPairs, Path.Combine(outputDirectory, "VersionConverter.cs"));
168166
Render.FileToFile("ModelOperators.cs.template", typePairs, Path.Combine(outputDirectory, "ModelOperators.cs"));
169-
170167
}
171168

172-
173-
174-
static void ToXmlDoc(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
169+
private static void ToXmlDoc(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
175170
RenderBlock fn, RenderBlock inverse)
176171
{
177172
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is string)
@@ -199,7 +194,7 @@ static void ToXmlDoc(RenderContext context, IList<object> arguments, IDictionary
199194
}
200195
}
201196

202-
static void GetTuple(RenderContext context, IList<object> arguments, IDictionary<string, object> options, RenderBlock fn, RenderBlock inverse)
197+
private static void GetTuple(RenderContext context, IList<object> arguments, IDictionary<string, object> options, RenderBlock fn, RenderBlock inverse)
203198
{
204199
if (arguments != null && arguments.Count > 0 && arguments[0] is ITuple && options.TryGetValue("index", out var indexObj) && int.TryParse(indexObj?.ToString(), out var index))
205200
{
@@ -209,9 +204,7 @@ static void GetTuple(RenderContext context, IList<object> arguments, IDictionary
209204
}
210205
}
211206

212-
213-
214-
static void GetClassName(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
207+
private static void GetClassName(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
215208
RenderBlock fn, RenderBlock inverse)
216209
{
217210
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is SwaggerOperation)
@@ -224,7 +217,7 @@ static void GetClassName(RenderContext context, IList<object> arguments, IDictio
224217
}
225218
}
226219

227-
static string GetClassName(SwaggerOperation watchOperation)
220+
private static string GetClassName(SwaggerOperation watchOperation)
228221
{
229222
var groupVersionKind =
230223
(Dictionary<string, object>)watchOperation.ExtensionData["x-kubernetes-group-version-kind"];
@@ -257,7 +250,7 @@ private static void GetInterfaceName(RenderContext context, IList<object> argume
257250
}
258251
}
259252

260-
static string GetClassNameForSchemaDefinition(JsonSchema4 definition)
253+
private static string GetClassNameForSchemaDefinition(JsonSchema4 definition)
261254
{
262255
if (definition.ExtensionData != null &&
263256
definition.ExtensionData.ContainsKey("x-kubernetes-group-version-kind"))
@@ -280,7 +273,7 @@ static string GetClassNameForSchemaDefinition(JsonSchema4 definition)
280273
return className;
281274
}
282275

283-
static string GetInterfaceName(JsonSchema4 definition)
276+
private static string GetInterfaceName(JsonSchema4 definition)
284277
{
285278
var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"];
286279
var groupVersionKind = (Dictionary<string, object>)groupVersionKindElements[0];
@@ -321,8 +314,7 @@ static string GetInterfaceName(JsonSchema4 definition)
321314
return result;
322315
}
323316

324-
325-
static void GetKind(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
317+
private static void GetKind(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
326318
RenderBlock fn, RenderBlock inverse)
327319
{
328320
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema4)
@@ -339,7 +331,7 @@ private static string GetKind(JsonSchema4 definition)
339331
return groupVersionKind["kind"] as string;
340332
}
341333

342-
static void GetPlural(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
334+
private static void GetPlural(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
343335
RenderBlock fn, RenderBlock inverse)
344336
{
345337
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema4)
@@ -362,7 +354,7 @@ private static string GetPlural(JsonSchema4 definition)
362354
return _classNameToPluralMap.GetValueOrDefault(className, null);
363355
}
364356

365-
static void GetGroup(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
357+
private static void GetGroup(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
366358
RenderBlock fn, RenderBlock inverse)
367359
{
368360
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema4)
@@ -379,7 +371,7 @@ private static string GetGroup(JsonSchema4 definition)
379371
return groupVersionKind["group"] as string;
380372
}
381373

382-
static void GetMethodName(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
374+
private static void GetMethodName(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
383375
RenderBlock fn, RenderBlock inverse)
384376
{
385377
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is SwaggerOperation)
@@ -388,8 +380,7 @@ static void GetMethodName(RenderContext context, IList<object> arguments, IDicti
388380
}
389381
}
390382

391-
392-
static string GetMethodName(SwaggerOperation watchOperation)
383+
private static string GetMethodName(SwaggerOperation watchOperation)
393384
{
394385
var tag = watchOperation.Tags[0];
395386
tag = tag.Replace("_", string.Empty);
@@ -402,7 +393,7 @@ static string GetMethodName(SwaggerOperation watchOperation)
402393
return methodName;
403394
}
404395

405-
static void GetDotNetType(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
396+
private static void GetDotNetType(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
406397
RenderBlock fn, RenderBlock inverse)
407398
{
408399
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is SwaggerParameter)
@@ -463,7 +454,7 @@ private static string GetDotNetType(JsonObjectType jsonType, string name, bool r
463454
}
464455
}
465456

466-
static void GetDotNetName(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
457+
private static void GetDotNetName(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
467458
RenderBlock fn, RenderBlock inverse)
468459
{
469460
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is SwaggerParameter)
@@ -492,7 +483,7 @@ private static string GetDotNetName(string jsonName)
492483
return jsonName;
493484
}
494485

495-
static void GetPathExpression(RenderContext context, IList<object> arguments,
486+
private static void GetPathExpression(RenderContext context, IList<object> arguments,
496487
IDictionary<string, object> options, RenderBlock fn, RenderBlock inverse)
497488
{
498489
if (arguments != null && arguments.Count > 0 && arguments[0] != null &&
@@ -516,7 +507,7 @@ private static string GetPathExpression(SwaggerOperationDescription operation)
516507
return pathExpression;
517508
}
518509

519-
static void GetApiVersion(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
510+
private static void GetApiVersion(RenderContext context, IList<object> arguments, IDictionary<string, object> options,
520511
RenderBlock fn, RenderBlock inverse)
521512
{
522513
if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema4)

0 commit comments

Comments
 (0)