Skip to content

feat(core): type safe define route helper and validator#20584

Draft
hyoban wants to merge 20 commits intomasterfrom
11-27-type-safe-route-and-validator
Draft

feat(core): type safe define route helper and validator#20584
hyoban wants to merge 20 commits intomasterfrom
11-27-type-safe-route-and-validator

Conversation

@hyoban
Copy link
Collaborator

@hyoban hyoban commented Nov 27, 2025

Involved Issue / 该 PR 相关 Issue

Close #

Example for the Proposed Route(s) / 路由地址示例

/v2ex/topics/hot

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

We can then use this to generate documentation.

RSSNext/rsshub-docs@1d51835

@github-actions github-actions bot added dependencies This PR involves changes to dependencies core enhancement route auto: DO NOT merge Docker won’t even start labels Nov 27, 2025
docs[category][namespace].routes[realPath] = {
...data,
// eslint-disable-next-line no-await-in-loop
param: data.param ? await toJsonSchema(data.param) : undefined,

Check failure

Code scanning / ESLint

Disallow `await` inside of loops Error

Unexpected await inside a loop.
// eslint-disable-next-line no-await-in-loop
param: data.param ? await toJsonSchema(data.param) : undefined,
// eslint-disable-next-line no-await-in-loop
query: data.query ? await toJsonSchema(data.query) : undefined,

Check failure

Code scanning / ESLint

Disallow `await` inside of loops Error

Unexpected await inside a loop.
@github-actions
Copy link
Contributor

This PR is stale because it has been opened for more than 3 weeks with no activity. Comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale No feedback from OP label Jan 19, 2026
@hyoban
Copy link
Collaborator Author

hyoban commented Jan 20, 2026

no stale

@github-actions github-actions bot removed the Stale No feedback from OP label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto: DO NOT merge Docker won’t even start core enhancement dependencies This PR involves changes to dependencies route

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant