Repository navigation
Fix/dto 4.0 swagger compatibility - #48
Merged
Merged
Conversation
- 按 DTO 可写性过滤请求字段,并将响应只读属性标记为 readOnly - 修正别名 required、接口 classMap 和未知数组元素 schema - 补充回归测试并同步 DTO 4.0 环境要求与使用文档 Co-Authored-By: Kimi <noreply@anthropic.com>
- 复用 DTO accessor 与 classMap 解析,修正请求可写性和复杂类型文档 - 统一 mixed、枚举、接口及多维数组 schema,保留只读引用语义 - 修复代理辅助类重命名和 llms 空对象 YAML 输出 - 补充审查回归测试并同步 DTO 4.0 文档 Co-Authored-By: Kimi <noreply@anthropic.com>
- 为所有DTO和响应类添加#[ApiModel]注解以支持模型文档生成 - 为所有未初始化的属性添加默认值,避免类型不兼容问题 - 清理注释代码、调试语句(dump/var_dump)和冗余方法 - 重命名控制器方法使其语义更清晰(api->detail, apiPost->create等) - 修复ResponseVisitor中代理类生成时默认值与类型不兼容的bug - 删除废弃的TestController和Address_1类 - 新增Activity模拟模型、ReadonlyResponse和ProxyNullableDefaults测试类 - 添加示例目录README文档说明注解用法和DTO 4.0规则
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.