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
OpenApiDocumentThe OpenAPI document that should be serialized.
writer
IOpenApiWriterThe writer to which the document needs to be written.
specVersion
OpenApiSpecVersionThe OpenAPI specification version to serialize as.