-
Notifications
You must be signed in to change notification settings - Fork 210
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
When creating a plugin for a OpenAPI description with no operationId, the plugin is created with no functions or runtime info #4642
Comments
@maisarissi what would you have as a placeholder? |
They are not required. At runtime, random GUIDs will be generated to ensure their unicity. |
so we don't need to change anything here? |
We need to generate the functions in the plugin for sure. If they are not generated, they are ignored and won't get called. |
ok so back to my previous question, I'm guessing we're using a guid as a placeholder. And I'm guessing the sliced description needs the same guid as operation id? |
Do we have better ways to generate operation Ids based on the path? I feel it would be a lot more dev friendly. |
Maybe we could generate an operationId combining the endpoint with the HTTP method? |
According to the validator, we would need the Another idea is that we can use the same logic Kiota uses for namespacing for a path and append the operation name at the end and separating them with underscores. Back to the question by @baywet, we probably need to answer,
|
That's a great proposal @andrueastman. I think this would be optimal! For the questions:
|
Agree with @sebastienlevert.
|
What are you generating using Kiota, clients or plugins?
Kiota plugin
In what context or format are you using Kiota?
Source Build
Client library/SDK language
None
Describe the bug
When trying to create a plugin form an OpenAPI description with no operationId, Kiota is able to generate the right sliced OpenAPI description:
However, the plugin manifest is created with no functions or runtime:
Expected behavior
The plugin manifest should have a functions and runtime objects even when the OpenAPI description has no operationId
How to reproduce
Use the OpenAPI description above to create a plugin
Open API description file
No response
Kiota Version
workspace feature
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: