Skip to content

.Net: Support OpenAPI request body schemas represented by allOf, anyOf and 'oneOf' keywords #8997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SergeyMenshykh opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
Ignite Features planned for next Ignite conference .NET Issue or Pull requests regarding .NET code openapi Issues related to the OpenAPI function importer sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)

Comments

@SergeyMenshykh
Copy link
Member

Extend SK OpenAPI functionality to support the allOf, anyOf, and oneOf keywords when parsing operation request bodies.

In cases where the request body has more than one schema, it should be possible to select which one to use during OpenAPI plugin/function imports. Import filters can be used for that: #6890

@SergeyMenshykh SergeyMenshykh added .NET Issue or Pull requests regarding .NET code openapi Issues related to the OpenAPI function importer labels Sep 25, 2024
@github-actions github-actions bot changed the title Support OpenAPI request body schemas represented by allOf, anyOf and 'oneOf' keywords .Net: Support OpenAPI request body schemas represented by allOf, anyOf and 'oneOf' keywords Sep 25, 2024
@markwallace-microsoft markwallace-microsoft moved this to Backlog: Planned in Semantic Kernel Sep 26, 2024
@markwallace-microsoft markwallace-microsoft added the Ignite Features planned for next Ignite conference label Sep 26, 2024
@markwallace-microsoft markwallace-microsoft moved this from Backlog: Planned to Sprint: Planned in Semantic Kernel Oct 7, 2024
@evchaki evchaki added the sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community) label Oct 8, 2024
@SergeyMenshykh
Copy link
Member Author

SergeyMenshykh commented Nov 5, 2024

Agreed to add samples showing how the API caller can provide a static payload and how LLM can reason over operation schema having allOf, anyOf, oneOf and generate payload to all the operation.

@markwallace-microsoft markwallace-microsoft self-assigned this Nov 13, 2024
@markwallace-microsoft markwallace-microsoft moved this from Sprint: Done to Sprint: In Review in Semantic Kernel Nov 18, 2024
github-merge-queue bot pushed a commit that referenced this issue Nov 19, 2024
### Motivation and Context

Related to #8997 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ignite Features planned for next Ignite conference .NET Issue or Pull requests regarding .NET code openapi Issues related to the OpenAPI function importer sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Projects
Archived in project
Development

No branches or pull requests

3 participants