Skip to content

Commit fc3529a

Browse files
authored
Merge pull request #29 from FreeClimbAPI/VCSWP-18939
Resolve VCSWP-18939 (Increment patch version for package release)
2 parents 667630a + 7fe335b commit fc3529a

File tree

8 files changed

+38
-13
lines changed

8 files changed

+38
-13
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="5.1.1"></a>
13+
14+
## [5.1.1] 2023-02-14
15+
16+
### Changed
17+
18+
- Application Request model allows for null values
19+
1220
<a name="5.1.0"></a>
1321

1422
## [5.1.0] 2023-01-06

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.github.freeclimbapi</groupId>
4242
<artifactId>freeclimb-java-client</artifactId>
43-
<version>5.1.0</version>
43+
<version>5.1.1</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.github.freeclimbapi:freeclimb-java-client:5.1.0"
59+
implementation "com.github.freeclimbapi:freeclimb-java-client:5.1.1"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
* `target/freeclimb-java-client-5.1.0.jar`
73+
* `target/freeclimb-java-client-5.1.1.jar`
7474
* `target/lib/*.jar`
7575

7676
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.github.freeclimbapi'
7-
version = '5.1.0'
7+
version = '5.1.1'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.github.freeclimbapi",
44
name := "freeclimb-java-client",
5-
version := "5.1.0",
5+
version := "5.1.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

openapi.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,27 +1379,33 @@
13791379
},
13801380
"voiceUrl": {
13811381
"type": "string",
1382-
"description": "The URL that FreeClimb will request when an inbound call arrives on a phone number assigned to this application. Used only for inbound calls."
1382+
"description": "The URL that FreeClimb will request when an inbound call arrives on a phone number assigned to this application. Used only for inbound calls.",
1383+
"nullable": true
13831384
},
13841385
"voiceFallbackUrl": {
13851386
"type": "string",
1386-
"description": "The URL that FreeClimb will request if it times out waiting for a response from the voiceUrl. Used for inbound calls only. Note: A PerCL response is expected to control the inbound call."
1387+
"description": "The URL that FreeClimb will request if it times out waiting for a response from the voiceUrl. Used for inbound calls only. Note: A PerCL response is expected to control the inbound call.",
1388+
"nullable": true
13871389
},
13881390
"callConnectUrl": {
13891391
"type": "string",
1390-
"description": "The URL that FreeClimb will request when an outbound call request is complete. Used for outbound calls only. Note: A PerCL response is expected if the outbound call is connected (status=InProgress) to control the call."
1392+
"description": "The URL that FreeClimb will request when an outbound call request is complete. Used for outbound calls only. Note: A PerCL response is expected if the outbound call is connected (status=InProgress) to control the call.",
1393+
"nullable": true
13911394
},
13921395
"statusCallbackUrl": {
13931396
"type": "string",
1394-
"description": "The URL that FreeClimb will request to pass call status (such as call ended) to the application. Note: This is a notification only; any PerCL returned will be ignored."
1397+
"description": "The URL that FreeClimb will request to pass call status (such as call ended) to the application. Note: This is a notification only; any PerCL returned will be ignored.",
1398+
"nullable": true
13951399
},
13961400
"smsUrl": {
13971401
"type": "string",
1398-
"description": "The URL that FreeClimb will request when a phone number assigned to this application receives an incoming SMS message. Used for inbound SMS only. Note: Any PerCL returned will be ignored."
1402+
"description": "The URL that FreeClimb will request when a phone number assigned to this application receives an incoming SMS message. Used for inbound SMS only. Note: Any PerCL returned will be ignored.",
1403+
"nullable": true
13991404
},
14001405
"smsFallbackUrl": {
14011406
"type": "string",
1402-
"description": "The URL that FreeClimb will request if it times out waiting for a response from the smsUrl. Used for inbound SMS only. Note: Any PerCL returned will be ignored."
1407+
"description": "The URL that FreeClimb will request if it times out waiting for a response from the smsUrl. Used for inbound SMS only. Note: Any PerCL returned will be ignored.",
1408+
"nullable": true
14031409
}
14041410
}
14051411
},

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>freeclimb-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>freeclimb-java-client</name>
8-
<version>5.1.0</version>
8+
<version>5.1.1</version>
99
<url>https://github.com/freeclimbapi/java-sdk</url>
1010
<description>FreeClimb Java Client</description>
1111
<scm>

src/main/java/com/github/freeclimbapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void init() {
131131
json = new JSON();
132132

133133
// Set default User-Agent.
134-
setUserAgent("OpenAPI-Generator/5.1.0/java");
134+
setUserAgent("OpenAPI-Generator/5.1.1/java");
135135

136136
authentications = new HashMap<String, Authentication>();
137137
}

src/main/java/com/github/freeclimbapi/models/ApplicationRequest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,22 @@ public boolean equals(Object o) {
249249
Objects.equals(this.smsFallbackUrl, applicationRequest.smsFallbackUrl);
250250
}
251251

252+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
253+
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
254+
}
255+
252256
@Override
253257
public int hashCode() {
254258
return Objects.hash(alias, voiceUrl, voiceFallbackUrl, callConnectUrl, statusCallbackUrl, smsUrl, smsFallbackUrl);
255259
}
256260

261+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
262+
if (a == null) {
263+
return 1;
264+
}
265+
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
266+
}
267+
257268
@Override
258269
public String toString() {
259270
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)