OpenApiFilterService.CreateFilteredDocument Method

Definition

Create partial OpenAPI document based on the provided predicate.

public static Microsoft.OpenApi.Models.OpenApiDocument CreateFilteredDocument (Microsoft.OpenApi.Models.OpenApiDocument source, Func<string,Microsoft.OpenApi.Models.OperationType?,Microsoft.OpenApi.Models.OpenApiOperation,bool> predicate);
static member CreateFilteredDocument : Microsoft.OpenApi.Models.OpenApiDocument * Func<string, Nullable<Microsoft.OpenApi.Models.OperationType>, Microsoft.OpenApi.Models.OpenApiOperation, bool> -> Microsoft.OpenApi.Models.OpenApiDocument
Public Shared Function CreateFilteredDocument (source As OpenApiDocument, predicate As Func(Of String, Nullable(Of OperationType), OpenApiOperation, Boolean)) As OpenApiDocument

Parameters

source
OpenApiDocument

The target OpenApiDocument.

predicate
Func<String,Nullable<OperationType>,OpenApiOperation,Boolean>

A predicate function.

Returns

A partial OpenAPI document.

Applies to