Closed pillowfication closed 1 year ago
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.
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 We can't change the parameter name, it'd be a breaking change even though it's unlikely anybody has a direct reference to it. I created #3070 to follow up on this during v2. We should still carry on the description of the parameter for a better developer experience. I'll work on that for the next release.
Using the OpenAPI 3.0.0 petstore sample
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.