-
Notifications
You must be signed in to change notification settings - Fork 224
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 editing the workspace.json and clicking on re-generate, the API client/ API plugin should be regenerated successfully #4870
Comments
@maisarissi this is probably because the file was loaded in memory whenever you "opened" it, and never reloaded from storage after the modification and before the information was sent to the kiota engine. This should be considered in combination with #4853 and some preliminary work on UI/behaviour would be helpful to make sure everyone involved has the same understanding here. Lastly, I'm going to re-tag that as an enhancement since we never spec'd it out at the first place. |
Which "Re-generate" this is? The codelense (the one in the file) or the one in the API Explorer? I don't expect the API explorer one to work, while I expect the one from the file to work. |
@sebastienlevert The codelense as I'm doing manual changes! |
So while I understand this might have a "non-spec" element, I think it's part of the feature to fix it. I see this a a bug more than an enhancement. |
+1 to Sebastien's point. Also, I can add a new entry and hit re-generate, and Kiota will generate the new files for me, the issue though is that Kiota changes all types to be "APIPlugin" and do not accepted more than 1 type in each entry (what it should). I see as a bug as well. |
If you PMs want to nit pick... I'm going to ask for the spec for the code lens... 😈 |
Given the following
workspace.json
If I make a manual change to add another type to my GitHubReposOwner Plugin:
When I hit "Re-generate" in the codelense, I get the message that the plugin was re-generated successfully, but the API Manifest file is not generated and the
workspace.json
file is reloaded and theapimanifest
type is removed from my plugin type.I also cannot change the type to either OpenAI nor API Manifest. If I try to change the type, or even create a new entry manually with OpenAI or API Manifest types and re-generate, Kiota changes it to
APIPlugin
type and generates the plugin and sliced OpenAPI description.Expected:
All changes made manually and saved to the
workspace.json
file, should be used to re-generated the plugin and generate the right output files.The text was updated successfully, but these errors were encountered: