Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2024-05-14 00:05:46 +00:00
parent 96bbb44214
commit 593f856fd1
2 changed files with 12 additions and 8 deletions
@@ -25,14 +25,14 @@ public class IssueLabelsOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("labels")
private List<Long> labels = null;
private List<Object> labels = null;
public IssueLabelsOption labels(List<Long> labels) {
public IssueLabelsOption labels(List<Object> labels) {
this.labels = labels;
return this;
}
public IssueLabelsOption addLabelsItem(Long labelsItem) {
public IssueLabelsOption addLabelsItem(Object labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList<>();
}
@@ -41,16 +41,20 @@ public class IssueLabelsOption implements Serializable {
}
/**
* list of label IDs
* Labels can be a list of integers representing label IDs or a list of strings representing label
* names
*
* @return labels
*/
@Schema(description = "list of label IDs")
public List<Long> getLabels() {
@Schema(
description =
"Labels can be a list of integers representing label IDs or a list of strings"
+ " representing label names")
public List<Object> getLabels() {
return labels;
}
public void setLabels(List<Long> labels) {
public void setLabels(List<Object> labels) {
this.labels = labels;
}