Share via


OpenApiSerializableExtensions Class

Definition

Extension methods for IOpenApiSerializable serialization.

public static class OpenApiSerializableExtensions
type OpenApiSerializableExtensions = class
Public Module OpenApiSerializableExtensions
Inheritance
OpenApiSerializableExtensions

Methods

Serialize<T>(T, IOpenApiWriter, OpenApiSpecVersion)

Serializes the IOpenApiSerializable to Open API document using the given specification version and writer.

Serialize<T>(T, OpenApiSpecVersion, OpenApiFormat)

Serializes the IOpenApiSerializable to the Open API document as a string in the given format.

Serialize<T>(T, Stream, OpenApiSpecVersion, OpenApiFormat, OpenApiWriterSettings)

Serializes the IOpenApiSerializable to the Open API document using the given stream, specification version and the format.

Serialize<T>(T, Stream, OpenApiSpecVersion, OpenApiFormat)

Serializes the IOpenApiSerializable to the Open API document using the given stream, specification version and the format.

SerializeAsJson<T>(T, OpenApiSpecVersion)

Serializes the IOpenApiSerializable to the Open API document as a string in JSON format.

SerializeAsJson<T>(T, Stream, OpenApiSpecVersion)

Serialize the IOpenApiSerializable to the Open API document (JSON) using the given stream and specification version.

SerializeAsYaml<T>(T, OpenApiSpecVersion)

Serializes the IOpenApiSerializable to the Open API document as a string in YAML format.

SerializeAsYaml<T>(T, Stream, OpenApiSpecVersion)

Serializes the IOpenApiSerializable to the Open API document (YAML) using the given stream and specification version.

Applies to