Skip to content

.Net: New Feature: Support filtering deprecated endpoints when using OpenAPI #12354

@frederikrosenberg

Description

@frederikrosenberg

name: Support filtering deprecated endpoints when using OpenAPI
about: Support filtering deprecated endpoints when using OpenAPI


When loading functions based on a OpenAPI specification it is not possible to filter out any endpoints which is deprecated due to the property not being exposed and not available in the Semantic Kernel representation of an OpenAPI operation.

The only workaround for this is to parse the OpenAPI specification, remove the deprecated endpoints and then serialize the specification again, and then parse it using Semantic Kernel, unless I have missed something.

Another question: is there any reason that the OperationSelectionPredicate does not expose all endpoint properties such as extensions? If any filtering on extensions is needed then the less efficient method of filtering is required.

public async Task FilterOperationsAtPostParsingStageAsync()

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codeopenapiIssues related to the OpenAPI function importer

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions