Skip to content

Commit 72e86a6

Browse files
committed
enriching model annotation metadata with @JsonProperty and @jsonformat where appropriate
1 parent 90a8a90 commit 72e86a6

File tree

174 files changed

+5130
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+5130
-36
lines changed

gitlab4j-models/src/main/java/org/gitlab4j/api/models/AbstractEpic.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,60 +35,117 @@ public String toString() {
3535
}
3636
}
3737

38+
/**
39+
* The internal identifier of the parent epic.
40+
*/
3841
@JsonProperty("parent_iid")
3942
private Long parentIid;
4043

44+
/**
45+
* The description of the epic.
46+
*/
4147
@JsonProperty("description")
4248
private String description;
4349

50+
/**
51+
* The state of the epic (e.g., open, closed).
52+
*/
4453
@JsonProperty("state")
4554
private EpicState state;
4655

56+
/**
57+
* The web URL of the epic.
58+
*/
4759
@JsonProperty("web_url")
4860
private String webUrl;
4961

62+
/**
63+
* The references associated with the epic.
64+
*/
5065
@JsonProperty("references")
5166
private References references;
5267

68+
/**
69+
* The author of the epic.
70+
*/
5371
@JsonProperty("author")
5472
private Author author;
5573

74+
/**
75+
* The list of labels associated with the epic.
76+
*/
5677
@JsonProperty("labels")
5778
private List<String> labels;
5879

80+
/**
81+
* The start date of the epic.
82+
* Expected in format "yyyy-MM-dd".
83+
*/
5984
@JsonProperty("start_date")
6085
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
6186
private Date startDate;
6287

88+
/**
89+
* The due date of the epic.
90+
* Expected in format "yyyy-MM-dd".
91+
*/
6392
@JsonProperty("due_date")
6493
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
6594
private Date dueDate;
6695

96+
/**
97+
* The end date of the epic.
98+
* Expected in format "yyyy-MM-dd".
99+
*/
67100
@JsonProperty("end_date")
68101
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
69102
private Date endDate;
70103

104+
/**
105+
* The date when the epic was created.
106+
* Expected in ISO 8601 format (2019-03-15T08:00:00Z).
107+
*/
71108
@JsonProperty("created_at")
72109
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
73110
private Date createdAt;
74111

112+
/**
113+
* The date when the epic was last updated.
114+
* Expected in ISO 8601 format (2019-03-15T08:00:00Z).
115+
*/
75116
@JsonProperty("updated_at")
76117
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
77118
private Date updatedAt;
78119

120+
/**
121+
* The date when the epic was closed.
122+
* Expected in ISO 8601 format (2019-03-15T08:00:00Z).
123+
*/
79124
@JsonProperty("closed_at")
80125
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
81126
private Date closedAt;
82127

128+
/**
129+
* The number of downvotes for the epic.
130+
*/
83131
@JsonProperty("downvotes")
84132
private Integer downvotes;
85133

134+
/**
135+
* The number of upvotes for the epic.
136+
*/
86137
@JsonProperty("upvotes")
87138
private Integer upvotes;
88139

140+
/**
141+
* The color associated with the epic.
142+
*/
89143
@JsonProperty("color")
90144
private String color;
91145

146+
/**
147+
* The links associated with the epic.
148+
*/
92149
@JsonProperty("_links")
93150
private Map<String, String> links;
94151

gitlab4j-models/src/main/java/org/gitlab4j/api/models/AbstractGroup.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,39 @@
1111
public abstract class AbstractGroup<G extends AbstractGroup<G>> implements Serializable {
1212
private static final long serialVersionUID = 1L;
1313

14+
/**
15+
* The unique identifier of the group.
16+
*/
1417
@JsonProperty("id")
1518
private Long id;
1619

20+
/**
21+
* The name of the group.
22+
*/
1723
@JsonProperty("name")
1824
private String name;
1925

26+
/**
27+
* The avatar URL associated with the group.
28+
*/
2029
@JsonProperty("avatar_url")
2130
private String avatarUrl;
2231

32+
/**
33+
* The web URL of the group.
34+
*/
2335
@JsonProperty("web_url")
2436
private String webUrl;
2537

38+
/**
39+
* The full name of the group.
40+
*/
2641
@JsonProperty("full_name")
2742
private String fullName;
2843

44+
/**
45+
* The full path of the group.
46+
*/
2947
@JsonProperty("full_path")
3048
private String fullPath;
3149

gitlab4j-models/src/main/java/org/gitlab4j/api/models/AbstractIssue.java

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,121 +46,239 @@ public String toString() {
4646
}
4747
}
4848

49+
/**
50+
* The assignee associated with the issue.
51+
*/
4952
@JsonProperty("assignee")
5053
private Assignee assignee;
5154

55+
/**
56+
* The list of assignees associated with the issue.
57+
*/
5258
@JsonProperty("assignees")
5359
private List<Assignee> assignees;
5460

61+
/**
62+
* The author of the issue.
63+
*/
5564
@JsonProperty("author")
5665
private Author author;
5766

67+
/**
68+
* Indicates whether the issue is confidential.
69+
*/
5870
@JsonProperty("confidential")
5971
private Boolean confidential;
6072

73+
/**
74+
* The date when the issue was created.
75+
* Expected in ISO 8601 format (2019-03-15T08:00:00Z).
76+
*/
6177
@JsonProperty("created_at")
6278
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
6379
private Date createdAt;
6480

