Share via


OpenApiContact Class

Definition

Contact Object.

public class OpenApiContact : Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
type OpenApiContact = class
    interface IOpenApiSerializable
    interface IOpenApiElement
    interface IOpenApiExtensible
Public Class OpenApiContact
Implements IOpenApiExtensible, IOpenApiSerializable
Inheritance
OpenApiContact
Implements

Constructors

OpenApiContact()

Parameter-less constructor

OpenApiContact(OpenApiContact)

Initializes a copy of an OpenApiContact instance

Properties

Email

The email address of the contact person/organization. MUST be in the format of an email address.

Extensions

This object MAY be extended with Specification Extensions.

Name

The identifying name of the contact person/organization.

Url

The URL pointing to the contact information. MUST be in the format of a URL.

Methods

SerializeAsV2(IOpenApiWriter)

Serialize OpenApiContact to Open Api v2.0

SerializeAsV3(IOpenApiWriter)

Serialize OpenApiContact to Open Api v3.0

Extension Methods

Validate(IOpenApiElement, ValidationRuleSet)

Validate element and all child elements

Applies to