Skip to content

Commit

Permalink
Only need to specify max value for range
Browse files Browse the repository at this point in the history
As We know PageSize is a natural number
  • Loading branch information
lenguyenthanh committed May 31, 2024
1 parent f5e8cd4 commit edbd5ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/api/src/main/smithy/federations.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ operation GetFederationsSummary {
@httpQuery("page")
page: PageNumber = "1"
@httpQuery("page_size")
@range(min: 1, max: 100)
@range(max: 100)
pageSize: PageSize = 30
}

Expand Down Expand Up @@ -62,7 +62,7 @@ operation GetFederationPlayersById {
@httpQuery("page")
page: PageNumber = "1"
@httpQuery("page_size")
@range(min: 1, max: 100)
@range(max: 100)
pageSize: PageSize = 30
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/src/main/smithy/players.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ operation GetPlayers {
page: PageNumber = "1"

@httpQuery("page_size")
@range(min: 1, max: 100)
@range(max: 100)
pageSize: PageSize = 30
}

Expand Down

0 comments on commit edbd5ee

Please sign in to comment.