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

Commitbf8d0b6

Browse files
authored
Merge pull request#2433 from microsoft/fix/extraneous-default
fix: removes extraneous default value constant
2 parentsa0d1845 +b6eb46e commitbf8d0b6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

‎src/Microsoft.OpenApi/Models/OpenApiOperation.cs‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ namespace Microsoft.OpenApi
1212
/// </summary>
1313
publicclassOpenApiOperation:IOpenApiSerializable,IOpenApiExtensible,IMetadataContainer
1414
{
15-
/// <summary>
16-
/// Default value for <see cref="Deprecated"/>.
17-
/// </summary>
18-
publicconstboolDeprecatedDefault=false;
19-
2015
privateISet<OpenApiTagReference>?_tags;
2116
/// <summary>
2217
/// A list of tags for API documentation control.
@@ -97,7 +92,7 @@ public ISet<OpenApiTagReference>? Tags
9792
/// <summary>
9893
/// Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation.
9994
/// </summary>
100-
publicboolDeprecated{get;set;}=DeprecatedDefault;
95+
publicboolDeprecated{get;set;}
10196

10297
/// <summary>
10398
/// A declaration of which security mechanisms can be used for this operation.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,6 @@ namespace Microsoft.OpenApi
925925
}
926926
public class OpenApiOperation : Microsoft.OpenApi.IMetadataContainer, Microsoft.OpenApi.IOpenApiElement, Microsoft.OpenApi.IOpenApiExtensible, Microsoft.OpenApi.IOpenApiSerializable
927927
{
928-
public const bool DeprecatedDefault = false;
929928
public OpenApiOperation() { }
930929
public OpenApiOperation(Microsoft.OpenApi.OpenApiOperation operation) { }
931930
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.IOpenApiCallback>? Callbacks { get; set; }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp