OpenApiPrimitive<T> Class

Definition

Open API primitive class.

public abstract class OpenApiPrimitive<T> : Microsoft.OpenApi.Any.IOpenApiPrimitive
type OpenApiPrimitive<'T> = class
    interface IOpenApiPrimitive
    interface IOpenApiAny
    interface IOpenApiElement
    interface IOpenApiExtension
Public MustInherit Class OpenApiPrimitive(Of T)
Implements IOpenApiPrimitive

Type Parameters

T
Inheritance
OpenApiPrimitive<T>
Derived
Implements

Constructors

OpenApiPrimitive<T>(OpenApiPrimitive<T>)

Initializes a copy of an IOpenApiPrimitive object

OpenApiPrimitive<T>(T)

Initializes the IOpenApiPrimitive class with the given value.

Properties

AnyType

The kind of IOpenApiAny.

PrimitiveType

The primitive class this object represents.

Value

Value of this IOpenApiPrimitive

Methods

Write(IOpenApiWriter, OpenApiSpecVersion)

Write out content of primitive element

Extension Methods

Validate(IOpenApiElement, ValidationRuleSet)

Validate element and all child elements

Applies to