-
Notifications
You must be signed in to change notification settings - Fork 33
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
Unknown type for deserialization when trying to get enum collection in C# #278
Comments
Transferring this to the json serialization library repository. |
Thanks for raising this @alexvab This is related to #199 and the function you pointed out should ideally be handling enum collections in the meantime until the time a breaking change is made to allow for this scenario to align with other languages. Any chance you'd be willing to submit a PR to fix this? |
Hi @andrueastman Thanks. I could try to submit PR but not sure when I'd be able to make. It looks like I can use Java implementation as a reference for this? |
@andrueastman I think we could get around to that without introducing a breaking change by adding an early case here to check whether the generic type parameter is an enum, and route the call to the GetCollectionOfEnumValues instead. |
@baywet yes I'd like to explore it and submit PR. but not sure how much time I'll have on hand and when I'll be able to submit PR. |
great, let's circle back in a week. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
@alexvab is this something you started looking at? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Ping @alexvab |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Transferring issue as part of #238 |
Resolved with #291 |
Hello, I have an issue with the api endpoint (controller action) which return collection of C# enum as a json
this is my swagger.json file:
Here is my controller action definition
When I'm using Kiota ApiClient that has been generated using this swagger.json file above I get an exception when GetAsync method is executed
It seems like enum was handled as a primitive type in
GetCollectionOfPrimitiveValues
but there is no option for enum there:This is my GetAsync method:
So I'm wondering is this a know issue, or it is something that not supported by Kiota? (I was using versions 1.12 and 1.13)
Please let me know if you need more information.
Thanks!
The text was updated successfully, but these errors were encountered: