Skip to content

Commit 116e765

Browse files
committed
Upgrade Java SDK to spec 1.18.1
1 parent 8c50a3f commit 116e765

File tree

10 files changed

+73
-34
lines changed

10 files changed

+73
-34
lines changed

docs/Group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
|**memberCountSyncedAt** | **OffsetDateTime** | | [optional] |
2626
|**isVerified** | **Boolean** | | [optional] |
2727
|**joinState** | **GroupJoinState** | | [optional] |
28-
|**tags** | **List<String>** | | [optional] |
28+
|**tags** | **List<String>** | | [optional] |
2929
|**transferTargetId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] |
30-
|**galleries** | [**List<GroupGallery>**](GroupGallery.md) | | [optional] |
30+
|**galleries** | [**List<GroupGallery>**](GroupGallery.md) | | [optional] |
3131
|**createdAt** | **OffsetDateTime** | | [optional] |
3232
|**updatedAt** | **OffsetDateTime** | | [optional] |
3333
|**lastPostCreatedAt** | **OffsetDateTime** | | [optional] |

docs/InstanceRegion.md

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

1414
* `JP` (value: `"jp"`)
1515

16+
* `UNKNOWN` (value: `"unknown"`)
17+
1618

1719

docs/UserExists.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Status object representing if a queried user by username or userId exists or not
99
| Name | Type | Description | Notes |
1010
|------------ | ------------- | ------------- | -------------|
1111
|**userExists** | **Boolean** | Status if a user exist with that username or userId. | |
12+
|**nameOk** | **Boolean** | Is the username valid? | |
1213

1314

1415

docs/UserSubscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
|**tier** | **BigDecimal** | | |
1919
|**active** | **Boolean** | | |
2020
|**status** | **TransactionStatus** | | |
21-
|**starts** | **OffsetDateTime** | | [optional] |
21+
|**starts** | **String** | | [optional] |
2222
|**expires** | **OffsetDateTime** | | |
2323
|**createdAt** | **OffsetDateTime** | | |
2424
|**updatedAt** | **OffsetDateTime** | | |

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"@openapitools/openapi-generator-cli": "^2.13.4"
3+
"@openapitools/openapi-generator-cli": "^2.13.5"
44
}
55
}

src/main/java/io/github/vrchatapi/model/Group.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,11 @@ public Group addTagsItem(String tagsItem) {
619619
}
620620

621621
/**
622-
*
622+
* Get tags
623623
* @return tags
624624
**/
625625
@javax.annotation.Nullable
626-
@ApiModelProperty(value = " ")
626+
@ApiModelProperty(value = "")
627627

