-
Notifications
You must be signed in to change notification settings - Fork 221
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
Kiota v1.16.0 generated "CS1587: XML comment is not placed on a valid language element" error #4957
Comments
Hi @HowardvanRooijen |
If you move the attribute below the comment /// <summary>
/// The CPU Template defines a set of flags to be disabled from the microvm so that the features exposed to the guest are the same as in the selected instance type. This parameter has been deprecated and it will be removed in future Firecracker release.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
public enum CpuTemplate
{ It compiles. This is how all /// <summary>
/// Balloon device descriptor.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
public partial class Balloon : IAdditionalDataHolder, IParsable
{ So I think it's something specific about how you're handling |
Thanks for confirming the issue here. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
Csharp
Describe the bug
I am trying to update our C# Firecracker Management client - update to the latest Kiota packages / regenerate the client using the latest .NET Global Tool
Tool 'microsoft.openapi.kiota' was successfully updated from version '1.14.0' to version '1.16.0'.
Ran the the tool to regenerate the client
And when I build the project, I get the following errors:
All the files above are
enums
:CpuTemplate.cs
included below:The issue seem to be with
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
Expected behavior
For the code to compile :D
How to reproduce
kiota generate -l CSharp -c FirecrackerManagementClient -n Firecracker.Management -d https://raw.githubusercontent.com/firecracker-microvm/firecracker/main/src/firecracker/swagger/firecracker.yaml -o "c:\temp\firecracker\client"
Open API description file
https://raw.githubusercontent.com/firecracker-microvm/firecracker/main/src/firecracker/swagger/firecracker.yaml
Kiota Version
1.16.0
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: