Commit Graph

106 Commits

Author SHA1 Message Date
Ming Deng 6b1c370fd0 Fix static check 2021-05-07 21:10:49 +08:00
Ming Deng cbb523325d
Merge pull request #762 from flycash/generateRouters
Add bee generate routers command
2021-02-09 23:54:59 +08:00
Ming Deng 22a4b07b4a Add bee generate routers command 2021-02-09 23:34:45 +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 3b2304a480
Merge pull request #753 from flycash/updateMd
upgrade version to 2
2020-12-16 13:54:19 +08:00
Ming Deng 06e09b0f87 upgrade version to 2 2020-12-16 13:35:23 +08:00
Ming Deng 642d933c4a
Merge pull request #747 from flycash/updateMd
using beego v2
2020-12-14 13:20:03 +08:00
Ming Deng cdb41fad3f using beego v2 2020-12-14 13:08:47 +08:00
Ming Deng c619ccf1b3
Merge pull request #746 from flycash/updateMd
Using beego/beego
2020-12-14 01:04:08 +08:00
Ming Deng 9d68c302bd Using beego/beego 2020-12-14 00:47:33 +08:00
chenli e3e1a9849f fix 2020-12-03 22:01:24 +08:00
chenli 32230de2ea fix issues #730 2020-12-02 23:02:26 +08:00
Ming Deng f2a93c8c75 using beego to rerwite all commands 2020-11-05 23:57:37 +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
Faissal Elamraoui 4b7edb7235
Merge pull request #559 from s00500/develop
Adds  "-dir" option to migrate command to set migrations directory
2019-01-16 07:47:03 +01: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
Lukas Bachschwell 3d977edbb4 Adding dir parameter to migrate command 2018-11-12 13:10:43 +01: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