Skip to content

Commit 9f32b61

Browse files
committed
feat!: generate from the OpenAPI 3.1 bundle
1 parent 63169d4 commit 9f32b61

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343

4444
- uses: vrchatapi/specification/.github/actions/download@main
4545
with:
46-
bundle: openapi-3.0.yaml
46+
bundle: openapi-3.1.yaml
4747

4848
- if: env.VERSION_POSTPEND != ''
49-
run: yq '--inplace' ".info.version |= \"${PASSED_VERSION}${VERSION_POSTPEND}\"" openapi-3.0.yaml
49+
run: yq '--inplace' ".info.version |= \"${PASSED_VERSION}${VERSION_POSTPEND}\"" openapi-3.1.yaml
5050

51-
- run: bash ./generate.sh openapi-3.0.yaml
51+
- run: bash ./generate.sh openapi-3.1.yaml
5252

5353
- uses: actions/upload-artifact@v7
5454
with:
@@ -93,7 +93,7 @@ jobs:
9393
with:
9494
name: java-generated
9595

96-
- run: rm -f openapi-3.0.yaml
96+
- run: rm -f openapi-3.1.yaml
9797

9898
- uses: JamesIves/github-pages-deploy-action@v4.9.0
9999
with:

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ catch (IllegalArgumentException e){
8383
}
8484
}
8585

86-
CurrentUser user = authApi.getCurrentUser();
86+
CurrentUser user = authApi.getCurrentUser().getCurrentUser();
8787
System.out.println("Logged in as: " + user.getDisplayName());
8888
```
8989

‎examples/src/main/java/io/github/vrchatapi/demo/CookiesLoad.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void main(String[] args) throws ApiException {
1818
defaultClient.setUserAgent("ExampleProgram/0.0.1 my@email.com");
1919
defaultClient.addDefaultHeader("Cookie", "auth=[AUTH_COOKIE_HERE]; twoFactorAuth=[TWO_FACTOR_AUTH_COOKIE_HERE]");
2020

21-
CurrentUser user = authApi.getCurrentUser();
21+
CurrentUser user = authApi.getCurrentUser().getCurrentUser();
2222
System.out.println("Logged in as: " + user.getDisplayName());
2323
}
2424

‎examples/src/main/java/io/github/vrchatapi/demo/CookiesStore.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void main(String[] args) throws ApiException, IOException {
4141
authApi.verify2FA(code);
4242
}
4343
}
44-
CurrentUser user = authApi.getCurrentUser();
44+
CurrentUser user = authApi.getCurrentUser().getCurrentUser();
4545
System.out.println("Logged in as: " + user.getDisplayName());
4646

4747
List<Cookie> cookies = defaultClient.getHttpClient().cookieJar().loadForRequest(new okhttp3.HttpUrl.Builder().scheme("http").host("api.vrchat.cloud").build());

‎examples/src/main/java/io/github/vrchatapi/demo/Demo.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static void main(String[] args) throws ApiException, IOException {
4444
authApi.verify2FA(code);
4545
}
4646
}
47-
CurrentUser user = authApi.getCurrentUser();
47+
CurrentUser user = authApi.getCurrentUser().getCurrentUser();
4848
System.out.println("Logged in as: " + user.getDisplayName());
4949
}
5050

0 commit comments

Comments
 (0)