copilot-swe-agent[bot]
03fd74b955
docs: regenerate swagger example files with fixed array definitions
...
The swagger generation code already contains the fix for array definitions
with useDefinitions=true (from PR #5216 ). The fix ensures that when arrays
contain structs, the $ref is placed inside items rather than at the schema level.
However, the example swagger files were not regenerated after the fix,
so they still showed the old incorrect structure. This commit regenerates
the example files to reflect the corrected behavior.
Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com >
2025-10-07 02:36:07 +00:00
Kevin Wan
cf21cb2b0b
chore: refactor to remove duplicated code ( #5216 )
2025-10-06 22:24:44 +08:00
Copilot
61e8894c31
Fix swagger generation: info block and server tags not included ( #5215 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com >
2025-10-06 22:02:42 +08:00
Copilot
7a6c3c8129
Fix swagger path generation: remove trailing slash for root routes with prefix ( #5212 )
2025-10-05 12:12:03 +08:00
Copilot
ce6d0e3ea7
fix(goctl/swagger): correct $ref placement in array definitions when useDefinitions is enabled ( #5199 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com >
2025-10-02 22:11:18 +08:00
Copilot
271f10598f
Add complete test scaffolding support with --test flag for API projects ( #5176 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: kevwan <1918356+kevwan@users.noreply.github.com >
2025-09-27 21:13:13 +08:00
Remember
988fb9d9bf
fix: SSE handler blocking ( #5181 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-26 13:53:42 +00:00
me-cs
06502d1115
update:optimize slice find and Unquote func ( #5108 )
2025-09-07 00:41:45 +00:00
Kevin Wan
ce11adb5e4
feat: add code generation headers in safe to edit files ( #5136 )
2025-09-01 21:27:30 +08:00
Kevin Wan
955b8016aa
feat: support goctl --module to set go module ( #5135 )
2025-08-31 16:40:49 +08:00
geekeryy
73d6fcfccd
feat: Support projectPkg template variables in config, handler, logic, main, and svc template files ( #4939 )
2025-08-19 12:29:41 +00:00
Kevin Wan
a81d898408
chore: update go-zero version ( #5093 )
...
Signed-off-by: kevin <wanjunfeng@gmail.com >
2025-08-17 17:00:15 +08:00
kesonan
4bdb07f225
(goctl)feature: supported sse generation ( #5082 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-15 01:49:50 +00:00
Kevin Wan
b7f601c912
feat: support sse in api files ( #5074 )
...
Signed-off-by: Kevin Wan <wanjunfeng@gmail.com >
2025-08-10 22:17:08 +08:00
Kevin Wan
9fd1f29845
chore: refactor ( #5071 )
2025-08-09 12:27:43 +08:00
Ioannis Pinakoulakis
130e1ba963
perf: pre-allocate all known length arrays to avoid re-scaling ( #5029 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com >
2025-08-08 16:03:25 +00:00
queryfast
d9df08b079
chore: fix some minor issues in comments ( #5051 )
...
Signed-off-by: queryfast <queryfast@outlook.com >
2025-08-05 04:13:44 +00:00
Twilikiss
8cf4f95bd7
Fix POST JSON parameter determination logic (goctl api swagger) & Add some unit test. ( #4997 )
...
Co-authored-by: XiaobinChen <xiaobin.chen@corerain.com >
2025-07-13 03:07:35 +00:00
kesonan
0d31e6c375
(goctl): fix #4943 ( #4953 )
2025-06-14 15:36:30 +00:00
Kevin Wan
f037bf344d
chore: add more tests ( #4930 )
2025-06-08 22:08:04 +08:00
jaron
7969e0ca38
fix(goctl): Fix getting swagger consume types ( #4903 )
2025-06-07 12:46:34 +00:00
kesonan
f3edd4b880
goctl: v1.8.4-beta ( #4890 )
2025-05-25 05:36:56 +00:00
me-cs
e7bd0d8b60
update:To standardize the time format, use the go standard library's own ( #4875 )
2025-05-22 15:26:53 +00:00
me-cs
4d3681b71c
Optimize slicing operations ( #4877 )
2025-05-20 11:36:02 +00:00
kesonan
45b27ad93a
goctl: 1.8.4-beta ( #4869 )
2025-05-19 15:30:50 +00:00
kesonan
91ab1f6d2b
goctl features of 1.8.4-alpha ( #4849 )
2025-05-15 13:59:48 +00:00
kesonan
c3820a95c1
release goctl swagger ( #4829 )
2025-05-04 06:05:41 +00:00
wwwfeng
14192050ae
fix: goctl api tsgen ( #4726 )
2025-05-02 09:15:32 +00:00
kesonan
e416d01f8d
api format from stdin ( #4772 )
2025-05-02 07:59:47 +00:00
Rankgice
52078a0c14
Fix the issue of generating swagger @doc "xxx" that fails, and use th… ( #4816 )
...
Co-authored-by: lxr <qiyuechuqi@an-idear.com >
2025-05-02 07:06:03 +00:00
kesonan
15ea07aad1
goctl: support custom swagger authentication ( #4811 )
2025-04-27 15:43:37 +00:00
shaouai
98bebbc74f
feat(swagger): allow users to specify the generated swagger file name ( #4809 )
2025-04-27 15:34:52 +00:00
kesonan
eafd11d949
goctl: supported api types group for EXPERIMENTAL(实验性功能:支持 api type 结构体按照分组名称拆分文件) ( #4810 )
2025-04-27 15:18:33 +00:00
kesonan
812140ba36
fix: goctl swagger missing security definition and submit json body data error ( #4808 )
2025-04-25 14:58:45 +00:00
kesonan
44735e949c
fix array schmea generation incorrect ( #4801 )
2025-04-23 23:59:01 +00:00
kesonan
bf313c3c56
fix: swagger separator incorrect in Windows OS ( #4799 )
2025-04-23 13:51:02 +00:00
kesonan
94e7753262
fix: the parameter "required" in the Swagger document generated for repair is incorrect ( #4791 )
2025-04-21 04:18:02 +00:00
kesonan
9c478626d2
feature/goctl-api-swagger ( #4780 )
2025-04-17 14:38:55 +00:00
soasurs
61641581eb
fix: form fields of request optional ( #4755 )
...
Signed-off-by: soasurs <soasurs@gmail.com >
2025-04-08 13:05:21 +00:00
Kevin Wan
f113d512e8
chore: coding style ( #4644 )
2025-02-12 23:48:39 +08:00
Kevin Wan
1023800b02
fix: health check problem ( #4590 )
2025-01-22 19:32:28 +08:00
Devin
6138f85470
Implement #4442 , goctl generate unit test files for api handler and logic ( #4443 )
2025-01-22 06:52:49 +00:00
kesonan
6700910f64
(goctl)fix: api timeout limited during api generation ( #4513 )
2024-12-19 08:19:10 +00:00
Robin
cad243905f
fix ts request cli ( #4461 )
...
Co-authored-by: robinzhang <azhangrongbing@163.com >
2024-11-21 21:40:08 +08:00
kesonan
64e3aeda55
Add goctl version to code header ( #4293 )
2024-08-03 14:22:51 +00:00
kesonan
ee643a945e
(goctl): fix nested struct generation ( #4281 )
2024-07-28 15:40:25 +00:00
Kevin Wan
8f7aff558f
chore: refactor BuildTypes in tsgen. ( #4266 )
2024-07-22 21:17:59 +08:00
jaron
6e08d478fe
feat(tsgen): tsgen export buildTypes function ( #4197 )
2024-07-22 12:11:06 +00:00
kesonan
a012a9138f
(goctl): support nested struct ( #4211 )
2024-06-25 15:18:15 +00:00
Jayson Wang
f138cc792e
fix(goctl): multi imports the api cause redeclared error in types.go ( #3988 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com >
2024-04-04 11:39:24 +00:00