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 @@
v2.28.0
v2.32.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>2.28.0</version>
<version>2.32.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.28.0"
implementation "ai.reveng:sdk:2.32.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 = '2.28.0'
version = '2.32.0'



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

coordinates("ai.reveng", "sdk", "2.28.0")
coordinates("ai.reveng", "sdk", "2.32.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 := "2.28.0",
version := "2.32.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 3 additions & 1 deletion docs/FunctionMappingFull.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
|**inverseStringMap** | [**Map&lt;String, InverseStringMapItem&gt;**](InverseStringMapItem.md) | | |
|**inverseFunctionMap** | [**Map&lt;String, InverseFunctionMapItem&gt;**](InverseFunctionMapItem.md) | | |
|**unmatchedFunctions** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedExternalVars** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedCustomTypes** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedStrings** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedVars** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedGoToLabels** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedCustomFunctionPointers** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedVariadicLists** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedEnums** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**unmatchedGlobalVars** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | | |
|**fields** | **Map&lt;String, Map&lt;String, InverseValue&gt;&gt;** | | |
|**unmatchedExternalVars** | [**Map&lt;String, InverseValue&gt;**](InverseValue.md) | No longer provided. | [optional] |



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>2.28.0</version>
<version>2.32.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/2.28.0/java");
setUserAgent("OpenAPI-Generator/2.32.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 = "2.28.0";
public static final String VERSION = "2.32.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
149 changes: 111 additions & 38 deletions src/main/java/ai/reveng/model/FunctionMappingFull.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ public class FunctionMappingFull {
@javax.annotation.Nonnull
private Map<String, InverseValue> unmatchedFunctions = new HashMap<>();

public static final String SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS = "unmatched_external_vars";
@SerializedName(SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS)
@javax.annotation.Nonnull
private Map<String, InverseValue> unmatchedExternalVars = new HashMap<>();

public static final String SERIALIZED_NAME_UNMATCHED_CUSTOM_TYPES = "unmatched_custom_types";
@SerializedName(SERIALIZED_NAME_UNMATCHED_CUSTOM_TYPES)
@javax.annotation.Nonnull
Expand Down Expand Up @@ -106,11 +101,27 @@ public class FunctionMappingFull {
@javax.annotation.Nonnull
private Map<String, InverseValue> unmatchedVariadicLists = new HashMap<>();

public static final String SERIALIZED_NAME_UNMATCHED_ENUMS = "unmatched_enums";
@SerializedName(SERIALIZED_NAME_UNMATCHED_ENUMS)
@javax.annotation.Nonnull
private Map<String, InverseValue> unmatchedEnums = new HashMap<>();

public static final String SERIALIZED_NAME_UNMATCHED_GLOBAL_VARS = "unmatched_global_vars";
@SerializedName(SERIALIZED_NAME_UNMATCHED_GLOBAL_VARS)
@javax.annotation.Nonnull
private Map<String, InverseValue> unmatchedGlobalVars = new HashMap<>();

public static final String SERIALIZED_NAME_FIELDS = "fields";
@SerializedName(SERIALIZED_NAME_FIELDS)
@javax.annotation.Nonnull
private Map<String, Map<String, InverseValue>> fields = new HashMap<>();

public static final String SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS = "unmatched_external_vars";
@Deprecated
@SerializedName(SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS)
@javax.annotation.Nullable
private Map<String, InverseValue> unmatchedExternalVars = new HashMap<>();

public FunctionMappingFull() {
}

Expand Down Expand Up @@ -195,33 +206,6 @@ public void setUnmatchedFunctions(@javax.annotation.Nonnull Map<String, InverseV
}


public FunctionMappingFull unmatchedExternalVars(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedExternalVars) {
this.unmatchedExternalVars = unmatchedExternalVars;
return this;
}

public FunctionMappingFull putUnmatchedExternalVarsItem(String key, InverseValue unmatchedExternalVarsItem) {
if (this.unmatchedExternalVars == null) {
this.unmatchedExternalVars = new HashMap<>();
}
this.unmatchedExternalVars.put(key, unmatchedExternalVarsItem);
return this;
}

/**
* Get unmatchedExternalVars
* @return unmatchedExternalVars
*/
@javax.annotation.Nonnull
public Map<String, InverseValue> getUnmatchedExternalVars() {
return unmatchedExternalVars;
}

public void setUnmatchedExternalVars(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedExternalVars) {
this.unmatchedExternalVars = unmatchedExternalVars;
}


public FunctionMappingFull unmatchedCustomTypes(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedCustomTypes) {
this.unmatchedCustomTypes = unmatchedCustomTypes;
return this;
Expand Down Expand Up @@ -384,6 +368,60 @@ public void setUnmatchedVariadicLists(@javax.annotation.Nonnull Map<String, Inve
}


public FunctionMappingFull unmatchedEnums(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedEnums) {
this.unmatchedEnums = unmatchedEnums;
return this;
}

public FunctionMappingFull putUnmatchedEnumsItem(String key, InverseValue unmatchedEnumsItem) {
if (this.unmatchedEnums == null) {
this.unmatchedEnums = new HashMap<>();
}
this.unmatchedEnums.put(key, unmatchedEnumsItem);
return this;
}

/**
* Get unmatchedEnums
* @return unmatchedEnums
*/
@javax.annotation.Nonnull
public Map<String, InverseValue> getUnmatchedEnums() {
return unmatchedEnums;
}

public void setUnmatchedEnums(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedEnums) {
this.unmatchedEnums = unmatchedEnums;
}


public FunctionMappingFull unmatchedGlobalVars(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedGlobalVars) {
this.unmatchedGlobalVars = unmatchedGlobalVars;
return this;
}

public FunctionMappingFull putUnmatchedGlobalVarsItem(String key, InverseValue unmatchedGlobalVarsItem) {
if (this.unmatchedGlobalVars == null) {
this.unmatchedGlobalVars = new HashMap<>();
}
this.unmatchedGlobalVars.put(key, unmatchedGlobalVarsItem);
return this;
}

/**
* Get unmatchedGlobalVars
* @return unmatchedGlobalVars
*/
@javax.annotation.Nonnull
public Map<String, InverseValue> getUnmatchedGlobalVars() {
return unmatchedGlobalVars;
}

public void setUnmatchedGlobalVars(@javax.annotation.Nonnull Map<String, InverseValue> unmatchedGlobalVars) {
this.unmatchedGlobalVars = unmatchedGlobalVars;
}


public FunctionMappingFull fields(@javax.annotation.Nonnull Map<String, Map<String, InverseValue>> fields) {
this.fields = fields;
return this;
Expand All @@ -410,6 +448,37 @@ public void setFields(@javax.annotation.Nonnull Map<String, Map<String, InverseV
this.fields = fields;
}


@Deprecated
public FunctionMappingFull unmatchedExternalVars(@javax.annotation.Nullable Map<String, InverseValue> unmatchedExternalVars) {
this.unmatchedExternalVars = unmatchedExternalVars;
return this;
}

public FunctionMappingFull putUnmatchedExternalVarsItem(String key, InverseValue unmatchedExternalVarsItem) {
if (this.unmatchedExternalVars == null) {
this.unmatchedExternalVars = new HashMap<>();
}
this.unmatchedExternalVars.put(key, unmatchedExternalVarsItem);
return this;
}

/**
* No longer provided.
* @return unmatchedExternalVars
* @deprecated
*/
@Deprecated
@javax.annotation.Nullable
public Map<String, InverseValue> getUnmatchedExternalVars() {
return unmatchedExternalVars;
}

@Deprecated
public void setUnmatchedExternalVars(@javax.annotation.Nullable Map<String, InverseValue> unmatchedExternalVars) {
this.unmatchedExternalVars = unmatchedExternalVars;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -468,20 +537,22 @@ public boolean equals(Object o) {
return Objects.equals(this.inverseStringMap, functionMappingFull.inverseStringMap) &&
Objects.equals(this.inverseFunctionMap, functionMappingFull.inverseFunctionMap) &&
Objects.equals(this.unmatchedFunctions, functionMappingFull.unmatchedFunctions) &&
Objects.equals(this.unmatchedExternalVars, functionMappingFull.unmatchedExternalVars) &&
Objects.equals(this.unmatchedCustomTypes, functionMappingFull.unmatchedCustomTypes) &&
Objects.equals(this.unmatchedStrings, functionMappingFull.unmatchedStrings) &&
Objects.equals(this.unmatchedVars, functionMappingFull.unmatchedVars) &&
Objects.equals(this.unmatchedGoToLabels, functionMappingFull.unmatchedGoToLabels) &&
Objects.equals(this.unmatchedCustomFunctionPointers, functionMappingFull.unmatchedCustomFunctionPointers) &&
Objects.equals(this.unmatchedVariadicLists, functionMappingFull.unmatchedVariadicLists) &&
Objects.equals(this.fields, functionMappingFull.fields)&&
Objects.equals(this.unmatchedEnums, functionMappingFull.unmatchedEnums) &&
Objects.equals(this.unmatchedGlobalVars, functionMappingFull.unmatchedGlobalVars) &&
Objects.equals(this.fields, functionMappingFull.fields) &&
Objects.equals(this.unmatchedExternalVars, functionMappingFull.unmatchedExternalVars)&&
Objects.equals(this.additionalProperties, functionMappingFull.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(inverseStringMap, inverseFunctionMap, unmatchedFunctions, unmatchedExternalVars, unmatchedCustomTypes, unmatchedStrings, unmatchedVars, unmatchedGoToLabels, unmatchedCustomFunctionPointers, unmatchedVariadicLists, fields, additionalProperties);
return Objects.hash(inverseStringMap, inverseFunctionMap, unmatchedFunctions, unmatchedCustomTypes, unmatchedStrings, unmatchedVars, unmatchedGoToLabels, unmatchedCustomFunctionPointers, unmatchedVariadicLists, unmatchedEnums, unmatchedGlobalVars, fields, unmatchedExternalVars, additionalProperties);
}

@Override
Expand All @@ -491,14 +562,16 @@ public String toString() {
sb.append(" inverseStringMap: ").append(toIndentedString(inverseStringMap)).append("\n");
sb.append(" inverseFunctionMap: ").append(toIndentedString(inverseFunctionMap)).append("\n");
sb.append(" unmatchedFunctions: ").append(toIndentedString(unmatchedFunctions)).append("\n");
sb.append(" unmatchedExternalVars: ").append(toIndentedString(unmatchedExternalVars)).append("\n");
sb.append(" unmatchedCustomTypes: ").append(toIndentedString(unmatchedCustomTypes)).append("\n");
sb.append(" unmatchedStrings: ").append(toIndentedString(unmatchedStrings)).append("\n");
sb.append(" unmatchedVars: ").append(toIndentedString(unmatchedVars)).append("\n");
sb.append(" unmatchedGoToLabels: ").append(toIndentedString(unmatchedGoToLabels)).append("\n");
sb.append(" unmatchedCustomFunctionPointers: ").append(toIndentedString(unmatchedCustomFunctionPointers)).append("\n");
sb.append(" unmatchedVariadicLists: ").append(toIndentedString(unmatchedVariadicLists)).append("\n");
sb.append(" unmatchedEnums: ").append(toIndentedString(unmatchedEnums)).append("\n");
sb.append(" unmatchedGlobalVars: ").append(toIndentedString(unmatchedGlobalVars)).append("\n");
sb.append(" fields: ").append(toIndentedString(fields)).append("\n");
sb.append(" unmatchedExternalVars: ").append(toIndentedString(unmatchedExternalVars)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -521,10 +594,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_external_vars", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "fields"));
openapiFields = new HashSet<String>(Arrays.asList("inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "unmatched_enums", "unmatched_global_vars", "fields", "unmatched_external_vars"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_external_vars", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "fields"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "unmatched_enums", "unmatched_global_vars", "fields"));
}

/**
Expand Down
32 changes: 24 additions & 8 deletions src/test/java/ai/reveng/model/FunctionMappingFullTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ public void unmatchedFunctionsTest() {
// TODO: test unmatchedFunctions
}

/**
* Test the property 'unmatchedExternalVars'
*/
@Test
public void unmatchedExternalVarsTest() {
// TODO: test unmatchedExternalVars
}

/**
* Test the property 'unmatchedCustomTypes'
*/
Expand Down Expand Up @@ -121,6 +113,22 @@ public void unmatchedVariadicListsTest() {
// TODO: test unmatchedVariadicLists
}

/**
* Test the property 'unmatchedEnums'
*/
@Test
public void unmatchedEnumsTest() {
// TODO: test unmatchedEnums
}

/**
* Test the property 'unmatchedGlobalVars'
*/
@Test
public void unmatchedGlobalVarsTest() {
// TODO: test unmatchedGlobalVars
}

/**
* Test the property 'fields'
*/
Expand All @@ -129,4 +137,12 @@ public void fieldsTest() {
// TODO: test fields
}

/**
* Test the property 'unmatchedExternalVars'
*/
@Test
public void unmatchedExternalVarsTest() {
// TODO: test unmatchedExternalVars
}

}