Commit 5478b13
authored
Update feed query DTO (#232)
### Description
<!-- Provide a comprehensive description here about what your PR aims to
solve. -->
<!-- You may also add additional context -->
- Make limit and offset optional
- Parse string numeric values for limit and offset
- Remove default values from DTO definition
Fixes #231
---
### PR Checklist
<!-- Please do not remove this section -->
<!-- Mark each item with an "x" ([ ] becomes [x]) -->
- [x] Read the Developer's Guide in
[CONTRIBUTING.md](https://github.com/yamcodes/bedstack/blob/main/CONTRIBUTING.md)
- [x] Use a concise title to represent the changes introduced in this PR
- [x] Provide a detailed description of the changes introduced in this
PR, and, if necessary, some screenshots
- [x] Reference an issue or discussion where the feature or changes have
been previously discussed
- [x] Add a failing test that passes with the changes introduced in this
PR, or explain why it's not feasible
- [x] Add documentation for the feature or changes introduced in this PR
to the docs; you can run them with `bun docs`
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Improvements**
* Article feed query parameters `limit` and `offset` are now optional,
with default values automatically applied when omitted. This provides
greater flexibility for querying articles and simplifies common use
cases.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent a6e6a1d commit 5478b13
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
9 | 3 | | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
13 | | - | |
14 | | - | |
| 7 | + | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | | - | |
18 | | - | |
| 11 | + | |
| 12 | + | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
0 commit comments