Skip to content

Commit 314cb0d

Browse files
committed
Fixes an issue where the generated REST client was missing a comma
between `additional-request-args` and `@Url` when both were used, causing a compilation error. Updated the `api.qute` template to handle this safely, without affecting other parameter combinations.
1 parent df9b0f7 commit 314cb0d

File tree

1 file changed

+4
-3
lines changed
  • client/deployment/src/main/resources/templates/libraries/microprofile

1 file changed

+4
-3
lines changed

client/deployment/src/main/resources/templates/libraries/microprofile/api.qute

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ public interface {classname} {
124124
{/if}
125125
{/if}
126126
{#if additionalRequestArgs}
127-
{#for arg in additionalRequestArgs}{!
128-
!}{arg}{#if arg_hasNext}, {/if}{/for}{!
129-
!}{#if op.allParams || op.hasFormParams},{/if}
127+
{#for arg in additionalRequestArgs}
128+
{arg}{#if arg_hasNext}, {/if}
129+
{/for}
130+
{#if is-resteasy-reactive && use-dynamic-url}, {/if}
130131
{/if}
131132
{#if is-resteasy-reactive && use-dynamic-url}
132133
// See https://quarkus.io/version/3.20/guides/rest-client#dynamic-base-urls

0 commit comments

Comments
 (0)