Skip to content

Commit 59f0b9c

Browse files
authored
fix: Remove VerificationRequest brand length (#578)
1 parent 0e1659f commit 59f0b9c

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
# [8.20.1] - 2025-03-20
6+
- Removed `brand` length limit in Verify v2 request
7+
58
# [8.20.0] - 2025-03-19
69
- Added `quantizationParameter` to Video Archive
710
- Fixed custom event type parsing and creation in Conversation API

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.vonage</groupId>
77
<artifactId>server-sdk</artifactId>
8-
<version>8.20.0</version>
8+
<version>8.20.1</version>
99

1010
<name>Vonage Java Server SDK</name>
1111
<description>Java client for Vonage APIs</description>

src/main/java/com/vonage/client/HttpWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
public class HttpWrapper {
3838
private static final String
3939
CLIENT_NAME = "vonage-java-sdk",
40-
CLIENT_VERSION = "8.20.0",
40+
CLIENT_VERSION = "8.20.1",
4141
JAVA_VERSION = System.getProperty("java.version"),
4242
USER_AGENT = String.format("%s/%s java/%s", CLIENT_NAME, CLIENT_VERSION, JAVA_VERSION);
4343

src/main/java/com/vonage/client/verify2/VerificationRequest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ public class VerificationRequest implements Jsonable {
5050
if ((brand = builder.brand) == null || brand.trim().isEmpty()) {
5151
throw new IllegalArgumentException("Brand name is required.");
5252
}
53-
if (brand.length() > 16) {
54-
throw new IllegalArgumentException("Brand cannot exceed 16 characters in length.");
55-
}
5653
if ((channelTimeout = builder.timeout) != null && (channelTimeout < 15 || channelTimeout > 900)) {
5754
throw new IllegalArgumentException("Delivery wait timeout must be between 15 and 900 seconds.");
5855
}

src/test/java/com/vonage/client/verify2/VerificationRequestTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ public void testInvalidBrand() {
169169
assertThrows(IllegalArgumentException.class, builder::build);
170170
builder.brand(" ");
171171
assertThrows(IllegalArgumentException.class, builder::build);
172-
assertEquals(16, builder.brand("ABCDEFGHIJKLMNOP").build().getBrand().length());
173-
assertEquals(17, builder.brand(builder.brand + 'Q').brand.length());
174-
assertThrows(IllegalArgumentException.class, builder::build);
172+
assertEquals(17, builder.brand("ABCDEFGHIJKLMNOPQ").build().getBrand().length());
175173
}
176174
}
177175

0 commit comments

Comments
 (0)