Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcb9772f

Browse files
authored
Merge pull request#2437 from microsoft/fix/inconsistent-visibility
fix: inconsistent visibility of properties in current keys class
2 parentsbf8d0b6 +d0c20ab commitcb9772f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

‎src/Microsoft.OpenApi/Services/OpenApiWalker.cs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,32 +1279,32 @@ public class CurrentKeys
12791279
/// <summary>
12801280
/// Current Path key
12811281
/// </summary>
1282-
publicstring?Path{get;set;}
1282+
publicstring?Path{get;internalset;}
12831283

12841284
/// <summary>
12851285
/// Current Operation Type
12861286
/// </summary>
1287-
publicHttpMethod?Operation{get;set;}
1287+
publicHttpMethod?Operation{get;internalset;}
12881288

12891289
/// <summary>
12901290
/// Current Response Status Code
12911291
/// </summary>
1292-
publicstring?Response{get;set;}
1292+
publicstring?Response{get;internalset;}
12931293

12941294
/// <summary>
12951295
/// Current Content Media Type
12961296
/// </summary>
1297-
publicstring?Content{get;set;}
1297+
publicstring?Content{get;internalset;}
12981298

12991299
/// <summary>
13001300
/// Current Callback Key
13011301
/// </summary>
1302-
publicstring?Callback{get;set;}
1302+
publicstring?Callback{get;internalset;}
13031303

13041304
/// <summary>
13051305
/// Current Link Key
13061306
/// </summary>
1307-
publicstring?Link{get;set;}
1307+
publicstring?Link{get;internalset;}
13081308

13091309
/// <summary>
13101310
/// Current Header Key

‎test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ namespace Microsoft.OpenApi
6060
public class CurrentKeys
6161
{
6262
public CurrentKeys() { }
63-
public string? Callback { get;set;}
64-
public string? Content { get;set;}
63+
public string? Callback { get; }
64+
public string? Content { get; }
6565
public string? Encoding { get; }
6666
public string? Example { get; }
6767
public string? Extension { get; }
6868
public string? Header { get; }
69-
public string? Link { get;set;}
70-
public System.Net.Http.HttpMethod? Operation { get;set;}
71-
public string? Path { get;set;}
72-
public string? Response { get;set;}
69+
public string? Link { get; }
70+
public System.Net.Http.HttpMethod? Operation { get; }
71+
public string? Path { get; }
72+
public string? Response { get; }
7373
public string? ServerVariable { get; }
7474
}
7575
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp