Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
- main

env:
SPEAKEASY_VERSION: v2.959.1
SPEAKEASY_VERSION: v2.965.1

jobs:
unit-test:

Check warning on line 15 in .github/workflows/unit-tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

unit-tests.yml:15: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -22,8 +22,8 @@
fail-fast: false
name: unit-test (${{matrix.java}})
steps:
- uses: actions/checkout@v4

Check failure on line 25 in .github/workflows/unit-tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 25 in .github/workflows/unit-tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

unit-tests.yml:25: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: actions/setup-java@v4

Check failure on line 26 in .github/workflows/unit-tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 26 in .github/workflows/unit-tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

unit-tests.yml:26: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
distribution: 'temurin'
java-version: ${{matrix.java}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CancelInteractionByIdClientError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CancelInteractionByIdServerError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CreateInteractionClientError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CreateInteractionServerError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public DeleteInteractionClientError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public DeleteInteractionServerError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public GetInteractionByIdClientError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public GetInteractionByIdServerError(
HttpResponse<?> rawResponse,
@Nullable Data data,
@Nullable Throwable deserializationException) {
super("API error occurred", code, body, rawResponse, null);
super(Utils.valueOrElse(Optional.ofNullable(data).map(v0 -> Utils.valueOrNull(v0.error())).map(v1 -> Utils.valueOrNull(v1.message())).orElse(null), "API error occurred"), code, body, rawResponse, null);
this.data = data;
this.deserializationException = deserializationException;
}
Expand Down
Loading