1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 18:30:53 +00:00
Commit Graph

84 Commits

Author SHA1 Message Date
Ming Deng
ee7b335232
Merge pull request #715 from jackywu/develop
fixbug: ignore tag did not works; set property type to the second tag…
2021-06-28 21:01:24 +08:00
Ming Deng
0a690decfb
Merge pull request #606 from LnZd/feature/analyse-import-pkg
search package from import paths, while missing type object
2021-02-09 20:11:41 +08:00
John
9428a53176 fix test case 2021-02-07 10:54:57 +08:00
John
824fa639f0 add more test case 2021-02-07 10:47:42 +08:00
John
637637efb2 add copyright comment 2021-02-06 20:32:17 +08:00
John
d995fc5328 add unit test 2021-02-06 20:10:12 +08:00
John
02a66c7bd7 change log level 2021-02-06 19:44:32 +08:00
John
9541046a29 load package from ouside of the project 2021-02-05 09:44:52 +08:00
John
d0bc4f76fc
Merge branch 'develop' into fix-required-tag 2021-01-28 19:48:23 +08:00
John
100f0af03a
Merge branch 'develop' into feature/analyse-import-pkg 2021-01-28 19:45:53 +08:00
Ming Deng
06e09b0f87 upgrade version to 2 2020-12-16 13:35:23 +08:00
Ming Deng
cdb41fad3f using beego v2 2020-12-14 13:08:47 +08:00
Ming Deng
9d68c302bd Using beego/beego 2020-12-14 00:47:33 +08:00
Ming Deng
f2a93c8c75 using beego to rerwite all commands 2020-11-05 23:57:37 +08:00
wucheng
d496d26a1c revert:修复了自定义map结构的显示 2020-08-27 14:53:32 +08:00
wucheng
c0d29b0d2a 修复了自定义map结构的显示 2020-08-27 14:23:02 +08:00
wucheng
b45ded3355 添加自定义的对象显示类型 2020-08-26 17:22:57 +08:00
wucheng
2c673b7d1e support interface type 2020-08-26 11:17:09 +08:00
wucheng
53b0b68d00 使得function的Description头也可以直接多行注释 2020-08-24 10:48:59 +08:00
wucheng
2862ff48db 对@Description支持多行描述 2020-08-12 16:14:23 +08:00
wucheng
b56b3794e4 fixbug: ignore tag did not works; set property type to the second tag value only if it is not omitempty and isBasicType 2020-08-12 10:19:09 +08:00
Hanjiang Yu
c562cedf96 Internalize parsePackagesFromDir() 2020-08-01 16:24:26 +08:00
Hanjiang Yu
e0ada8860d Use go/build to resolve package path for bee generate docs 2020-08-01 16:24:26 +08:00
qiantao
4158ab284e use go env check project is go mod or not. 2020-07-11 14:06:10 +08:00
askuy
bb5e0435c9
Merge pull request #674 from guhan121/develop
generate go module project
2020-06-28 22:27:39 +08:00
qiantao
9433a7b66f 1. new,api,hprose 命令增加两个参数 [-module=true] [-beego=v1.12.1] 用于生成go module项目
2. generate,migrate命令不再打印GOPATH.
3. pack命令排除。
4. run命令支持传递ldflags参数
5. fix watch file bug.ignoredFilesRegExps数组对每个文件增加$,防止目录存在tmp的情况
6. getPackagePath函数被调用时如果找不到GOPATH,则看看工程有没有go.mod 有就当做go module项目处理。
7. .travis.yml检查时排除/pkg/mod/目录
2020-06-25 22:29:27 +08:00
askuy
a780721c88
Merge pull request #573 from lyfunny/develop
gendoc bug
2020-06-23 21:56:47 +08:00
John
8357e26a9f fix warning 2019-05-28 16:55:07 +08:00
John
81ed8514be search package from import paths, while missing type object 2019-05-28 15:45:26 +08:00
John
f694778078 Fix required struct tag 2019-05-27 08:02:30 +08:00
Yang, Gao
521e9a3bc0 [Fix] Fix swagger docs missing schema attr for primitive body type @Param annotation 2019-04-10 23:32:55 +08:00
Joseph Edwards Van Riper III
384d46897b
Fix for projects with 'tests' in path
Projects with the string 'tests' in their path cannot document their models properly in swaggergen.  The comment says the 'tests' subfolder within the dirpath should be excluded, but the test was for the full path.  This should fix the discrepancy.
2019-02-12 08:23:17 -05:00
LiuYang
9f600ccb45 Merge branch 'develop' of https://github.com/beego/bee into develop 2019-01-15 11:57:55 +08:00
LiuYang
ab854cc874 Update g_docs.go
bug fix
2019-01-08 12:04:02 +08:00
Tavee Khunbida
22af6cc712 Fix staticcheck failed - cutset contains duplicate characters (SA1024) 2019-01-08 01:07:11 +07:00
Tavee Khunbida
f2696160ae Fix staticcheck failed - error strings should not be capitalized (ST1005) 2019-01-08 01:04:40 +07:00
Franz von der Lippe
d63a5eb53d Fix badly created definition names 2018-10-06 23:18:32 +02:00
astaxie
b05f8ace9e update dep 2018-07-22 11:59:24 +08:00
astaxie
50e2cfbcbd Merge branch 'master' into develop 2018-07-21 23:03:47 +08:00
astaxie
f496e0f36f
Merge pull request #526 from wilhelmguo/master
fix *time.Time type parse error.
2018-07-21 22:29:20 +08:00
Vladimir Alaev
7b2e95e9bd Fix docs generator to handle cases when var is passed to NSInclude() 2018-07-09 18:21:57 +03:00
guoshaowei
bb68873f45 fix *time.Time type parse error. 2018-05-10 14:37:03 +08:00
astaxie
5c1ee91097
Merge pull request #515 from coseyo/bugfix_path
fix api path contain regex string bug
2018-04-20 16:52:15 +08:00
zhongyijun
cb47a5a5fe fix api path contain regex string bug 2018-03-23 14:29:39 +08:00
WUMUXIAN
c23138b457 Added support for ArrayType type definition. 2018-03-16 13:34:54 +08:00
Muxian Wu
611eecc204 Made the example value for enum type sensitive. 2018-03-15 18:05:37 +08:00
Muxian Wu
685c16d5eb Swagger Enum Fix:
1. For now the type inference is not supported, they will be skipped.
2. The enums in the documentation will be listed based on it's position.
3. Be able to support multiple values defined.
2018-03-12 15:52:00 +08:00
WUMUXIAN
d217d0b85c Swagger:
1. Improve the enum support, the enum will be in a format of "enum_name = enum_value"
2. An example value will be automatically generated.
3. Example is disabled for slice field.
2018-03-10 17:35:59 +08:00
astaxie
4ca7777c32
Merge pull request #505 from louisevanderlith/master
Convert error on Swagger Generate
2018-01-18 12:15:58 +08:00
Louise van der Lith
4f53288e6a v.Fun can't always be converted to *ast.SelectorExpr. Added a check to confirm that the object is correct. 2018-01-09 10:49:57 +02:00