-
Notifications
You must be signed in to change notification settings - Fork 219
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
OData WebAPI, RequestBuilderGetQueryParameters Count property type has typo #4832
Comments
Hi @pschmerling |
Hi @baywet
Now the generated description is validating successfully in spectral - thank you for this hint, too. |
Thanks for confirming @pschmerling We'll close this one for now as there's no action on our side. Feel free to re-open or create new issue in the event of anything else. |
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Windows executable
Client library/SDK language
Csharp
Describe the bug
I generate an SDK using kiota commandline on a .NET 8 WebAPI with OData. The resulting source code cannot be compiled because of typo in every class named RequestBuilder > RequestBuilderGetQueryParameters.
Integer or boolean properties have the type written in camel-case - which is not valid c#. For example Int instead of int, Bool instead of bool. String properties are ok.
swagger.json
Produces AdditionalMatterResponsiblesRequestBuilder.cs containing class AdditionalMatterResponsiblesRequestBuilderGetQueryParameters, which contains
I tried to find the appropriate code in the kiota-source. Please correct me if I am wrong. Is the TranslateType (src/Kiota.Builder/Writers/CSharp/CSharpConventionService.cs) method missing the two cases for "int" and "bool"?
Expected behavior
RequestBuilder > RequestBuilderGetQueryParameters. The type int and bool must be written in lower-case.
How to reproduce
kiota commandline on a .NET 8 WebAPI with OData
Open API description file
swagger.json
Kiota Version
1.15.0
The text was updated successfully, but these errors were encountered: