50e2cfbcbd
Merge branch 'master' into develop
2018-07-21 23:03:47 +08:00
f496e0f36f
Merge pull request #526 from wilhelmguo/master
...
fix *time.Time type parse error.
2018-07-21 22:29:20 +08:00
7b2e95e9bd
Fix docs generator to handle cases when var is passed to NSInclude()
2018-07-09 18:21:57 +03:00
bb68873f45
fix *time.Time type parse error.
2018-05-10 14:37:03 +08:00
5c1ee91097
Merge pull request #515 from coseyo/bugfix_path
...
fix api path contain regex string bug
2018-04-20 16:52:15 +08:00
cb47a5a5fe
fix api path contain regex string bug
2018-03-23 14:29:39 +08:00
c23138b457
Added support for ArrayType type definition.
2018-03-16 13:34:54 +08:00
611eecc204
Made the example value for enum type sensitive.
2018-03-15 18:05:37 +08:00
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
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
4ca7777c32
Merge pull request #505 from louisevanderlith/master
...
Convert error on Swagger Generate
2018-01-18 12:15:58 +08:00
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
d70cedc7de
fix issue #501
2017-12-28 00:47:14 +08:00
363abeeae2
add swagger spec support for struct embedded field
2017-11-20 16:36:27 +08:00
76a4feb17e
Merge pull request #458 from BusterMachine7/master
...
array的格式
2017-11-19 11:20:07 +08:00
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
4711873e25
support enum, except iota and type inference.
2017-11-13 14:29:44 +08:00
a5cddac554
Fix docs generator to ignore all child folders of the vendor folder within project dir
2017-10-04 16:54:05 +03:00
fbbb713465
Merge pull request #468 from hamidfzm/master
...
Generate multipart/form-data consumer for API doc
2017-08-18 21:21:44 +03:00
ae1f1a9bf4
Remove wrong consumer
2017-08-16 15:42:40 +04:30
2936241fe6
Update g_docs.go
2017-08-16 15:28:59 +04:30
cdec05b5e3
Generate multipart/form-data consumer for API doc
2017-08-16 14:47:07 +04:30
52c8cb8b6a
Fix #438 . Fix random module matching from swagger generator.
2017-08-01 16:46:05 +03:00
58bfa5c1ec
array format
2017-07-19 15:49:54 +08:00
d0b3ede4ec
array format
2017-07-19 15:38:04 +08:00
2b04261f9c
array format
2017-07-19 14:47:19 +08:00
254174eda6
array format
2017-07-19 14:42:46 +08:00
899aede629
Merge pull request #454 from scf2k/fixscan
...
Fix: docs generator skips everything containing 'vendor'
2017-07-19 00:29:40 +08:00
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
0099ef2f92
support multiple http methods
2017-06-05 18:19:45 +03:00
0000e7d7c9
gosimple
2017-05-19 09:41:47 +08:00
bacdca6037
Merge pull request #421 from eyalpost/develop
...
Add support for controller methods with paramaters
2017-05-18 18:28:36 +08:00
69760a96ec
Merge pull request #436 from franzwilhelm/master
...
Add complete swagger 3.0 security support for oauth2, apiKey and basic
2017-05-16 11:17:35 +08:00
fef25c2c5f
add complete swagger 3.0 security support for oauth2, apiKey and basic
...
fix len(p) handling, add support for global security
update swagger.go in vendor, fix redundant break
2017-05-14 14:38:06 +02:00
49d791502a
Fixed an error in the basicType of pointer when the swagger document was automatically generated
2017-05-08 08:41:12 +08:00
4ef471170e
Fixed an error in the basicType of pointer when the swagger document was automatically generated
2017-05-08 08:38:06 +08:00
50ae47c61f
fix gen doc slice type bug
2017-05-05 11:31:03 +08:00
3f63cd706f
fix gen doc slice type bug
2017-05-05 10:59:45 +08:00
65aec741fb
go fmt
2017-04-28 18:45:26 +03:00
e1f3353511
add ineffassign check
2017-04-28 22:53:38 +08:00
a117a48d7b
add support for controller methods with paramaters
...
- allow automatic mapping of type from method params
- generate swagger for parameters not covered by comment annotations
2017-04-26 00:10:03 +03:00
3daa0d2639
support go1.8 default gopath
2017-04-24 20:10:52 +08:00
1336d6b411
Fixes #401
...
Consider vendor folder when analyzing router.go parsed imports.
2017-04-13 18:10:00 +02:00
09f53c0400
Fix staticcheck emtpy branch error
2017-03-15 17:44:29 +01:00
feea8877c0
go vet
...
go simple
golint
structcheck
staticcheck
unused
unconvert
2017-03-11 10:57:06 +02:00
c538bfbc8f
Refactor!
...
create sub packages
delete unused code
delete code from not use command cmdRouter,cmdTest, cmdRundocs
make command plugins
check with gosimple,staticcheck,go vet,unused,unconvert
2017-03-10 11:48:26 +02:00