Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class Pair {
private final String name;
private final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/** Representing a Server configuration. */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class ServerConfiguration {
public String URL;
public String description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/** Representing a Server Variable for server URL template substitution. */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class ServerVariable {
public String description;
public String defaultValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public abstract class AbstractOpenApiSchema {

// store the actual instance of the schema/object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/** ContainerSearchResult */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class ContainerSearchResult {
public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId";

Expand Down Expand Up @@ -318,6 +318,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
.isEmpty()) { // has required fields but JSON element is null
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field(s) %s in ContainerSearchResult is not found in the empty JSON string",
ContainerSearchResult.openapiRequiredFields.toString()));
}
Expand All @@ -329,8 +330,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!ContainerSearchResult.openapiFields.contains(entry.getKey())) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The field `%s` in the JSON string is not defined in the `ContainerSearchResult` properties. JSON: %s",
entry.getKey(), jsonElement.toString()));
entry.getKey(),
jsonElement.toString()));
}
}

Expand All @@ -339,20 +342,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
requiredField, jsonElement.toString()));
requiredField,
jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("containerId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `containerId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("containerId").toString()));
}
if (!jsonObj.get("containerType").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `containerType` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("containerType").toString()));
}
Expand All @@ -361,6 +368,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("id").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `id` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("id").toString()));
}
Expand All @@ -371,13 +379,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
if ((jsonObj.get("organizationId") != null && !jsonObj.get("organizationId").isJsonNull())
&& !jsonObj.get("organizationId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `organizationId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("organizationId").toString()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/** CreateFolderPayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class CreateFolderPayload {
public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId";

Expand Down Expand Up @@ -228,6 +228,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
.isEmpty()) { // has required fields but JSON element is null
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field(s) %s in CreateFolderPayload is not found in the empty JSON string",
CreateFolderPayload.openapiRequiredFields.toString()));
}
Expand All @@ -239,8 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!CreateFolderPayload.openapiFields.contains(entry.getKey())) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The field `%s` in the JSON string is not defined in the `CreateFolderPayload` properties. JSON: %s",
entry.getKey(), jsonElement.toString()));
entry.getKey(),
jsonElement.toString()));
}
}

Expand All @@ -249,14 +252,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
requiredField, jsonElement.toString()));
requiredField,
jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("containerParentId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("containerParentId").toString()));
}
Expand All @@ -267,6 +273,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("members").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `members` to be an array in the JSON string but got `%s`",
jsonObj.get("members").toString()));
}
Expand All @@ -281,6 +288,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/** CreateProjectPayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class CreateProjectPayload {
public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId";

Expand Down Expand Up @@ -231,6 +231,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
.isEmpty()) { // has required fields but JSON element is null
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field(s) %s in CreateProjectPayload is not found in the empty JSON string",
CreateProjectPayload.openapiRequiredFields.toString()));
}
Expand All @@ -242,8 +243,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!CreateProjectPayload.openapiFields.contains(entry.getKey())) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The field `%s` in the JSON string is not defined in the `CreateProjectPayload` properties. JSON: %s",
entry.getKey(), jsonElement.toString()));
entry.getKey(),
jsonElement.toString()));
}
}

Expand All @@ -252,21 +255,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
requiredField, jsonElement.toString()));
requiredField,
jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("containerParentId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("containerParentId").toString()));
}
// ensure the json data is an array
if (!jsonObj.get("members").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `members` to be an array in the JSON string but got `%s`",
jsonObj.get("members").toString()));
}
Expand All @@ -280,6 +287,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/** ErrorResponse */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class ErrorResponse {
public static final String SERIALIZED_NAME_ERROR = "error";

Expand Down Expand Up @@ -235,6 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
.isEmpty()) { // has required fields but JSON element is null
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field(s) %s in ErrorResponse is not found in the empty JSON string",
ErrorResponse.openapiRequiredFields.toString()));
}
Expand All @@ -246,8 +247,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!ErrorResponse.openapiFields.contains(entry.getKey())) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The field `%s` in the JSON string is not defined in the `ErrorResponse` properties. JSON: %s",
entry.getKey(), jsonElement.toString()));
entry.getKey(),
jsonElement.toString()));
}
}

Expand All @@ -256,26 +259,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
requiredField, jsonElement.toString()));
requiredField,
jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("error").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `error` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("error").toString()));
}
if (!jsonObj.get("message").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `message` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("message").toString()));
}
if (!jsonObj.get("path").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `path` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("path").toString()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/** FolderResponse */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
comments = "Generator version: 7.19.0")
public class FolderResponse {
public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId";

Expand Down Expand Up @@ -312,6 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
.isEmpty()) { // has required fields but JSON element is null
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field(s) %s in FolderResponse is not found in the empty JSON string",
FolderResponse.openapiRequiredFields.toString()));
}
Expand All @@ -323,8 +324,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!FolderResponse.openapiFields.contains(entry.getKey())) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The field `%s` in the JSON string is not defined in the `FolderResponse` properties. JSON: %s",
entry.getKey(), jsonElement.toString()));
entry.getKey(),
jsonElement.toString()));
}
}

Expand All @@ -333,26 +336,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
requiredField, jsonElement.toString()));
requiredField,
jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("containerId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `containerId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("containerId").toString()));
}
if (!jsonObj.get("folderId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `folderId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("folderId").toString()));
}
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
Expand Down
Loading