Kiota plugin should not generate function for API with request body contains nested object #5287
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
What are you generating using Kiota, clients or plugins?
Kiota plugin
In what context or format are you using Kiota?
Windows executable
Client library/SDK language
None
Describe the bug
From API plugin schema document, Function parameters should not contains nested object: https://spec-hub.azurewebsites.net/specifications/PluginManifest-2.1.html#type-0
So when generate API plugin file, Kiota should remove these APIs.
Example yaml file that contains nested object in request body:
Expected behavior
Should not generate function in ai-plugin.json file if API contains nested object
How to reproduce
Open API description file
https://raw.githubusercontent.com/SLdragon/example-openapi-spec/main/request-body-contains-nested-obj.yaml
Kiota Version
1.18.24082901
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: