Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/Microsoft.OpenApi/Models/OpenApiOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ namespace Microsoft.OpenApi
/// </summary>
public class OpenApiOperation : IOpenApiSerializable, IOpenApiExtensible, IMetadataContainer
{
/// <summary>
/// Default value for <see cref="Deprecated"/>.
/// </summary>
public const bool DeprecatedDefault = false;

private ISet<OpenApiTagReference>? _tags;
/// <summary>
/// A list of tags for API documentation control.
Expand Down Expand Up @@ -97,7 +92,7 @@ public ISet<OpenApiTagReference>? Tags
/// <summary>
/// Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation.
/// </summary>
public bool Deprecated { get; set; } = DeprecatedDefault;
public bool Deprecated { get; set; }

/// <summary>
/// A declaration of which security mechanisms can be used for this operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,6 @@ namespace Microsoft.OpenApi
}
public class OpenApiOperation : Microsoft.OpenApi.IMetadataContainer, Microsoft.OpenApi.IOpenApiElement, Microsoft.OpenApi.IOpenApiExtensible, Microsoft.OpenApi.IOpenApiSerializable
{
public const bool DeprecatedDefault = false;
public OpenApiOperation() { }
public OpenApiOperation(Microsoft.OpenApi.OpenApiOperation operation) { }
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.IOpenApiCallback>? Callbacks { get; set; }
Expand Down