Skip to content

Commit f09ab1b

Browse files
[issues#959] Fix api.qute condition to include the baseUri to @RegisterRestClient (#960) (#961)
Co-authored-by: Pere Fernández <[email protected]>
1 parent ea95798 commit f09ab1b

File tree

3 files changed

+3
-3
lines changed
  • client
    • deployment/src/main/resources/templates/libraries/microprofile
    • integration-tests
      • change-custom-template-directory/src/main/custom/templates
      • custom-templates/src/main/resources/templates

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {imp.import};
1818
*/
1919
{/if}
2020
@jakarta.ws.rs.Path("{#if useAnnotatedBasePath.or(false)}{contextPath}{/if}{commonPath}")
21-
@org.eclipse.microprofile.rest.client.inject.RegisterRestClient({#if !defaultServerUrl.or('') == ''}baseUri="{defaultServerUrl}", {/if}configKey="{configKey}")
21+
@org.eclipse.microprofile.rest.client.inject.RegisterRestClient({#if defaultServerUrl.or('') != ''}baseUri="{defaultServerUrl}", {/if}configKey="{configKey}")
2222
@io.quarkiverse.openapi.generator.annotations.GeneratedClass(value="{openapi:parseUri(inputSpec)}", tag = "{baseName}")
2323
{#if enable-security-generation && openapi:hasAuthMethods(operations) }
2424
@org.eclipse.microprofile.rest.client.annotation.RegisterProvider({package}.auth.CompositeAuthenticationProvider.class)

client/integration-tests/change-custom-template-directory/src/main/custom/templates/api.qute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import io.quarkiverse.openapi.generator.annotations.GeneratedParam;
3535
*/
3636
{/if}
3737
@Path("{commonPath}")
38-
@RegisterRestClient({#if !defaultServerUrl.or('') == ''}baseUri="{defaultServerUrl}",{/if} configKey="{configKey}")
38+
@RegisterRestClient({#if defaultServerUrl.or('') != ''}baseUri="{defaultServerUrl}",{/if} configKey="{configKey}")
3939
@GeneratedClass(value="{openapi:parseUri(inputSpec)}", tag = "{baseName}")
4040
{#if openapi:hasAuthMethods(operations)}
4141
@RegisterProvider(CompositeAuthenticationProvider.class)

client/integration-tests/custom-templates/src/main/resources/templates/api.qute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import io.quarkiverse.openapi.generator.annotations.GeneratedParam;
3535
*/
3636
{/if}
3737
@Path("{commonPath}")
38-
@RegisterRestClient({#if !defaultServerUrl.or('') == ''}baseUri="{defaultServerUrl}", {/if}configKey="{configKey}")
38+
@RegisterRestClient({#if defaultServerUrl.or('') != ''}baseUri="{defaultServerUrl}", {/if}configKey="{configKey}")
3939
@GeneratedClass(value="{openapi:parseUri(inputSpec)}", tag = "{baseName}")
4040
{#if openapi:hasAuthMethods(operations)}
4141
@RegisterProvider(CompositeAuthenticationProvider.class)

0 commit comments

Comments
 (0)