Table of Contents

Interface ISwaggerDocumentSerializer

Namespace
Swashbuckle.AspNetCore.Swagger
Assembly
Swashbuckle.AspNetCore.Swagger.dll

Provide an implementation for this interface if you wish to customize how the OpenAPI document is written.

public interface ISwaggerDocumentSerializer

Methods

SerializeDocument(OpenApiDocument, IOpenApiWriter, OpenApiSpecVersion)

Serializes an OpenAPI document.

void SerializeDocument(OpenApiDocument document, IOpenApiWriter writer, OpenApiSpecVersion specVersion)

Parameters

document OpenApiDocument

The OpenAPI document that should be serialized.

writer IOpenApiWriter

The writer to which the document needs to be written.

specVersion OpenApiSpecVersion

The OpenAPI specification version to serialize as.