-
Notifications
You must be signed in to change notification settings - Fork 216
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
Generating dictionary properties for csharp models #1791
Comments
Hi @morinow , |
@baywet Thanks for the quick response. Sad to hear, that this is an actual limitation. Is there any realistic chance of this being resolved in the near future (if you can even tell)? This seems like a huge blocker for any API, that uses dictionary properties. Kiota looks great overall, which is why it's kind of frustrating. |
They have an issue tracking it and the team is actually working on it (I'm involved with reviewing the pull requests). Would converting the property to an array of string be an ok workaround for the time being so you're unblocked? |
Sounds great. I'll keep an eye on it.
Don't think so tbh. But I'll just stick with the old generator then for now, until the upgrade has been done. |
Thanks for the additional details, closing this one as we already have issues tracking this feature. |
It seems to me that it's not possible to generate model properties of type dictionary for csharp.
I have the following schema, which includes an object containing a property of type dictionary<string, string> called 'labels':
which generates the following model with an extra class for the 'labels' property instead of using a dictionary type:
Am I missing something here? I could not find anything related to this in the issues or docs.
The text was updated successfully, but these errors were encountered: