-
Notifications
You must be signed in to change notification settings - Fork 234
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
CSharp - Path Parameters should keep their name and descriptions #2978
Comments
Thanks for your interest in kiota and for reporting this. This is something that could be easily fixed by adding a ParameterDescription property on the code indexer DOM element and populating that property. kiota/src/Kiota.Builder/KiotaBuilder.cs Line 973 in 9f3c55f
Then we need to make sure we carry the information when we convert the indexer to a method in other languages
And lastly we need to make sure we write the information in dotnet (the other languages will rely on the code parameter information already)
Is this something you'd be willing to submit a pull request for? |
@baywet Please review based on the 1.5 release improvements. Thanks! |
The 1.5 improvements didn't impact this issue much: We now support type specific indexer parameters (not just string anymore, but also int etc...). #2594 |
Using the OpenAPI 3.0.0 petstore sample
kiota generate -d "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json" -l CSharp
The part of interest is
Current Behavior
The following block of code is created for the indexer
Expected Behavior
I would like for the
position
variable to be named the same as the path parameterpetId
. I would also like for path parameter's description to be kept and placed in a corresponding<param/>
documentation.The text was updated successfully, but these errors were encountered: