OpenApiExtensibleDictionary<T> Class

Definition

Generic dictionary type for Open API dictionary element.

public abstract class OpenApiExtensibleDictionary<T> : System.Collections.Generic.Dictionary<string,T>, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable where T : IOpenApiSerializable
type OpenApiExtensibleDictionary<'T (requires 'T :> IOpenApiSerializable)> = class
    inherit Dictionary<string, 'T (requires 'T :> IOpenApiSerializable)>
    interface IOpenApiSerializable
    interface IOpenApiElement
    interface IOpenApiExtensible
Public MustInherit Class OpenApiExtensibleDictionary(Of T)
Inherits Dictionary(Of String, T)
Implements IOpenApiExtensible, IOpenApiSerializable

Type Parameters

T

The Open API element, IOpenApiElement

Inheritance
OpenApiExtensibleDictionary<T>
Derived
Implements

Constructors

OpenApiExtensibleDictionary<T>()

Parameterless constructor

OpenApiExtensibleDictionary<T>(Dictionary<String,T>, IDictionary<String,IOpenApiExtension>)

Initializes a copy of OpenApiExtensibleDictionary<T> class.

Properties

Extensions

This object MAY be extended with Specification Extensions.

Methods

SerializeAsV2(IOpenApiWriter)

Serialize to Open Api v2.0

SerializeAsV3(IOpenApiWriter)

Serialize to Open Api v3.0

Extension Methods

Validate(IOpenApiElement, ValidationRuleSet)

Validate element and all child elements

Applies to