Share via


OpenApiDeprecationExtension Class

Definition

Extension element for OpenAPI to add deprecation information. x-ms-deprecation

public class OpenApiDeprecationExtension : Microsoft.OpenApi.IOpenApiExtension
type OpenApiDeprecationExtension = class
    interface IOpenApiExtension
Public Class OpenApiDeprecationExtension
Implements IOpenApiExtension
Inheritance
OpenApiDeprecationExtension
Implements

Constructors

Name Description
OpenApiDeprecationExtension()

Properties

Name Description
Date

The date at which the element has been/will be deprecated.

Description

The description of the revision.

Name

Name of the extension as used in the description.

RemovalDate

The date at which the element has been/will be removed entirely from the service.

Version

The version this revision was introduced.

Methods

Name Description
Parse(JsonNode)

Parses the JsonNodeExtension to OpenApiDeprecationExtension.

Write(IOpenApiWriter, OpenApiSpecVersion)

Write out contents of custom extension

Applies to