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
9c1aa6da3d
chore: refact dart code generation ( #3726 )
2023-11-18 22:41:26 +08:00
anstns
da67ea2300
add map type ( #3704 )
2023-11-18 13:55:13 +00:00
fondoger
c22bc1c8ea
[dart-gen] Fix lists containing atomic types ( #3210 )
2023-05-08 21:00:46 +00:00
guangwu
63368d8b0c
io/ioutil deprecated ( #3217 )
2023-05-06 09:50:54 +00:00
fondoger
3a66fc038f
[dart-gen] Fix nullable list item issue ( #3192 )
2023-05-01 15:01:28 +08:00
fondoger
078825b4eb
[dart-gen] Support Null-safe and omitempty json tag ( #3134 )
2023-04-17 05:06:52 +00:00
Snake
a561048d59
Fix bug: replace int and float with num type in dart ( #3042 )
...
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
2023-03-18 14:49:22 +00:00
Snake
e136deb3a7
Update goclt dart gen: Add scheme config and content-type header ( #2987 )
...
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
2023-03-08 15:40:55 +00:00
zhoumingji
ba71964b16
Fix bug in dartgen: The property 'isEmpty' can't be unconditionally accessed because the receiver can be 'null'
2023-03-04 11:37:38 +00:00
zhoumingji
97ada59175
Fix bug in dartgen: Increase the processing logic when route.RequestType is empty
2023-03-04 04:31:27 +00:00
fondoger
32e3116ee3
Fix bug in dart api gen: path parameter is not replaced
2023-02-16 15:24:51 +00:00
fondoger
5756627904
Fix Dart API generation bugs; Add ability to generate API for path parameters ( #2887 )
...
* Fix bug in dartgen: Import path should match the generated api filename
* Use Route.HandlerName as generated dart API function name
Reasons:
- There is bug when using url path name as function name, because it may have invalid characters such as ":"
- Switching to HandlerName aligns with other languages such as typescript generation
* [DartGen] Add ability to generate api for url path parameters such as /path/:param
2023-02-16 15:19:46 +08:00
anqiansong
5383e29ce6
feat: Replace cli to cobra ( #1855 )
...
* Replace cli
* Replace cli
* Replace cli
* Format code
* Add compare case
* Add compare case
* Add compare case
* Support go style flag
* Support go style flag
* Add test case
2022-05-07 15:40:11 +08:00
Kevin Wan
3bbc90ec24
refactor: move json related header vars to internal ( #1840 )
...
* refactor: move json related header vars to internal
* refactor: use header.ContentType
2022-04-28 15:12:04 +08:00
Kevin Wan
cef83efd4e
fix #1838 ( #1839 )
2022-04-28 11:25:26 +08:00
anqiansong
305587aa81
fix: Fix issue #1810 ( #1811 )
...
* Fix #1810
* Remove go embed
* Format code
* Remove useless code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 15:22:43 +08:00
Fyn
365c569d7c
fix(goctl): dart gen user defined struct array ( #1620 )
2022-03-07 14:11:47 +08:00
Fyn
6a66dde0a1
feat(goctl): api dart support flutter v2 ( #1603 )
...
0. support null-safety code gen
1. supports -legacy flag for legacy code gen
2. supports -hostname flag for server hostname
3. use dart official format
4. fix some some bugs
Resolves : #1602
2022-03-04 15:34:13 +08:00
Fyn
fba6543b23
fix: goctl api dart support form
tag ( #1596 )
2022-03-01 16:17:37 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
2022-02-09 17:22:52 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
2022-01-25 23:15:07 +08:00
anqiansong
01786c5e63
Generate route with prefix ( #1200 )
...
* Generate route with prefix
* Update api convert
* Remove TrimSpace
* Update path join
* Format code
* Format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-11-03 20:57:03 +08:00
z-micro
80e3407be1
fix bug: generating dart code error ( #1090 )
2021-09-28 09:01:27 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
kingxt
f98c9246b2
Code optimized ( #493 )
2021-02-20 19:50:03 +08:00
kingxt
2b07f22672
optimize code ( #417 )
...
* optimize code
* optimize code
* optimize code
* optimize code
2021-01-26 17:37:22 +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
8745039877
move lang.Must into logx.Must to make sure output fatal message as json
2020-08-14 15:08:06 +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