81+
/**
82+
* The date when the issue was last updated.
83+
* Expected in ISO 8601 format (2019-03-15T08:00:00Z).
84+
*/
6585
@JsonProperty("updated_at")
6686
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
6787
private Date updatedAt;
6888

89+
/**
90+
* The date when the issue was closed.
91+
* Expected in ISO 8601 format (2019-03-15T08:00:00Z).
92+
*/
6993
@JsonProperty("closed_at")
7094
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssXXX")
7195
private Date closedAt;
7296

97+
/**
98+
* The user who closed the issue.
99+
*/
73100
@JsonProperty("closed_by")
74101
private User closedBy;
75102

103+
/**
104+
* The description of the issue.
105+
*/
76106
@JsonProperty("description")
77107
private String description;
78108

109+
/**
110+
* The due date of the issue.
111+
* Expected in format "yyyy-MM-dd".
112+
*/
79113
@JsonProperty("due_date")
80114
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
81115
private Date dueDate;
82116

117+
/**
118+
* The actual ID of the issue.
119+
*/
83120
@JsonProperty("id")
84121
private ValueNode actualId;
85122

123+
/**
124+
* The external ID of the issue (ignored during serialization).
125+
*/
86126
@JsonIgnore
87127
private String externalId;
88128

129+
/**
130+
* The internal ID of the issue (ignored during serialization).
131+
*/
89132
@JsonIgnore
90133
private Long id;
91134

135+
/**
136+
* The internal identifier for the issue.
137+
*/
92138
@JsonProperty("iid")
93139
private Long iid;
94140

141+
/**
142+
* The labels associated with the issue.
143+
*/
95144
@JsonProperty("labels")
96145
private List<String> labels;
97146

147+
/**
148+
* The milestone associated with the issue.
149+
*/
98150
@JsonProperty("milestone")
99151
private Milestone milestone;
100152

153+
/**
154+
* The project ID associated with the issue.
155+
*/
101156
@JsonProperty("project_id")
102157
private Long projectId;
103158

159+
/**
160+
* The state of the issue (e.g., open, closed).
161+
*/
104162
@JsonProperty("state")
105163
private IssueState state;
106164

165+
/**
166+
* The title of the issue.
167+
*/
107168
@JsonProperty("title")
108169
private String title;
109170

171+
/**
172+
* The count of user notes on the issue.
173+
*/
110174
@JsonProperty("user_notes_count")
111175
private Integer userNotesCount;
112176

177+
/**
178+
* The web URL of the issue.
179+
*/
113180
@JsonProperty("web_url")
114181
private String webUrl;
115182

183+
/**
184+
* The references associated with the issue.
185+
*/
116186
@JsonProperty("references")
117187
private References references;
118188

189+
/**
190+
* The weight of the issue.
191+
*/
119192
@JsonProperty("weight")
120193
private Integer weight;
121194

195+
/**
196+
* Indicates whether discussions on the issue are locked.
197+
*/
122198
@JsonProperty("discussion_locked")
123199
private Boolean discussionLocked;
124200

201+
/**
202+
* The time statistics associated with the issue.
203+
*/
125204
@JsonProperty("time_stats")
126205
private TimeStats timeStats;
127206

207+
/**
208+
* The severity of the issue.
209+
*/
128210
@JsonProperty("severity")
129211
private String severity;
130212

213+
/**
214+
* The type of the issue.
215+
*/
131216
@JsonProperty("issue_type")
132217
private String issueType;
133218

219+
/**
220+
* The epic associated with the issue.
221+
*/
134222
@JsonProperty("epic")
135223
private IssueEpic epic;
136224

225+
/**
226+
* The upvotes for the issue.
227+
*/
137228
@JsonProperty("upvotes")
138229
private Integer upvotes;
139230

231+
/**
232+
* The downvotes for the issue.
233+
*/
140234
@JsonProperty("downvotes")
141235
private Integer downvotes;
142236

237+
/**
238+
* The number of merge requests associated with the issue.
239+
*/
143240
@JsonProperty("merge_requests_count")
144241
private Integer mergeRequestsCount;
145242

243+
/**
244+
* Indicates whether the issue has tasks.
245+
*/
146246
@JsonProperty("has_tasks")
147247
private Boolean hasTasks;
148248

249+
/**
250+
* The task status associated with the issue.
251+
*/
149252
@JsonProperty("task_status")
150253
private String taskStatus;
151254

255+
/**
256+
* Indicates whether the issue has been imported.
257+
*/
152258
@JsonProperty("imported")
153259
private Boolean imported;
154260

261+
/**
262+
* The source from which the issue was imported.
263+
*/
155264
@JsonProperty("imported_from")
156265
private String importedFrom;
157266

267+
/**
268+
* The iteration associated with the issue.
269+
*/
158270
@JsonProperty("iteration")
159271
private Iteration iteration;
160272

273+
/**
274+
* The task completion status associated with the issue.
275+
*/
161276
@JsonProperty("task_completion_status")
162277
private TaskCompletionStatus taskCompletionStatus;
163278

279+
/**
280+
* The health status associated with the issue.
281+
*/
164282
@JsonProperty("health_status")
165283
private String healthStatus;
166284

0 commit comments

Comments
 (0)