Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.13.0
v3.15.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>3.13.0</version>
<version>3.15.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.13.0"
implementation "ai.reveng:sdk:3.15.0"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '3.13.0'
version = '3.15.0'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "3.13.0")
coordinates("ai.reveng", "sdk", "3.15.0")

pom {
name = "sdk"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
version := "3.13.0",
version := "3.15.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>3.13.0</version>
<version>3.15.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.13.0/java");
setUserAgent("OpenAPI-Generator/3.15.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "3.13.0";
public static final String VERSION = "3.15.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/ai/reveng/model/BinaryDetailsResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class BinaryDetailsResponse {

public static final String SERIALIZED_NAME_SSDEEP = "ssdeep";
@SerializedName(SERIALIZED_NAME_SSDEEP)
@javax.annotation.Nonnull
@javax.annotation.Nullable
private String ssdeep;

public static final String SERIALIZED_NAME_STATIC = "static";
Expand Down Expand Up @@ -384,7 +384,7 @@ public void setSha256(@javax.annotation.Nonnull String sha256) {
}


public BinaryDetailsResponse ssdeep(@javax.annotation.Nonnull String ssdeep) {
public BinaryDetailsResponse ssdeep(@javax.annotation.Nullable String ssdeep) {
this.ssdeep = ssdeep;
return this;
}
Expand All @@ -393,12 +393,12 @@ public BinaryDetailsResponse ssdeep(@javax.annotation.Nonnull String ssdeep) {
* Get ssdeep
* @return ssdeep
*/
@javax.annotation.Nonnull
@javax.annotation.Nullable
public String getSsdeep() {
return ssdeep;
}

public void setSsdeep(@javax.annotation.Nonnull String ssdeep) {
public void setSsdeep(@javax.annotation.Nullable String ssdeep) {
this.ssdeep = ssdeep;
}

Expand Down Expand Up @@ -717,7 +717,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("sha256").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha256` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha256").toString()));
}
if (!jsonObj.get("ssdeep").isJsonPrimitive()) {
if ((jsonObj.get("ssdeep") != null && !jsonObj.get("ssdeep").isJsonNull()) && !jsonObj.get("ssdeep").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ssdeep` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ssdeep").toString()));
}
if (!jsonObj.get("sub_sys").isJsonPrimitive()) {
Expand Down