Table of Contents

Class DocumentFilter

Namespace
Codebelt.Extensions.Swashbuckle.AspNetCore
Assembly
Codebelt.Extensions.Swashbuckle.AspNetCore.dll

Represents the base class of an IDocumentFilter implementation.

public abstract class DocumentFilter : IDocumentFilter
Inheritance
DocumentFilter
Implements
Derived

Remarks

Constructors

DocumentFilter()

Initializes a new instance of the DocumentFilter class.

protected DocumentFilter()

Methods

Apply(OpenApiDocument, DocumentFilterContext)

Applies post-processing to the swaggerDoc.

public abstract void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)

Parameters

swaggerDoc OpenApiDocument

The OpenApiDocument to modify.

context DocumentFilterContext

The DocumentFilterContext that provides additional context.

Remarks

Once an OpenApiDocument has been generated you have full control to modify the document however you see fit.

See Also