Share via


OpenApiSerializableExtensions Class

Definition

Extension methods for IOpenApiSerializable serialization.

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

Methods

Name Description
SerializeAsJsonAsync<T>(T, OpenApiSpecVersion, CancellationToken)

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

SerializeAsJsonAsync<T>(T, Stream, OpenApiSpecVersion, CancellationToken)

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

SerializeAsYamlAsync<T>(T, OpenApiSpecVersion, CancellationToken)

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

SerializeAsYamlAsync<T>(T, Stream, OpenApiSpecVersion, CancellationToken)

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

SerializeAsync<T>(T, IOpenApiWriter, OpenApiSpecVersion, CancellationToken)

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

SerializeAsync<T>(T, OpenApiSpecVersion, String, CancellationToken)

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

SerializeAsync<T>(T, Stream, OpenApiSpecVersion, String, CancellationToken)

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

SerializeAsync<T>(T, Stream, OpenApiSpecVersion, String, OpenApiWriterSettings, CancellationToken)

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

Applies to