copilot-swe-agent[bot]
87dd9671be
Fix TypeScript generator to handle inline/embedded structs correctly
...
- Add hasActualTagMembers helper to recursively check for actual tag members
- Add hasActualBodyMembers helper to recursively check for actual body members
- Add hasActualNonBodyMembers helper to recursively check for actual non-body members
- Update genParamsTypesIfNeed to use hasActualNonBodyMembers and hasActualTagMembers
- Update hasRequestBody, hasRequestHeader, hasRequestPath, and pathHasParams to use new helpers
- Add comprehensive test coverage for new helper functions
Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com >
2025-10-25 20:11:35 +08:00
wwwfeng
14192050ae
fix: goctl api tsgen ( #4726 )
2025-05-02 09:15:32 +00:00
kesonan
ee643a945e
(goctl): fix nested struct generation ( #4281 )
2024-07-28 15:40:25 +00:00
kesonan
a012a9138f
(goctl): support nested struct ( #4211 )
2024-06-25 15:18:15 +00:00
Kevin Wan
e4a1b7bb39
chore: format the code ( #3243 )
2023-05-12 10:38:05 +08:00
lchjczw
9fa98c2bd3
api imports take the form of relative paths ( #3201 )
...
Co-authored-by: 李春华 <lichunhua@threesoft.cn >
2023-05-10 03:40:07 +00:00
foliet
799c118d95
feat(goctl): better generate the api code of typescript ( #2483 )
2022-10-11 22:19:22 +08:00
bensonfx
e7acadb15d
fix #2435 ( #2442 )
...
* feat: add color to debug (#2433 )
* fix header and path type ts gen
Co-authored-by: chen quan <chenquan.dev@gmail.com >
2022-09-24 22:28:25 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
2022-01-25 23:15:07 +08:00
kingxt
e6ef1fca12
Code optimized ( #523 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* add more comment
* add comment
* add comment
* add comments for rpc tool
* add comments for model tool
* add comments for model tool
* add comments for model tool
* add comments for config tool
* add comments for config tool
* add comments
* add comments
* add comments
* add comments
* add comment
* remove rpc main head info
* add comment
* optimized
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn >
2021-02-26 16:11:47 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
kingxt
9cd2015661
fix inner type generate error ( #377 )
...
* fix point type bug
* optimized
* fix inner type error
2021-01-13 11:54:53 +08:00
kingxt
ee19fb736b
feature: refactor api parse to g4 ( #365 )
...
* feature: refactor api parse to g4
* new g4 parser
* add CHANGE_LOG.MD
* refactor
* fix byte bug
* refactor
* optimized
* optimized
* revert
* update readme.md
* update readme.md
* update readme.md
* update readme.md
* remove no need
* fix java gen
* add upgrade
* resolve confilits
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn >
2021-01-11 15:10:51 +08:00
kevin
9e14820698
fix golint warnings
2020-08-19 16:00:55 +08:00
kevin
0a7e0cce77
update package reference
2020-08-08 16:40:10 +08:00
kim
121323b8c3
goctl added
2020-07-29 17:12:04 +08:00