Conversation
…m from string to number.
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughArticleFeedQueryDto's Changes
Sequence Diagram(s)(omitted — changes are limited to DTO validation and don't introduce new multi-component control flow) Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/articles/dto/article-feed-query.dto.ts (1)
4-9: Update pagination docstring to remove default references.The comment still mentions
DEFAULT_LIMIT/DEFAULT_OFFSET, which are no longer applied in this DTO. Please update it to avoid misleading docs.✏️ Suggested update
- * - limit: number of items per request (default: DEFAULT_LIMIT, min: MIN_LIMIT, max: MAX_LIMIT) - * - offset: number of items to skip (default: DEFAULT_OFFSET, min: MIN_OFFSET) + * - limit: number of items per request (min: MIN_LIMIT, max: MAX_LIMIT) + * - offset: number of items to skip (min: MIN_OFFSET)
- Make limit and offset optional - Parse string numeric values for limit and offset - Remove default values from DTO definition
Description
Fixes #231
PR Checklist
bun docsSummary by CodeRabbit
limitandoffsetare now optional; sensible defaults are applied when omitted.limitandoffsetare validated as numeric values within allowed ranges to prevent invalid queries.✏️ Tip: You can customize this high-level summary in your review settings.