Skip to content

Commit bf8d0b6

Browse files
authored
Merge pull request #2433 from microsoft/fix/extraneous-default
fix: removes extraneous default value constant
2 parents a0d1845 + b6eb46e commit bf8d0b6

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
public class OpenApiOperation : IOpenApiSerializable, IOpenApiExtensible, IMetadataContainer
1414
{
15-
/// <summary>
16-
/// Default value for <see cref="Deprecated"/>.
17-
/// </summary>
18-
public const bool DeprecatedDefault = false;
19-
2015
private ISet<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-
public bool Deprecated { get; set; } = DeprecatedDefault;
95+
public bool Deprecated { 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)