Skip to content

Commit

Permalink
[processor][http endpoints] don't use deprecated request.body API in …
Browse files Browse the repository at this point in the history
…generated sources
  • Loading branch information
rmannibucau committed Mar 22, 2024
1 parent 2e07739 commit fad2dfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected Param createJsonParam(final VariableElement it, final ParsedType param
"lookup(container, " + JsonMapper.class.getName() + ".class, dependents)",
Optional.class.getName() + ".ofNullable(request.unwrapOrNull(" + Reader.class.getName() + ".class))\n" +
" .map(reader -> " + CompletableFuture.class.getName() + ".completedStage(jsonMapper.read(" + type + ", reader)))\n" +
" .orElseGet(() -> new " + RequestBodyAggregator.class.getName() + "(request.body(), " + StandardCharsets.class.getName() + ".UTF_8)\n" +
" .orElseGet(() -> new " + RequestBodyAggregator.class.getName() + "(request.fullBody(), " + StandardCharsets.class.getName() + ".UTF_8)\n" +
" .promise()\n" +
" .thenApply(payload -> jsonMapper.read(" + type + ", new " + AvailableCharArrayReader.class.getName() + "(payload))))",
"payload");
Expand Down

0 comments on commit fad2dfa

Please sign in to comment.