-
Notifications
You must be signed in to change notification settings - Fork 221
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
[java] [question] Query parameters and enums #2306
Comments
Thanks for bringing this up. In theory we already have all the bricks we need for this one. |
@baywet thanks for reverting back! Would you like to dump a few links to significant lines where you expect the code to be touched? |
Sure, kiota/src/Kiota.Builder/KiotaBuilder.cs Line 1692 in 7450b04
right now it only supports primitive types but calling a simplified version of create model declaration would do the trick (to avoid generating classes) kiota/src/Kiota.Builder/KiotaBuilder.cs Line 1289 in 7450b04
Then in the request information the serialization expects annotations for anything that's not trivial, so we'd need to update the annotation to point to the serialization method for the enum and update the property generation.
|
Nice writeup @baywet , appreciated! |
Unfortunately this would potentially mean a breaking change for existing users off go and c# and we missed it when we went GA. This will have to wait for v2 at this point. |
This is actually a duplicate of #2490 closing |
I haven't narrowed down this issue completely, but it seems that enum fields are exposed as strings in
queryParameters
.I don't see a huge problem with this decision but I would like to understand if it's deliberate, accidental, or something we want to improve in the longer run.
E.g. here
The text was updated successfully, but these errors were encountered: