From dc534c0809338d319f4eac07528c2d7cb54f9dd4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 22:09:48 +0000 Subject: [PATCH 1/3] chore: [DevOps] bump the plugins group across 1 directory with 3 updates Bumps the plugins group with 3 updates in the / directory: [com.sap.cloud.sdk.datamodel:openapi-generator-maven-plugin](https://github.com/SAP/cloud-sdk-java), org.openapitools:openapi-generator-maven-plugin and [org.springframework.boot:spring-boot-maven-plugin](https://github.com/spring-projects/spring-boot). Updates `com.sap.cloud.sdk.datamodel:openapi-generator-maven-plugin` from 5.24.0 to 5.25.0 - [Release notes](https://github.com/SAP/cloud-sdk-java/releases) - [Changelog](https://github.com/SAP/cloud-sdk-java/blob/main/release_notes.md) - [Commits](https://github.com/SAP/cloud-sdk-java/compare/rel/5.24.0...rel/5.25.0) Updates `org.openapitools:openapi-generator-maven-plugin` from 7.17.0 to 7.18.0 Updates `org.springframework.boot:spring-boot-maven-plugin` from 3.5.7 to 4.0.1 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v3.5.7...v4.0.1) --- updated-dependencies: - dependency-name: com.sap.cloud.sdk.datamodel:openapi-generator-maven-plugin dependency-version: 5.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: plugins - dependency-name: org.openapitools:openapi-generator-maven-plugin dependency-version: 7.18.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: plugins - dependency-name: org.springframework.boot:spring-boot-maven-plugin dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: plugins ... Signed-off-by: dependabot[bot] --- pom.xml | 4 ++-- sample-code/spring-app/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 7b677b712..c0599e381 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ full UTF-8 2025-04-03T13:23:00Z - 5.24.0 + 5.25.0 6.0.1 3.13.2 3.27.6 @@ -299,7 +299,7 @@ org.openapitools openapi-generator-maven-plugin - 7.17.0 + 7.18.0 diff --git a/sample-code/spring-app/pom.xml b/sample-code/spring-app/pom.xml index 840782b4c..ae2838a51 100644 --- a/sample-code/spring-app/pom.xml +++ b/sample-code/spring-app/pom.xml @@ -33,7 +33,7 @@ ${project.basedir}/../../ - 3.5.7 + 4.0.1 1.5.22 4.0.1 11.0.15 From 36d92517c65c37325aa0363d30de38ba5df2ac87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Mon, 29 Dec 2025 19:35:49 +0100 Subject: [PATCH 2/3] Revert spring boot change --- sample-code/spring-app/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample-code/spring-app/pom.xml b/sample-code/spring-app/pom.xml index ae2838a51..840782b4c 100644 --- a/sample-code/spring-app/pom.xml +++ b/sample-code/spring-app/pom.xml @@ -33,7 +33,7 @@ ${project.basedir}/../../ - 4.0.1 + 3.5.7 1.5.22 4.0.1 11.0.15 From 339571da198ff553bfb561a8107ec4708d7a46b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Mon, 29 Dec 2025 21:19:12 +0100 Subject: [PATCH 3/3] Update generation --- .../openai/generated/model/Error.java | 148 +++++++++--------- 1 file changed, 74 insertions(+), 74 deletions(-) diff --git a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java index 2b6c215a5..1cb11ef26 100644 --- a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java +++ b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java @@ -28,6 +28,12 @@ public class Error // CHECKSTYLE:ON { + @JsonProperty("code") + private String code; + + @JsonProperty("message") + private String message; + @JsonProperty("param") private String param; @@ -37,168 +43,162 @@ public class Error @JsonProperty("inner_error") private InnerError innerError; - @JsonProperty("code") - private String code; - - @JsonProperty("message") - private String message; - @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); /** - * Set the param of this {@link Error} instance and return the same instance. + * Set the code of this {@link Error} instance and return the same instance. * - * @param param The param of this {@link Error} + * @param code The code of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error param(@Nullable final String param) { - this.param = param; + public Error code(@Nullable final String code) { + this.code = code; return this; } /** - * Get param + * Get code * - * @return param The param of this {@link Error} instance. + * @return code The code of this {@link Error} instance. */ @Nonnull - public String getParam() { - return param; + public String getCode() { + return code; } /** - * Set the param of this {@link Error} instance. + * Set the code of this {@link Error} instance. * - * @param param The param of this {@link Error} + * @param code The code of this {@link Error} */ - public void setParam(@Nullable final String param) { - this.param = param; + public void setCode(@Nullable final String code) { + this.code = code; } /** - * Set the type of this {@link Error} instance and return the same instance. + * Set the message of this {@link Error} instance and return the same instance. * - * @param type The type of this {@link Error} + * @param message The message of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error type(@Nullable final String type) { - this.type = type; + public Error message(@Nullable final String message) { + this.message = message; return this; } /** - * Get type + * Get message * - * @return type The type of this {@link Error} instance. + * @return message The message of this {@link Error} instance. */ @Nonnull - public String getType() { - return type; + public String getMessage() { + return message; } /** - * Set the type of this {@link Error} instance. + * Set the message of this {@link Error} instance. * - * @param type The type of this {@link Error} + * @param message The message of this {@link Error} */ - public void setType(@Nullable final String type) { - this.type = type; + public void setMessage(@Nullable final String message) { + this.message = message; } /** - * Set the innerError of this {@link Error} instance and return the same instance. + * Set the param of this {@link Error} instance and return the same instance. * - * @param innerError The innerError of this {@link Error} + * @param param The param of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error innerError(@Nullable final InnerError innerError) { - this.innerError = innerError; + public Error param(@Nullable final String param) { + this.param = param; return this; } /** - * Get innerError + * Get param * - * @return innerError The innerError of this {@link Error} instance. + * @return param The param of this {@link Error} instance. */ @Nonnull - public InnerError getInnerError() { - return innerError; + public String getParam() { + return param; } /** - * Set the innerError of this {@link Error} instance. + * Set the param of this {@link Error} instance. * - * @param innerError The innerError of this {@link Error} + * @param param The param of this {@link Error} */ - public void setInnerError(@Nullable final InnerError innerError) { - this.innerError = innerError; + public void setParam(@Nullable final String param) { + this.param = param; } /** - * Set the code of this {@link Error} instance and return the same instance. + * Set the type of this {@link Error} instance and return the same instance. * - * @param code The code of this {@link Error} + * @param type The type of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error code(@Nullable final String code) { - this.code = code; + public Error type(@Nullable final String type) { + this.type = type; return this; } /** - * Get code + * Get type * - * @return code The code of this {@link Error} instance. + * @return type The type of this {@link Error} instance. */ @Nonnull - public String getCode() { - return code; + public String getType() { + return type; } /** - * Set the code of this {@link Error} instance. + * Set the type of this {@link Error} instance. * - * @param code The code of this {@link Error} + * @param type The type of this {@link Error} */ - public void setCode(@Nullable final String code) { - this.code = code; + public void setType(@Nullable final String type) { + this.type = type; } /** - * Set the message of this {@link Error} instance and return the same instance. + * Set the innerError of this {@link Error} instance and return the same instance. * - * @param message The message of this {@link Error} + * @param innerError The innerError of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error message(@Nullable final String message) { - this.message = message; + public Error innerError(@Nullable final InnerError innerError) { + this.innerError = innerError; return this; } /** - * Get message + * Get innerError * - * @return message The message of this {@link Error} instance. + * @return innerError The innerError of this {@link Error} instance. */ @Nonnull - public String getMessage() { - return message; + public InnerError getInnerError() { + return innerError; } /** - * Set the message of this {@link Error} instance. + * Set the innerError of this {@link Error} instance. * - * @param message The message of this {@link Error} + * @param innerError The innerError of this {@link Error} */ - public void setMessage(@Nullable final String message) { - this.message = message; + public void setInnerError(@Nullable final InnerError innerError) { + this.innerError = innerError; } /** @@ -239,11 +239,11 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc @Nonnull public Map toMap() { final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields); + if (code != null) declaredFields.put("code", code); + if (message != null) declaredFields.put("message", message); if (param != null) declaredFields.put("param", param); if (type != null) declaredFields.put("type", type); if (innerError != null) declaredFields.put("innerError", innerError); - if (code != null) declaredFields.put("code", code); - if (message != null) declaredFields.put("message", message); return declaredFields; } @@ -269,16 +269,16 @@ public boolean equals(@Nullable final java.lang.Object o) { } final Error error = (Error) o; return Objects.equals(this.cloudSdkCustomFields, error.cloudSdkCustomFields) + && Objects.equals(this.code, error.code) + && Objects.equals(this.message, error.message) && Objects.equals(this.param, error.param) && Objects.equals(this.type, error.type) - && Objects.equals(this.innerError, error.innerError) - && Objects.equals(this.code, error.code) - && Objects.equals(this.message, error.message); + && Objects.equals(this.innerError, error.innerError); } @Override public int hashCode() { - return Objects.hash(param, type, innerError, code, message, cloudSdkCustomFields); + return Objects.hash(code, message, param, type, innerError, cloudSdkCustomFields); } @Override @@ -286,11 +286,11 @@ public int hashCode() { public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" param: ").append(toIndentedString(param)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" innerError: ").append(toIndentedString(innerError)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); cloudSdkCustomFields.forEach( (k, v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));