Skip to content

Commit 95ae045

Browse files
committed
apply formatting
1 parent ce975d4 commit 95ae045

File tree

96 files changed

+369
-1205
lines changed

Some content is hidden

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

96 files changed

+369
-1205
lines changed

src/main/java/li/naska/bgg/repository/model/BggArticlesV4QueryParams.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ public class BggArticlesV4QueryParams {
1111

1212
@NotNull
1313
@Min(1)
14-
@Parameter(
15-
example = "12345",
16-
description =
17-
"""
14+
@Parameter(example = "12345", description = """
1815
Thread id.
1916
<p>
2017
<i>Syntax</i> : /articles?threadid={threadid}
@@ -24,15 +21,12 @@ public class BggArticlesV4QueryParams {
2421
private Integer threadid;
2522

2623
@Min(1)
27-
@Parameter(
28-
description =
29-
"""
24+
@Parameter(description = """
3025
Page number. Page size is 25.
3126
<p>
3227
<i>Syntax</i> : /articles?threadid={threadid}&pageid={pageid}
3328
<p>
3429
<i>Example</i> : /articles?threadid=12345&pageid=2
35-
""",
36-
schema = @Schema(defaultValue = "1"))
30+
""", schema = @Schema(defaultValue = "1"))
3731
private Integer pageid;
3832
}

src/main/java/li/naska/bgg/repository/model/BggBlogpostCommentsV4QueryParams.java

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
public class BggBlogpostCommentsV4QueryParams {
1111

1212
@Min(0)
13-
@Parameter(
14-
example = "8494604",
15-
description =
16-
"""
13+
@Parameter(example = "8494604", description = """
1714
Paging cursor. Page is calculated from there.
1815
<p>
1916
<i>Syntax</i> : /blogposts/{id}/comments?commentid={cursor}
@@ -23,10 +20,7 @@ public class BggBlogpostCommentsV4QueryParams {
2320
private Integer commentid;
2421

2522
@Min(1)
26-
@Parameter(
27-
example = "1",
28-
description =
29-
"""
23+
@Parameter(example = "1", description = """
3024
Page size. Default is all comments.
3125
<p>
3226
<i>Syntax</i> : /blogposts/{id}/comments?perPage={count}
@@ -36,10 +30,7 @@ public class BggBlogpostCommentsV4QueryParams {
3630
private Integer perPage;
3731

3832
@Pattern(regexp = "^backward$")
39-
@Parameter(
40-
example = "backward",
41-
description =
42-
"""
33+
@Parameter(example = "backward", description = """
4334
Changes paging direction (forward by default).
4435
<p>
4536
<i>Syntax</i> : /blogposts/{id}/comments?commentid={cursor}
@@ -50,9 +41,7 @@ Changes paging direction (forward by default).
5041

5142
@Min(1)
5243
@Max(1)
53-
@Parameter(
54-
description =
55-
"""
44+
@Parameter(description = """
5645
Shows only comments total count.
5746
<p>
5847
<i>Syntax</i> : /blogposts/{id}/comments?totalonly=1
@@ -63,9 +52,7 @@ Changes paging direction (forward by default).
6352

6453
@Min(1)
6554
@Max(1)
66-
@Parameter(
67-
description =
68-
"""
55+
@Parameter(description = """
6956
Shows only comments metadata.
7057
<p>
7158
<i>Syntax</i> : /blogposts/{id}/comments?metaonly=1

src/main/java/li/naska/bgg/repository/model/BggBlogpostReactionsV4QueryParams.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ public class BggBlogpostReactionsV4QueryParams {
1010

1111
@Min(1)
1212
@Max(1)
13-
@Parameter(
14-
description =
15-
"""
13+
@Parameter(description = """
1614
Shows only reactions total count.
1715
<p>
1816
<i>Syntax</i> : /blogposts/{id}/reactions?totalonly=1

src/main/java/li/naska/bgg/repository/model/BggBlogpostTipsV4QueryParams.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ public class BggBlogpostTipsV4QueryParams {
1010

1111
@Min(1)
1212
@Max(1)
13-
@Parameter(
14-
description =
15-
"""
13+
@Parameter(description = """
1614
Shows only tips total count.
1715
<p>
1816
<i>Syntax</i> : /blogposts/{id}/tips?totalonly=1

src/main/java/li/naska/bgg/repository/model/BggBlogpostsV4QueryParams.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
public class BggBlogpostsV4QueryParams {
1010

1111
@Pattern(regexp = "^(?:hot|recent)$")
12-
@Parameter(
13-
description =
14-
"""
12+
@Parameter(description = """
1513
Sort order.
1614
<p>Valid sort orders are:
1715
<li/>hot
@@ -20,14 +18,11 @@ public class BggBlogpostsV4QueryParams {
2018
<i>Syntax</i> : /blogposts?sort={sort}
2119
<p>
2220
<i>Example</i> : /blogposts?sort=recent
23-
""",
24-
schema = @Schema(defaultValue = "recent"))
21+
""", schema = @Schema(defaultValue = "recent"))
2522
private String sort;
2623

2724
@Pattern(regexp = "^(?:alltime|today|twodays|last7|last30|year)$")
28-
@Parameter(
29-
description =
30-
"""
25+
@Parameter(description = """
3126
Hot scope interval.
3227
<p>Valid intervals are:
3328
<li/>alltime (default)
@@ -40,7 +35,6 @@ public class BggBlogpostsV4QueryParams {
4035
<i>Syntax</i> : /blogposts?interval={interval}
4136
<p>
4237
<i>Example</i> : /blogposts?interval=alltime
43-
""",
44-
schema = @Schema(defaultValue = "alltime"))
38+
""", schema = @Schema(defaultValue = "alltime"))
4539
private String interval;
4640
}

src/main/java/li/naska/bgg/repository/model/BggBlogsPostsV4QueryParams.java

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
public class BggBlogsPostsV4QueryParams {
1212

1313
@Min(1)
14-
@Parameter(
15-
example = "20963",
16-
description =
17-
"""
14+
@Parameter(example = "20963", description = """
1815
The object id.
1916
<p>
2017
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}
@@ -25,10 +22,7 @@ public class BggBlogsPostsV4QueryParams {
2522

2623
@Pattern(
2724
regexp = "^(?:company|component|event|family|media|person|property|thing|version|weblink)$")
28-
@Parameter(
29-
example = "thing",
30-
description =
31-
"""
25+
@Parameter(example = "thing", description = """
3226
The object type.
3327
<p>
3428
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}
@@ -38,63 +32,49 @@ public class BggBlogsPostsV4QueryParams {
3832
private String objecttype;
3933

4034
@Min(1)
41-
@Parameter(
42-
description =
43-
"""
35+
@Parameter(description = """
4436
Blog id.
4537
<p>
4638
<i>Syntax</i> : /blogs/posts?blogid={blogid}
4739
<p>
4840
<i>Example</i> : /blogs/posts?blogid=9268
49-
""",
50-
schema = @Schema(defaultValue = "9268"))
41+
""", schema = @Schema(defaultValue = "9268"))
5142
private Integer blogid;
5243

5344
@Min(1)
5445
@Max(1)
55-
@Parameter(
56-
description =
57-
"""
46+
@Parameter(description = """
5847
Filter enabled.
5948
<p>
6049
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}&filterblogs={filterblogs}
6150
<p>
6251
<i>Example</i> : /blogs/posts?objectid=20963&objecttype=thing&filterblogs=1
63-
""",
64-
schema = @Schema(defaultValue = "1"))
52+
""", schema = @Schema(defaultValue = "1"))
6553
private Integer filterblogs;
6654

6755
@Min(1)
68-
@Parameter(
69-
description =
70-
"""
56+
@Parameter(description = """
7157
Page number for paged results.
7258
<p>
7359
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}&pageid={page}
7460
<p>
7561
<i>Example</i> : /blogs/posts?objectid=20963&objecttype=thing&pageid=2
76-
""",
77-
schema = @Schema(defaultValue = "1"))
62+
""", schema = @Schema(defaultValue = "1"))
7863
private Integer pageid;
7964

8065
@Min(1)
8166
@Max(50)
82-
@Parameter(
83-
description =
84-
"""
67+
@Parameter(description = """
8568
Page size for paged results.
8669
<p>
8770
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}&showcount={count}
8871
<p>
8972
<i>Example</i> : /blogs/posts?objectid=20963&objecttype=thing&showcount=10
90-
""",
91-
schema = @Schema(defaultValue = "10"))
73+
""", schema = @Schema(defaultValue = "10"))
9274
private Integer showcount;
9375

9476
@Pattern(regexp = "^(?:hot|recent)$")
95-
@Parameter(
96-
description =
97-
"""
77+
@Parameter(description = """
9878
Sort order.
9979
<p>Valid sort orders are:
10080
<li/>hot
@@ -103,14 +83,11 @@ public class BggBlogsPostsV4QueryParams {
10383
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}&sort={sort}
10484
<p>
10585
<i>Example</i> : /blogs/posts?objectid=20963&objecttype=thing&sort=recent
106-
""",
107-
schema = @Schema(defaultValue = "recent"))
86+
""", schema = @Schema(defaultValue = "recent"))
10887
private String sort;
10988

11089
@Pattern(regexp = "^(?:alltime|today|twodays|last7|last30|year)$")
111-
@Parameter(
112-
description =
113-
"""
90+
@Parameter(description = """
11491
Hot scope interval.
11592
<p>Valid intervals are:
11693
<li/>alltime (default)
@@ -123,16 +100,13 @@ public class BggBlogsPostsV4QueryParams {
123100
<i>Syntax</i> : /blogs/posts?objectid={id}&objecttype={type}&interval={interval}
124101
<p>
125102
<i>Example</i> : /blogs/posts?objectid=20963&objecttype=thing&interval=alltime
126-
""",
127-
schema = @Schema(defaultValue = "alltime"))
103+
""", schema = @Schema(defaultValue = "alltime"))
128104
private String interval;
129105

130106
@Deprecated
131107
@Min(1)
132108
@Max(1)
133-
@Parameter(
134-
description =
135-
"""
109+
@Parameter(description = """
136110
Mined from bgg website, but marked as deprecated as it isn't required and doesn't seem useful.
137111
<p>
138112
Seems to be present with a value of "1" in all requests.

src/main/java/li/naska/bgg/repository/model/BggBoardgameV1QueryParams.java

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ public class BggBoardgameV1QueryParams {
1111

1212
@Min(1)
1313
@Max(1)
14-
@Parameter(
15-
example = "1",
16-
description =
17-
"""
14+
@Parameter(example = "1", description = """
1815
Show users' comments on games (set it to 1, absent by default).
1916
<p>
2017
<i>Syntax</i> : /boardgame/{gameId}?comments=1
@@ -24,10 +21,7 @@ public class BggBoardgameV1QueryParams {
2421
private Integer comments;
2522

2623
@Min(1)
27-
@Parameter(
28-
example = "1",
29-
description =
30-
"""
24+
@Parameter(example = "1", description = """
3125
You can use page to increment the results (set it to the page of results you want, 1 by default).
3226
<p>
3327
<i>Syntax</i> : /boardgame/{gameId}?comments=1&page={1,}
@@ -38,10 +32,7 @@ You can use page to increment the results (set it to the page of results you wan
3832

3933
@Min(1)
4034
@Max(1)
41-
@Parameter(
42-
example = "1",
43-
description =
44-
"""
35+
@Parameter(example = "1", description = """
4536
Include game statistics (set it to 1, absent by default).
4637
<p>
4738
<i>Syntax</i> : /boardgame/{gameId}?stats=1
@@ -52,10 +43,7 @@ Include game statistics (set it to 1, absent by default).
5243

5344
@Min(1)
5445
@Max(1)
55-
@Parameter(
56-
example = "1",
57-
description =
58-
"""
46+
@Parameter(example = "1", description = """
5947
Include historical game statistics (set it to 1, absent by default).
6048
<p>
6149
Use from/end parameters to set starting and ending dates. Returns all data starting from 2006-03-18.
@@ -69,10 +57,7 @@ Include historical game statistics (set it to 1, absent by default).
6957
private Integer historical;
7058

7159
@Pattern(regexp = "^[1-9]\\d{3}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])$")
72-
@Parameter(
73-
example = "2006-03-18",
74-
description =
75-
"""
60+
@Parameter(example = "2006-03-18", description = """
7661
Set the start date to include historical data (format: YYYY-MM-DD, absent by default).
7762
<p>
7863
<i>Syntax</i> : /boardgame/{gameId}?historical=1&from={date}&to={date}
@@ -82,10 +67,7 @@ Set the start date to include historical data (format: YYYY-MM-DD, absent by def
8267
private String from;
8368

8469
@Pattern(regexp = "^[1-9]\\d{3}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])$")
85-
@Parameter(
86-
example = "2999-12-31",
87-
description =
88-
"""
70+
@Parameter(example = "2999-12-31", description = """
8971
Set the end date to include historical data (format: YYYY-MM-DD, absent by default).
9072
<p>
9173
<i>Syntax</i> : /boardgame/{gameId}?historical=1&from={date}&to={date}

0 commit comments

Comments
 (0)