1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00
Commit Graph

72 Commits

Author SHA1 Message Date
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
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
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
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
Terry Ding
d70cedc7de fix issue #501 2017-12-28 00:47:14 +08:00
hemin
363abeeae2 add swagger spec support for struct embedded field 2017-11-20 16:36:27 +08:00
astaxie
76a4feb17e
Merge pull request #458 from BusterMachine7/master
array的格式
2017-11-19 11:20:07 +08:00
astaxie
2265bfb0ff
Merge pull request #479 from scf2k/vendor-scan
Fix docs generator to ignore all child folders of the vendor folder
2017-11-19 11:18:32 +08:00
ilylia
4711873e25 support enum, except iota and type inference. 2017-11-13 14:29:44 +08:00
Haojin Gui
7d78224b99 Remove redundant selectedTables.
When selectedTables is not nil, we are already generating tables
from it. So we don't need to pass it further.
2017-10-20 23:32:13 -07:00
Vladimir Alaev
a5cddac554 Fix docs generator to ignore all child folders of the vendor folder within project dir 2017-10-04 16:54:05 +03:00
Sergey Lanzman
fbbb713465 Merge pull request #468 from hamidfzm/master
Generate multipart/form-data consumer for API doc
2017-08-18 21:21:44 +03:00
Hamid FzM
ae1f1a9bf4 Remove wrong consumer 2017-08-16 15:42:40 +04:30
Hamid FzM
2936241fe6 Update g_docs.go 2017-08-16 15:28:59 +04:30
Hamid FzM
cdec05b5e3 Generate multipart/form-data consumer for API doc 2017-08-16 14:47:07 +04:30
Givi Khojanashvili
52c8cb8b6a Fix #438. Fix random module matching from swagger generator. 2017-08-01 16:46:05 +03:00
zhangyanzhe
58bfa5c1ec array format 2017-07-19 15:49:54 +08:00
zhangyanzhe
d0b3ede4ec array format 2017-07-19 15:38:04 +08:00
zhangyanzhe
2b04261f9c array format 2017-07-19 14:47:19 +08:00
zhangyanzhe
254174eda6 array format 2017-07-19 14:42:46 +08:00
astaxie
3b3da1655d Merge pull request #444 from qida/develop
读取 ref(pk) 值
2017-07-19 00:31:29 +08:00
astaxie
d29f8e8ec3 Merge pull request #441 from hudangwei/develop
fix #440 only get these tables information in custom the option ‘-tab…
2017-07-19 00:30:54 +08:00
astaxie
899aede629 Merge pull request #454 from scf2k/fixscan
Fix: docs generator skips everything containing 'vendor'
2017-07-19 00:29:40 +08:00
Gnanakeethan Balasubramaniam
552111517e
Revert "Update: complementary fix for removing calling ddlSpec on migration"
The odds of getting this perfectly up is not good.

This reverts commit 3673659178.
2017-07-16 08:13:08 +05:30
Gnanakeethan Balasubramaniam
3673659178
Update: complementary fix for removing calling ddlSpec on migration
file.

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-16 07:25:36 +05:30
Gnanakeethan Balasubramaniam
042a4cf244
Update: fixing switch statement
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-13 21:24:53 +05:30
Gnanakeethan Balasubramaniam
ea63bf253e
UPDATE: creating ddl migration spec is now possible
SUMMARY: The DDL migration can now be generated by adding a `-ddl` and a
proper "alter" or "create" as argument value.

Migration generation had been modified to accommodate the complementary
code for ddl generation

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-13 20:30:06 +05:30
Vladimir Alaev
416fb2ec9d Fix: docs generator skips everything containing 'vendor' in path which is wrong. Fixed that to skip only the 'vendor' dir directly under the project root. Also don't even scan a dir beginning with a '.'. 2017-07-12 17:23:53 +03:00
sunqida
5c3807e29a Merge remote-tracking branch 'remotes/beego/develop' into develop 2017-06-08 20:31:10 +08:00
Eyal Post
0099ef2f92 support multiple http methods 2017-06-05 18:19:45 +03:00
qida
681fc57e16 读取 ref(pk) 值 2017-06-05 09:34:38 +08:00
hudangwei
812b8c4e5b if tag.Comment is empty, the ORM tag string will not contain description 2017-05-30 19:43:40 +08:00
hudangwei
f5471680e4 fix tag description,add tag description by getting database table information column comment 2017-05-30 16:21:45 +08:00
Carlos Salguero
b4bee5cceb Added MySQL year data type 2017-05-29 15:48:57 -03:00
hudangwei
f657d22fc7 fix tag description,add tag description by getting database table information column comment 2017-05-26 13:30:28 +08:00
hudangwei
8b01334faf fix #440 only get these tables information in custom the option ‘-tables’ 2017-05-20 13:06:25 +08:00