From 321798b0489e5486211070831b2640ad8eb78935 Mon Sep 17 00:00:00 2001 From: Ezequiel Rozen Date: Tue, 13 Jun 2023 11:55:41 -0300 Subject: [PATCH] [DRE-88] Change artifactVersion (#43) * Changes for upgrade OpenApi - Java * Changes for upgrade OpenApi - Java * Changes readme example * Add ossrh to pom * Change org-json version * Change artifactVersion --- config-java.json | 4 ++-- templates/java/jersey3/ApiClient.mustache | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config-java.json b/config-java.json index 1c9909c..43b4cce 100644 --- a/config-java.json +++ b/config-java.json @@ -6,7 +6,7 @@ "developerOrganization": "Conekta, Inc.", "developerOrganizationUrl": "https://www.conekta.io", "artifactUrl": "https://developers.conekta.com/", - "artifactVersion": "6.0.1", + "artifactVersion": "6.0.0", "modelPackage": "com.conekta.model", "licenseName": "MIT License", "invokerPackage": "com.conekta", @@ -31,6 +31,6 @@ "disallowAdditionalPropertiesIfNotPresent": true, "useOneOfDiscriminatorLookup": true, "serializationLibrary": "jackson", - "httpUserAgent": "Conekta/v2 JavaBindings/6.0.1", + "httpUserAgent": "Conekta/v2 JavaBindings/", "openApiNullable" : false } \ No newline at end of file diff --git a/templates/java/jersey3/ApiClient.mustache b/templates/java/jersey3/ApiClient.mustache index 3d1e8fa..c7680a6 100644 --- a/templates/java/jersey3/ApiClient.mustache +++ b/templates/java/jersey3/ApiClient.mustache @@ -215,7 +215,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/{{{artifactVersion}}}/java{{/httpUserAgent}}"); + setUserAgent("{{{httpUserAgent}}}{{artifactVersion}}{{^httpUserAgent}}OpenAPI-Generator/{{{artifactVersion}}}/java{{/httpUserAgent}}"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap<>();