-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: Allow to exclude operations when importing and OpenAPI swagger (#…
…3452) ### Motivation and Context When importing OpenAPI plugins, there can be operations not supported by SK, triggering an exception. For instance, SK currently supports only "application/json" and "text/plain" media types, and `kernel.ImportOpenApiPluginFunctionsAsync` throws an exception when encountering an operation that uses "multipart/form-data" (`SKException($"Neither of the media types of {operationId} is supported.")`). ### Description Add new option to `OpenApiFunctionExecutionParameters` allowing to exclude some operations, e.g. those that would otherwise cause an exception.
- Loading branch information
Showing
4 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters