CSharp - enum path parameters not generated #4340
Labels
generator
Issues or improvements relater to generation capabilities.
help wanted
Issue caused by core project dependency modules or library
type:bug
A broken experience
Milestone
We're using Kiota to replace existing NSwag generation, and whilst it's mostly been smooth (and overall a nice improvement), we have one major blocker left.
We've found that Kiota doesn't generate the enum models for path parameters, and instead takes a string, I've done a little research and it looks like a similar issue has been raised and fixed (in dotnet) with other languages in progress.
Whilst PRs have been raised for other langs to add this for path and query params, looks like dotnet might just be query?
Is there a technical reason for this? Or is it coming soon?
ref:
#3693
#2490
#3785
#3783
#3784
Example:
Generates (for both examples):
Firstly, the param name being "position" rather than usign the path property name is extremely confusing as a consumer of the generated SDK.
Secondly if I change EnumParam to be a query parameter, it correctly generates an enum query param (as well as string), with either a schema model enum, or a nested enum. This is fine, and I'd be happy with this behaviour for path too, but currently this doesn't appear to be working.
The text was updated successfully, but these errors were encountered: