Skip to content

Commit a13dec5

Browse files
committed
Fix runtime issue with component deserialization
The `withLabel` property of configurable props is conflicting with the `label` property also present in the same schema: ``` Caused by: com.fasterxml.jackson.databind.JsonMappingException: Conflicting/ambiguous property name definitions (implicit name 'label'): found multiple explicit names: [withLabel, label]... ``` This change fixes the issue temporarily by ignoring the `withLabel` setter during the payload deserialization.
1 parent 03c680a commit a13dec5

28 files changed

+56
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add the dependency in your `pom.xml` file:
4040
<dependency>
4141
<groupId>com.pipedream</groupId>
4242
<artifactId>pipedream</artifactId>
43-
<version>1.1.2</version>
43+
<version>1.1.3</version>
4444
</dependency>
4545
```
4646

@@ -119,7 +119,7 @@ try{
119119

120120
### Custom Client
121121

122-
This SDK is built to work with any instance of `OkHttpClient`. By default, if no client is provided, the SDK will construct one.
122+
This SDK is built to work with any instance of `OkHttpClient`. By default, if no client is provided, the SDK will construct one.
123123
However, you can pass your own client like so:
124124

125125
```java

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ java {
4949

5050
group = 'com.pipedream'
5151

52-
version = '1.1.2'
52+
version = '1.1.3'
5353

5454
jar {
5555
dependsOn(":generatePomFileForMavenPublication")
@@ -80,7 +80,7 @@ publishing {
8080
maven(MavenPublication) {
8181
groupId = 'com.pipedream'
8282
artifactId = 'pipedream'
83-
version = '1.1.2'
83+
version = '1.1.3'
8484
from components.java
8585
pom {
8686
name = 'pipedream'

src/main/java/com/pipedream/api/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private ClientOptions(
3535
this.headers.putAll(headers);
3636
this.headers.putAll(new HashMap<String, String>() {
3737
{
38-
put("User-Agent", "com.pipedream:pipedream/1.1.2");
38+
put("User-Agent", "com.pipedream:pipedream/1.1.3");
3939
put("X-Fern-Language", "JAVA");
4040
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
41-
put("X-Fern-SDK-Version", "1.1.2");
41+
put("X-Fern-SDK-Version", "1.1.3");
4242
}
4343
});
4444
this.headerSuppliers = headerSuppliers;

src/main/java/com/pipedream/api/types/ConfigurablePropAirtableBaseId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -377,6 +378,7 @@ public _FinalStage appProp(@NotNull String appProp) {
377378
* @return Reference to {@code this} so that method calls can be chained together.
378379
*/
379380
@java.lang.Override
381+
@JsonIgnore
380382
public _FinalStage withLabel(Boolean withLabel) {
381383
this.withLabel = Optional.ofNullable(withLabel);
382384
return this;

src/main/java/com/pipedream/api/types/ConfigurablePropAirtableFieldId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -377,6 +378,7 @@ public _FinalStage tableIdProp(@NotNull String tableIdProp) {
377378
* @return Reference to {@code this} so that method calls can be chained together.
378379
*/
379380
@java.lang.Override
381+
@JsonIgnore
380382
public _FinalStage withLabel(Boolean withLabel) {
381383
this.withLabel = Optional.ofNullable(withLabel);
382384
return this;

src/main/java/com/pipedream/api/types/ConfigurablePropAirtableTableId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -377,6 +378,7 @@ public _FinalStage baseIdProp(@NotNull String baseIdProp) {
377378
* @return Reference to {@code this} so that method calls can be chained together.
378379
*/
379380
@java.lang.Override
381+
@JsonIgnore
380382
public _FinalStage withLabel(Boolean withLabel) {
381383
this.withLabel = Optional.ofNullable(withLabel);
382384
return this;

src/main/java/com/pipedream/api/types/ConfigurablePropAirtableViewId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -377,6 +378,7 @@ public _FinalStage tableIdProp(@NotNull String tableIdProp) {
377378
* @return Reference to {@code this} so that method calls can be chained together.
378379
*/
379380
@java.lang.Override
381+
@JsonIgnore
380382
public _FinalStage withLabel(Boolean withLabel) {
381383
this.withLabel = Optional.ofNullable(withLabel);
382384
return this;

src/main/java/com/pipedream/api/types/ConfigurablePropAlert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -408,6 +409,7 @@ public _FinalStage alertType(Optional<ConfigurablePropAlertType> alertType) {
408409
* @return Reference to {@code this} so that method calls can be chained together.
409410
*/
410411
@java.lang.Override
412+
@JsonIgnore
411413
public _FinalStage withLabel(Boolean withLabel) {
412414
this.withLabel = Optional.ofNullable(withLabel);
413415
return this;

src/main/java/com/pipedream/api/types/ConfigurablePropAny.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -404,6 +405,7 @@ public _FinalStage default_(Optional<Object> default_) {
404405
* @return Reference to {@code this} so that method calls can be chained together.
405406
*/
406407
@java.lang.Override
408+
@JsonIgnore
407409
public _FinalStage withLabel(Boolean withLabel) {
408410
this.withLabel = Optional.ofNullable(withLabel);
409411
return this;

src/main/java/com/pipedream/api/types/ConfigurablePropApp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonAnyGetter;
77
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
910
import com.fasterxml.jackson.annotation.JsonInclude;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -377,6 +378,7 @@ public _FinalStage app(@NotNull String app) {
377378
* @return Reference to {@code this} so that method calls can be chained together.
378379
*/
379380
@java.lang.Override
381+
@JsonIgnore
380382
public _FinalStage withLabel(Boolean withLabel) {
381383
this.withLabel = Optional.ofNullable(withLabel);
382384
return this;

0 commit comments

Comments
 (0)