Skip to content

Commit 9c0c718

Browse files
committed
fix spec
1 parent 94da011 commit 9c0c718

File tree

4 files changed

+0
-60
lines changed

4 files changed

+0
-60
lines changed

api/openapi.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7949,7 +7949,6 @@ components:
79497949
- sms
79507950
- mms
79517951
- rcs
7952-
- rcs
79537952
example: sms
79547953
type: string
79557954
productTypeEnum:
@@ -7966,20 +7965,6 @@ components:
79667965
- RBM_CONVERSATIONAL
79677966
example: P2P
79687967
type: string
7969-
productTypeEnum:
7970-
description: The type of product associated with the message.
7971-
enum:
7972-
- LOCAL_A2P
7973-
- P2P
7974-
- SHORT_CODE_REACH
7975-
- TOLL_FREE
7976-
- HOSTED_SHORT_CODE
7977-
- ALPHA_NUMERIC
7978-
- RBM_MEDIA
7979-
- RBM_RICH
7980-
- RBM_CONVERSATIONAL
7981-
example: P2P
7982-
type: string
79837968
fieldError:
79847969
example:
79857970
fieldName: from
@@ -8004,9 +7989,6 @@ components:
80047989
nextPageToken: GL83PD3C
80057990
prevPage: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902
80067991
messages:
8007-
- callingNumberCountryA3: USA
8008-
product: P2P
8009-
sourceTn: "+15554443333"
80107992
- callingNumberCountryA3: USA
80117993
product: P2P
80127994
sourceTn: "+15554443333"
@@ -8015,7 +7997,6 @@ components:
80157997
messageId: 1589228074636lm4k2je7j7jklbn2
80167998
errorCode: 9902
80177999
calledNumberCountryA3: USA
8018-
calledNumberCountryA3: USA
80198000
destinationTn: "+15554442222"
80208001
segmentCount: 1
80218002
messageStatus: RECEIVED
@@ -8028,14 +8009,9 @@ components:
80288009
recipientCount: 1
80298010
campaignClass: T
80308011
bwLatency: 20
8031-
bwLatency: 20
80328012
attachmentCount: 1
80338013
location: 123ID
8034-
location: 123ID
80358014
messageSize: 27
8036-
- callingNumberCountryA3: USA
8037-
product: P2P
8038-
sourceTn: "+15554443333"
80398015
- callingNumberCountryA3: USA
80408016
product: P2P
80418017
sourceTn: "+15554443333"
@@ -8044,7 +8020,6 @@ components:
80448020
messageId: 1589228074636lm4k2je7j7jklbn2
80458021
errorCode: 9902
80468022
calledNumberCountryA3: USA
8047-
calledNumberCountryA3: USA
80488023
destinationTn: "+15554442222"
80498024
segmentCount: 1
80508025
messageStatus: RECEIVED
@@ -8057,10 +8032,8 @@ components:
80578032
recipientCount: 1
80588033
campaignClass: T
80598034
bwLatency: 20
8060-
bwLatency: 20
80618035
attachmentCount: 1
80628036
location: 123ID
8063-
location: 123ID
80648037
messageSize: 27
80658038
totalCount: 100
80668039
properties:
@@ -8079,8 +8052,6 @@ components:
80798052
type: object
80808053
listMessageItem:
80818054
example:
8082-
callingNumberCountryA3: USA
8083-
product: P2P
80848055
callingNumberCountryA3: USA
80858056
product: P2P
80868057
sourceTn: "+15554443333"
@@ -8089,7 +8060,6 @@ components:
80898060
messageId: 1589228074636lm4k2je7j7jklbn2
80908061
errorCode: 9902
80918062
calledNumberCountryA3: USA
8092-
calledNumberCountryA3: USA
80938063
destinationTn: "+15554442222"
80948064
segmentCount: 1
80958065
messageStatus: RECEIVED
@@ -8102,10 +8072,8 @@ components:
81028072
recipientCount: 1
81038073
campaignClass: T
81048074
bwLatency: 20
8105-
bwLatency: 20
81068075
attachmentCount: 1
81078076
location: 123ID
8108-
location: 123ID
81098077
messageSize: 27
81108078
properties:
81118079
messageId:

bandwidth.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,6 @@ components:
17291729
- sms
17301730
- mms
17311731
- rcs
1732-
- rcs
17331732
example: sms
17341733
productTypeEnum:
17351734
type: string
@@ -1745,20 +1744,6 @@ components:
17451744
- RBM_RICH
17461745
- RBM_CONVERSATIONAL
17471746
example: P2P
1748-
productTypeEnum:
1749-
type: string
1750-
description: The type of product associated with the message.
1751-
enum:
1752-
- LOCAL_A2P
1753-
- P2P
1754-
- SHORT_CODE_REACH
1755-
- TOLL_FREE
1756-
- HOSTED_SHORT_CODE
1757-
- ALPHA_NUMERIC
1758-
- RBM_MEDIA
1759-
- RBM_RICH
1760-
- RBM_CONVERSATIONAL
1761-
example: P2P
17621747
fieldError:
17631748
type: object
17641749
properties:

src/main/java/com/bandwidth/sdk/api/MessagesApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import com.bandwidth.sdk.model.MessagesList;
3737
import com.bandwidth.sdk.model.MessagingRequestError;
3838
import com.bandwidth.sdk.model.ProductTypeEnum;
39-
import com.bandwidth.sdk.model.ProductTypeEnum;
4039

4140
import java.lang.reflect.Type;
4241
import java.util.ArrayList;

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -842,18 +842,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
842842
if ((jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) && !jsonObj.get("location").isJsonPrimitive()) {
843843
throw new IllegalArgumentException(String.format("Expected the field `location` to be a primitive type in the JSON string but got `%s`", jsonObj.get("location").toString()));
844844
}
845-
if ((jsonObj.get("callingNumberCountryA3") != null && !jsonObj.get("callingNumberCountryA3").isJsonNull()) && !jsonObj.get("callingNumberCountryA3").isJsonPrimitive()) {
846-
throw new IllegalArgumentException(String.format("Expected the field `callingNumberCountryA3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callingNumberCountryA3").toString()));
847-
}
848-
if ((jsonObj.get("calledNumberCountryA3") != null && !jsonObj.get("calledNumberCountryA3").isJsonNull()) && !jsonObj.get("calledNumberCountryA3").isJsonPrimitive()) {
849-
throw new IllegalArgumentException(String.format("Expected the field `calledNumberCountryA3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("calledNumberCountryA3").toString()));
850-
}
851-
if ((jsonObj.get("product") != null && !jsonObj.get("product").isJsonNull()) && !jsonObj.get("product").isJsonPrimitive()) {
852-
throw new IllegalArgumentException(String.format("Expected the field `product` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product").toString()));
853-
}
854-
if ((jsonObj.get("location") != null && !jsonObj.get("location").isJsonNull()) && !jsonObj.get("location").isJsonPrimitive()) {
855-
throw new IllegalArgumentException(String.format("Expected the field `location` to be a primitive type in the JSON string but got `%s`", jsonObj.get("location").toString()));
856-
}
857845
}
858846

859847
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)