Skip to content

Commit

Permalink
Update OpenAPI Spec & Merge Files API (#139)
Browse files Browse the repository at this point in the history
## Changes
This PR adds recent changes from OpenAPI to the Java SDK. Notably, it
adds support for the Files API. The integration test for this API can
only be run in UC workspaces, so this PR also adds support for UC-only
integration tests at the workspace- and account-level.

## Tests
- [x] New integration test for Files API to verify that it works as
expected.
  • Loading branch information
mgyucht authored Aug 28, 2023
1 parent d716538 commit c1dbcff
Show file tree
Hide file tree
Showing 95 changed files with 3,397 additions and 1,573 deletions.
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
beff621d7b3e1d59244e2e34fc53a496f310e130
be3d4a799362f0d5ddbfeb0a0acdfb91f8736a3b
63 changes: 36 additions & 27 deletions .gitattributes

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ private Response computeResponse(Request in, CloseableHttpResponse response) thr
boolean streamResponse =
in.getHeaders().containsKey("Accept")
&& !APPLICATION_JSON.getMimeType().equals(in.getHeaders().get("Accept"))
&& hs.containsKey("Content-Type")
&& !APPLICATION_JSON.getMimeType().equals(hs.get("Content-Type").get(0));
&& !APPLICATION_JSON
.getMimeType()
.equals(response.getFirstHeader("Content-Type").getValue());
if (streamResponse) {
CustomCloseInputStream inputStream =
new CustomCloseInputStream(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c1dbcff

Please sign in to comment.