Skip to content

Commit d946f32

Browse files
committed
Merge branch 'main' of https://github.com/Bandwidth/java-sdk into SWI-6496
2 parents 66a54bc + 60c8275 commit d946f32

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
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<URI>** | | [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<URI>** | | |
22-
|**priority** | **PriorityEnum** | | |
22+
|**priority** | **PriorityEnum** | | [optional] |
2323

2424

2525

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ public MessageFailedCallbackMessage priority(PriorityEnum priority) {
342342
/**
343343
* Get priority
344344
* @return priority
345-
*/
346-
@javax.annotation.Nonnull
345+
**/
346+
@javax.annotation.Nullable
347347
public PriorityEnum getPriority() {
348348
return priority;
349349
}
@@ -491,7 +491,6 @@ private String toIndentedString(Object o) {
491491
openapiRequiredFields.add("from");
492492
openapiRequiredFields.add("text");
493493
openapiRequiredFields.add("tag");
494-
openapiRequiredFields.add("priority");
495494
}
496495

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

551552
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ public MessageSendingCallbackMessage priority(PriorityEnum priority) {
342342
/**
343343
* Get priority
344344
* @return priority
345-
*/
346-
@javax.annotation.Nonnull
345+
**/
346+
@javax.annotation.Nullable
347347
public PriorityEnum getPriority() {
348348
return priority;
349349
}
@@ -491,7 +491,6 @@ private String toIndentedString(Object o) {
491491
openapiRequiredFields.add("from");
492492
openapiRequiredFields.add("text");
493493
openapiRequiredFields.add("media");
494-
openapiRequiredFields.add("priority");
495494
}
496495

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

553554
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)