OpenApiFilterService.CreatePredicate Method

Definition

Create predicate function based on passed query parameters

public static Func<string,Microsoft.OpenApi.Models.OperationType?,Microsoft.OpenApi.Models.OpenApiOperation,bool> CreatePredicate (string operationIds = default, string tags = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> requestUrls = default, Microsoft.OpenApi.Models.OpenApiDocument source = default);
static member CreatePredicate : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * Microsoft.OpenApi.Models.OpenApiDocument -> Func<string, Nullable<Microsoft.OpenApi.Models.OperationType>, Microsoft.OpenApi.Models.OpenApiOperation, bool>
Public Shared Function CreatePredicate (Optional operationIds As String = Nothing, Optional tags As String = Nothing, Optional requestUrls As Dictionary(Of String, List(Of String)) = Nothing, Optional source As OpenApiDocument = Nothing) As Func(Of String, Nullable(Of OperationType), OpenApiOperation, Boolean)

Parameters

operationIds
String

Comma delimited list of operationIds or * for all operations.

tags
String

Comma delimited list of tags or a single regex.

requestUrls
Dictionary<String,List<String>>

A dictionary of requests from a postman collection.

source
OpenApiDocument

The input OpenAPI document.

Returns

A predicate.

Applies to