OpenApiFilterService.CreateFilteredDocument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.