628628
public List<String> getTags() {
629629
return tags;
@@ -673,11 +673,11 @@ public Group addGalleriesItem(GroupGallery galleriesItem) {
673673
}
674674

675675
/**
676-
*
676+
* Get galleries
677677
* @return galleries
678678
**/
679679
@javax.annotation.Nullable
680-
@ApiModelProperty(value = " ")
680+
@ApiModelProperty(value = "")
681681

682682
public List<GroupGallery> getGalleries() {
683683
return galleries;

src/main/java/io/github/vrchatapi/model/InstanceRegion.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public enum InstanceRegion {
3535

3636
EU("eu"),
3737

38-
JP("jp");
38+
JP("jp"),
39+
40+
UNKNOWN("unknown");
3941

4042
private String value;
4143

src/main/java/io/github/vrchatapi/model/UserExists.java

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ public class UserExists {
5454
@SerializedName(SERIALIZED_NAME_USER_EXISTS)
5555
private Boolean userExists = false;
5656

57+
public static final String SERIALIZED_NAME_NAME_OK = "nameOk";
58+
@SerializedName(SERIALIZED_NAME_NAME_OK)
59+
private Boolean nameOk = false;
60+
5761
public UserExists() {
5862
}
5963

@@ -80,6 +84,29 @@ public void setUserExists(Boolean userExists) {
8084
}
8185

8286

87+
public UserExists nameOk(Boolean nameOk) {
88+
89+
this.nameOk = nameOk;
90+
return this;
91+
}
92+
93+
/**
94+
* Is the username valid?
95+
* @return nameOk
96+
**/
97+
@javax.annotation.Nonnull
98+
@ApiModelProperty(required = true, value = "Is the username valid?")
99+
100+
public Boolean getNameOk() {
101+
return nameOk;
102+
}
103+
104+
105+
public void setNameOk(Boolean nameOk) {
106+
this.nameOk = nameOk;
107+
}
108+
109+
83110

84111
@Override
85112
public boolean equals(Object o) {
@@ -90,19 +117,21 @@ public boolean equals(Object o) {
90117
return false;
91118
}
92119
UserExists userExists = (UserExists) o;
93-
return Objects.equals(this.userExists, userExists.userExists);
120+
return Objects.equals(this.userExists, userExists.userExists) &&
121+
Objects.equals(this.nameOk, userExists.nameOk);
94122
}
95123

96124
@Override
97125
public int hashCode() {
98-
return Objects.hash(userExists);
126+
return Objects.hash(userExists, nameOk);
99127
}
100128

101129
@Override
102130
public String toString() {
103131
StringBuilder sb = new StringBuilder();
104132
sb.append("class UserExists {\n");
105133
sb.append(" userExists: ").append(toIndentedString(userExists)).append("\n");
134+
sb.append(" nameOk: ").append(toIndentedString(nameOk)).append("\n");
106135
sb.append("}");
107136
return sb.toString();
108137
}
@@ -126,10 +155,12 @@ private String toIndentedString(Object o) {
126155
// a set of all properties/fields (JSON key names)
127156
openapiFields = new HashSet<String>();
128157
openapiFields.add("userExists");
158+
openapiFields.add("nameOk");
129159

130160
// a set of required properties/fields (JSON key names)
131161
openapiRequiredFields = new HashSet<String>();
132162
openapiRequiredFields.add("userExists");
163+
openapiRequiredFields.add("nameOk");
133164
}
134165

135166
/**

src/main/java/io/github/vrchatapi/model/UserSubscription.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public class UserSubscription {
9898

9999
public static final String SERIALIZED_NAME_STARTS = "starts";
100100
@SerializedName(SERIALIZED_NAME_STARTS)
101-
private OffsetDateTime starts;
101+
private String starts;
102102

103103
public static final String SERIALIZED_NAME_EXPIRES = "expires";
104104
@SerializedName(SERIALIZED_NAME_EXPIRES)
@@ -353,7 +353,7 @@ public void setStatus(TransactionStatus status) {
353353
}
354354

355355

356-
public UserSubscription starts(OffsetDateTime starts) {
356+
public UserSubscription starts(String starts) {
357357

358358
this.starts = starts;
359359
return this;
@@ -364,14 +364,14 @@ public UserSubscription starts(OffsetDateTime starts) {
364364
* @return starts
365365
**/
366366
@javax.annotation.Nullable
367-
@ApiModelProperty(example = "2022-03-04T00:00Z", value = "")
367+
@ApiModelProperty(value = "")
368368

369-
public OffsetDateTime getStarts() {
369+
public String getStarts() {
370370
return starts;
371371
}
372372

373373

374-
public void setStarts(OffsetDateTime starts) {
374+
public void setStarts(String starts) {
375375
this.starts = starts;
376376
}
377377

@@ -387,7 +387,7 @@ public UserSubscription expires(OffsetDateTime expires) {
387387
* @return expires
388388
**/
389389
@javax.annotation.Nonnull
390-
@ApiModelProperty(example = "2022-03-04T00:00Z", required = true, value = "")
390+
@ApiModelProperty(required = true, value = "")
391391

392392
public OffsetDateTime getExpires() {
393393
return expires;
@@ -410,7 +410,7 @@ public UserSubscription createdAt(OffsetDateTime createdAt) {
410410
* @return createdAt
411411
**/
412412
@javax.annotation.Nonnull
413-
@ApiModelProperty(example = "2022-03-04T00:00Z", required = true, value = "")
413+
@ApiModelProperty(required = true, value = "")
414414

415415
public OffsetDateTime getCreatedAt() {
416416
return createdAt;
@@ -433,7 +433,7 @@ public UserSubscription updatedAt(OffsetDateTime updatedAt) {
433433
* @return updatedAt
434434
**/
435435
@javax.annotation.Nonnull
436-
@ApiModelProperty(example = "2022-03-04T00:00Z", required = true, value = "")
436+
@ApiModelProperty(required = true, value = "")
437437

438438
public OffsetDateTime getUpdatedAt() {
439439
return updatedAt;
@@ -648,6 +648,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
648648
if (!jsonObj.get("description").isJsonPrimitive()) {
649649
throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString()));
650650
}
651+
if ((jsonObj.get("starts") != null && !jsonObj.get("starts").isJsonNull()) && !jsonObj.get("starts").isJsonPrimitive()) {
652+
throw new IllegalArgumentException(String.format("Expected the field `starts` to be a primitive type in the JSON string but got `%s`", jsonObj.get("starts").toString()));
653+
}
651654
// ensure the required json array is present
652655
if (jsonObj.get("licenseGroups") == null) {
653656
throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");

0 commit comments

Comments
 (0)