From 1c6dbe8eb529fc6e9d78985794ed1fd5b96cb47d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 30 Nov 2025 20:28:39 +0000 Subject: [PATCH] Update SDK to version v2.52.1 - Generated from OpenAPI spec version v2.52.1 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +-- build.gradle | 4 +-- build.sbt | 2 +- docs/AppApiRestV2FunctionsTypesFunction.md | 4 +-- pom.xml | 2 +- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- .../AppApiRestV2FunctionsTypesFunction.java | 26 ++++++++++++------- ...ppApiRestV2FunctionsTypesFunctionTest.java | 1 + 10 files changed, 29 insertions(+), 20 deletions(-) diff --git a/.sdk-version b/.sdk-version index 194d155..147ed7d 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.51.0 +v2.52.1 diff --git a/README.md b/README.md index 9b951d7..0cf4976 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 2.51.0 + 2.52.1 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:2.51.0" + implementation "ai.reveng:sdk:2.52.1" } ``` diff --git a/build.gradle b/build.gradle index e4598d4..981784c 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '2.51.0' +version = '2.52.1' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "2.51.0") + coordinates("ai.reveng", "sdk", "2.52.1") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 5a0f694..f9e11d5 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "2.51.0", + version := "2.52.1", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/AppApiRestV2FunctionsTypesFunction.md b/docs/AppApiRestV2FunctionsTypesFunction.md index 1bb7fe3..32aa95e 100644 --- a/docs/AppApiRestV2FunctionsTypesFunction.md +++ b/docs/AppApiRestV2FunctionsTypesFunction.md @@ -13,8 +13,8 @@ |**functionVaddr** | **Long** | Function virtual address | | |**functionSize** | **Integer** | Function size | | |**debug** | **Boolean** | Whether the function is debug | | -|**embedding3d** | **List<BigDecimal>** | | | -|**embedding1d** | **List<BigDecimal>** | | | +|**embedding3d** | **List<BigDecimal>** | | [optional] | +|**embedding1d** | **List<BigDecimal>** | | [optional] | diff --git a/pom.xml b/pom.xml index 5921f34..14a82cc 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 2.51.0 + 2.52.1 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 066b77d..771ece4 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -146,7 +146,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.51.0/java"); + setUserAgent("OpenAPI-Generator/2.52.1/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java index 1ff8043..4099829 100644 --- a/src/main/java/ai/reveng/invoker/Configuration.java +++ b/src/main/java/ai/reveng/invoker/Configuration.java @@ -18,7 +18,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "2.51.0"; + public static final String VERSION = "2.52.1"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java b/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java index e697761..8f19097 100644 --- a/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java +++ b/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java @@ -24,6 +24,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -330,11 +331,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, appApiRestV2FunctionsTypesFunction.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { return Objects.hash(functionId, functionName, functionMangledName, functionVaddr, functionSize, debug, embedding3d, embedding1d, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -372,7 +384,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d")); + openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug")); } /** @@ -401,16 +413,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("function_mangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_mangled_name").toString())); } - // ensure the required json array is present - if (jsonObj.get("embedding_3d") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("embedding_3d").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("embedding_3d") != null && !jsonObj.get("embedding_3d").isJsonNull() && !jsonObj.get("embedding_3d").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_3d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_3d").toString())); } - // ensure the required json array is present - if (jsonObj.get("embedding_1d") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("embedding_1d").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("embedding_1d") != null && !jsonObj.get("embedding_1d").isJsonNull() && !jsonObj.get("embedding_1d").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_1d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_1d").toString())); } } diff --git a/src/test/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunctionTest.java b/src/test/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunctionTest.java index c974532..c44dec1 100644 --- a/src/test/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunctionTest.java +++ b/src/test/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunctionTest.java @@ -22,6 +22,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test;