Skip to content

Commit 60c8275

Browse files
Generate SDK with OpenAPI Generator Version 7.6.0 (#156)
Co-authored-by: DX-Bandwidth <dx@bandwidth.com>
1 parent 1f8041f commit 60c8275

6 files changed

+12
-14
lines changed

api/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6610,7 +6610,6 @@ components:
66106610
- id
66116611
- media
66126612
- owner
6613-
- priority
66146613
- segmentCount
66156614
- text
66166615
- time
@@ -6782,7 +6781,6 @@ components:
67826781
- from
67836782
- id
67846783
- owner
6785-
- priority
67866784
- segmentCount
67876785
- tag
67886786
- text

bandwidth.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,6 @@ components:
18621862
- from
18631863
- text
18641864
- media
1865-
- priority
18661865
messageDeliveredCallback:
18671866
description: Message Delivered Callback
18681867
type: object
@@ -2035,7 +2034,6 @@ components:
20352034
- from
20362035
- text
20372036
- tag
2038-
- priority
20392037
callbackMethodEnum:
20402038
type: string
20412039
nullable: true

docs/MessageFailedCallbackMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Message Failed Callback Message Schema
1919
|**text** | **String** | | |
2020
|**tag** | **String** | | |
2121
|**media** | **List&lt;URI&gt;** | | [optional] |
22-
|**priority** | **PriorityEnum** | | |
22+
|**priority** | **PriorityEnum** | | [optional] |
2323

2424

2525

docs/MessageSendingCallbackMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Message Sending Callback Message Schema
1919
|**text** | **String** | | |
2020
|**tag** | **String** | | [optional] |
2121
|**media** | **List&lt;URI&gt;** | | |
22-
|**priority** | **PriorityEnum** | | |
22+
|**priority** | **PriorityEnum** | | [optional] |
2323

2424

2525

src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public MessageFailedCallbackMessage priority(PriorityEnum priority) {
344344
* Get priority
345345
* @return priority
346346
**/
347-
@javax.annotation.Nonnull
347+
@javax.annotation.Nullable
348348
public PriorityEnum getPriority() {
349349
return priority;
350350
}
@@ -492,7 +492,6 @@ private String toIndentedString(Object o) {
492492
openapiRequiredFields.add("from");
493493
openapiRequiredFields.add("text");
494494
openapiRequiredFields.add("tag");
495-
openapiRequiredFields.add("priority");
496495
}
497496

498497
/**
@@ -545,8 +544,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
545544
if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) {
546545
throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString()));
547546
}
548-
// validate the required field `priority`
549-
PriorityEnum.validateJsonElement(jsonObj.get("priority"));
547+
// validate the optional field `priority`
548+
if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) {
549+
PriorityEnum.validateJsonElement(jsonObj.get("priority"));
550+
}
550551
}
551552

552553
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public MessageSendingCallbackMessage priority(PriorityEnum priority) {
344344
* Get priority
345345
* @return priority
346346
**/
347-
@javax.annotation.Nonnull
347+
@javax.annotation.Nullable
348348
public PriorityEnum getPriority() {
349349
return priority;
350350
}
@@ -492,7 +492,6 @@ private String toIndentedString(Object o) {
492492
openapiRequiredFields.add("from");
493493
openapiRequiredFields.add("text");
494494
openapiRequiredFields.add("media");
495-
openapiRequiredFields.add("priority");
496495
}
497496

498497
/**
@@ -547,8 +546,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
547546
} else if (!jsonObj.get("media").isJsonArray()) {
548547
throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString()));
549548
}
550-
// validate the required field `priority`
551-
PriorityEnum.validateJsonElement(jsonObj.get("priority"));
549+
// validate the optional field `priority`
550+
if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) {
551+
PriorityEnum.validateJsonElement(jsonObj.get("priority"));
552+
}
552553
}
553554

554555
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)