Skip to content

Conversation

@Miodec
Copy link
Member

@Miodec Miodec commented Feb 9, 2025

Description

Brrrrrr

Checks

  • Adding quotes?
    • Make sure to include translations for the quotes in the description (or another comment) so we can verify their content.
  • Adding a language or a theme?
    • If is a language, did you edit _list.json, _groups.json and add languages.json?
    • If is a theme, did you add the theme.css?
      • Also please add a screenshot of the theme, it would be extra awesome if you do so!
  • Check if any open issues are related to this PR; if so, be sure to tag them below.
  • Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info)
  • Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.

Closes #4775

const PaginationQuerySchema = z.object({
skip: z.number().int().nonnegative().optional(),
limit: z.number().int().nonnegative().max(50).optional(),
page: z.number().int().nonnegative().optional(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could add page:...default(0) and pageSize:...default(50) here. This would add the default values to the api documentation:
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it fill in the data if undefined?

fehmer
fehmer previously approved these changes Feb 11, 2025
Copy link
Member

@fehmer fehmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Miodec Miodec merged commit 8988487 into master Feb 12, 2025
11 checks passed
@Miodec Miodec deleted the lb branch February 12, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server stuff frontend User interface or web stuff packages Changes in local packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build weekly leaderboard UI

5 participants