We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
more details here
This exception might have been thrown before we used URI templates when we were building the URI in an "ad-hoc" way. It's not needed anymore.
We should update the generation of request executor method from
@jakarta.annotation.Nonnull public java.util.concurrent.CompletableFuture<User> get() { try { final RequestInformation requestInfo = toGetRequestInformation(null); final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>(); errorMapping.put("4XX", ODataError::createFromDiscriminatorValue); errorMapping.put("5XX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.sendAsync(requestInfo, User::createFromDiscriminatorValue, errorMapping); } catch (URISyntaxException ex) { final java.util.concurrent.CompletableFuture<User> executionException = new java.util.concurrent.CompletableFuture<User>(); executionException.completeExceptionally(ex); return executionException; } }
to
@jakarta.annotation.Nonnull public java.util.concurrent.CompletableFuture<User> get() { final RequestInformation requestInfo = toGetRequestInformation(null); final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>(); errorMapping.put("4XX", ODataError::createFromDiscriminatorValue); errorMapping.put("5XX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.sendAsync(requestInfo, User::createFromDiscriminatorValue, errorMapping); }
And to remove the exception throws declaration from generator methods. We should also remove the code using inserted by the refiner.
This should significantly reduce the resulting size of the client
The text was updated successfully, but these errors were encountered:
Hi @baywet , Could you clarify what you mean by "remove the code using inserted by the refiner"?
Sorry, something went wrong.
This
kiota/src/Kiota.Builder/Refiners/JavaRefiner.cs
Line 212 in cc3b54c
ramsessanchez
Successfully merging a pull request may close this issue.
more details here
This exception might have been thrown before we used URI templates when we were building the URI in an "ad-hoc" way. It's not needed anymore.
We should update the generation of request executor method from
to
And to remove the exception throws declaration from generator methods.
We should also remove the code using inserted by the refiner.
This should significantly reduce the resulting size of the client
The text was updated successfully, but these errors were encountered: