Skip to content

K3#44

Merged
tw2066 merged 4 commits into
masterfrom
k3
Jul 23, 2026
Merged

K3#44
tw2066 merged 4 commits into
masterfrom
k3

Conversation

@tw2066

@tw2066 tw2066 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

tw2066 added 4 commits July 23, 2026 11:01
- 添加详细的项目架构核心说明
- 更新环境要求至 PHP 8.2 和 Hyperf ~3.2
- 升级 swagger-ui 版本至 5.27.1
- 修正 knife4j 访问路径说明
- 更新 hyperf.wiki 链接至 3.2 版本

feat(swagger): 支持路径参数识别和循环引用处理

- 新增路由路径参数检测功能,仅将路径占位符参数生成为 path 类型
- 实现循环引用类的防无限递归处理机制
- 为非 DTO 扫描类属性提供反射类型兜底方案

test(swagger): 添加参数生成和响应覆盖测试用例

- 创建 GenerateParametersTest 验证路径参数识别
- 添加 GenerateResponsesTest 测试注解优先级覆盖
- 实现循环引用 DTO 测试用例

refactor(swagger): 优化组件初始化和数据合并顺序

- 调整 SwaggerComponents 类初始化顺序防止递归问题
- 修正 ApiResponse 注解与全局配置合并优先级
- 更新参数生成器构造函数注入路由信息
- 将 composer update 命令从 -o 参数更改为 -oW 参数
- 提升依赖更新过程的严格性和一致性
- 移除 composer require 的 -W 参数避免重复约束
- 移除 composer update 的 -W 参数优化执行效率
- 保持依赖安装的一致性配置
- 支持带有空白字符的占位符格式,如 { id }、{id : \d+}
- 更新正则表达式以与 FastRoute 规则对齐
- 保留对原有格式 {id} 和 {id:\d+} 的兼容性
@tw2066
tw2066 merged commit d492913 into master Jul 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant