Closed jasonjoh closed 1 year ago
This seems to be a side effect of #3058. We should probably add a refiner method for CLI that removes those backward compatible indexers. @calebkiage do you need indexers at all in the CLI generation?
put together #3091
Hey @bawet, I do use indexers but in a different way than C#. I create a list of commands whenever I encounter an indexer. See https://github.com/microsoft/kiota/blob/main/src/Kiota.Builder/Writers/CLI/CliCodeMethodWriter.cs#L65
Are these indexers duplicates?
Thanks for the additional context. Yes we now have 2 indexers in some cases to avoid breaking binary compatibility in CSharp. One with the specific type, and another still with string and tagged as obsolete.
In 1.5, kiota generates a request builder for the quickstart that will not compile.
Offending code:
This method wasn't present at all in the 1.4 generated client, and I verified that removing it fixes the issue (and the client still works).