Ween Jiann
870ef3a87a
[go-server] Allow user to specify how errors are handled ( #9764 )
...
* Added error.go
* Updated controller to use error
* Fix redeclared func
* Add generated files
* Merge
* Added docs
* Remove variadic
* Regenerate files
* Updated go doc to meet standard
* Updated doc to meet go standard
* Updated
2021-07-28 17:19:47 +08:00
William Cheng
02835b35bc
Prepare v5.2.1 ( #9922 )
...
* bump verions to 5.2.1-SNAPSHOT
* update samples
* update readme
* fix gradle properties
2021-07-09 22:42:31 +08:00
William Cheng
90f7bcd909
Prepare v5.2.0 release ( #9920 )
...
* 5.2.0 release
* update samples
* update meta codegen
2021-07-09 17:06:55 +08:00
Max Goltzsche
2e85ccdec8
[go-server] fix addResponseHeaders tpl option typo ( #9814 )
...
According to the [documentation](https://openapi-generator.tech/docs/generators/go-server ) the go-server generator should support an `addResponseHeaders` option but a template uses an `addResponseHeader` option in some places which this PR fixes.
Closes #9795
Signed-off-by: Max Goltzsche <max.goltzsche@gmail.com>
2021-06-21 11:46:51 +08:00
William Cheng
37eaf70755
Merge remote-tracking branch 'origin/master' into 5.2.x
2021-04-28 17:48:21 +08:00
Aliaksei Zhuk
53e5986800
[Go] Parse int arrays and respect the 'required' property ( #9120 )
...
* Added int arrays parsing in parameters. Respect the 'required' property.
* Replaced spaces with tabs
* Generate samples with new spacing
* Removed unused import
* Merged with latest master
2021-04-11 23:43:53 +08:00
William Cheng
5dae270c3e
[Go][server] parse bool in query parameter ( #9171 )
...
* Add bool query in example
* Add parseBoolParameter
* test with boolean parameter
* add endpiont for testing boolean
* remove bool parameter test
Co-authored-by: Stéphane Guillemot <gmtstephane@gmail.com>
2021-04-05 16:45:38 +08:00
William Cheng
c79d056935
Allow to specify response headers (needed for redirecting clients) ( #9170 )
...
* Allow to specify response headers (needed for redirecting clients) (#8148 )
Co-authored-by: Bernardo Pastorelli <13519917+randomswdev@users.noreply.github.com>
* add addResponseHeaders option
* enable addResponseHeaders
* fix comma
Co-authored-by: randomswdev <randomswdev@users.noreply.github.com>
Co-authored-by: Bernardo Pastorelli <13519917+randomswdev@users.noreply.github.com>
2021-04-05 16:27:41 +08:00
William Cheng
47483e60cb
update version to 5.2.0-SNAPSHOT, update samples
2021-03-21 00:10:10 +08:00
William Cheng
0dc62e8b79
Prepare v5.1.1 in the master ( #9027 )
...
* Prepare v5.1.1 in the master
* move dart dio next to configs/other
2021-03-20 23:05:11 +08:00
William Cheng
e023eaa821
Prepare v5.1.0 release ( #9017 )
...
* prepare v5.1.0 release
* update samples (dart-dio-next)
2021-03-20 16:45:05 +08:00
William Cheng
2c0991dabe
better test for go-server ( #8852 )
2021-02-27 18:21:28 +08:00
Yannick Schutz
85b2b3c2e4
Add mime/multipart missing import in go server ( #8790 )
2021-02-27 14:50:16 +08:00
William Cheng
345b68a107
prepare 5.1.0 snapshot release
2020-12-21 16:35:12 +08:00
William Cheng
d7d5e53f2b
Prepare v5.0.0 release ( #8247 )
...
* update to 5.0.0
* update samples
2020-12-21 13:04:11 +08:00
randomswdev
d1dcdad3d5
[Go][Server] Use the correct parameter name ( #8144 )
...
* Use the correct parameter name
* Minor changes
Co-authored-by: Bernardo Pastorelli <13519917-randomswdev@users.noreply.github.com>
2020-12-20 15:32:57 +08:00
William Cheng
0be3fe6104
Set skipFormModel to true by default ( #8125 )
...
* set skipFormModel to true by default
* update tests
* regenerate ruby faraday client
* remove inline object spec files
* more clean up on inline object files
* update samples
2020-12-18 23:57:19 +08:00
Aliaksei Zhuk
9e5610488f
[Go] Fix for 'Invalid code for files array in multipart/form-data request'… ( #8103 )
...
* Fix for 'Invalid code for files array in multipart/form-data request' (OpenAPITools#8093)
* Executed ensure-up-to-date
* Replaced spaces with tabs.
2020-12-10 18:48:45 +08:00
William Cheng
2578ef5e63
Prepare snapshot (v5.0.0) ( #7986 )
...
* Revert "prepare 5.0.0-beta3 release"
This reverts commit 3ebe774df37b43348bac1310a272de53a2d7040b.
* revert to snapshot
* update samples
2020-11-20 19:19:59 +08:00
William Cheng
2715f1371a
Prepare 5.0.0 beta3 ( #7984 )
...
* prepare 5.0.0-beta3 release
* update samples
* remove beta3 from readme
2020-11-20 15:18:58 +08:00
William Cheng
c44865279a
replace spaces with tabs ( #7421 )
2020-09-15 18:13:07 +08:00
Gmtstephane
4e05912ae7
[GO][SERVER] Implement response code ( #7397 )
...
* Feature(template) add response with status code generation
* Generate Samples
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-09-14 23:14:53 +08:00
William Cheng
2fd23f505e
Prepare 5.0.0-SNAPSHOT ( #7347 )
...
* Revert "Prepare 5.0.0-beta2 release (#7345 )"
This reverts commit 212b4f784742744b7b238607dcefb23ec9db64d7.
* update readme
2020-09-04 15:31:54 +08:00
William Cheng
212b4f7847
Prepare 5.0.0-beta2 release ( #7345 )
...
* update version
* update doc
* update samples
2020-09-04 13:03:45 +08:00
Gmtstephane
15de43f7e4
Remove dot in golang type ( #7307 )
2020-08-31 13:50:20 +08:00
ryutah
b3b4526bf7
[go-server] Modified go-server templates to allow services to receive http request's context. ( #7214 )
...
* adds context arguments to go-server templates (#6657 )
* updates go-api-server samples (#6657 )
2020-08-15 00:11:44 +08:00
William Cheng
5ad2c8315e
update samples
2020-08-06 17:33:32 +08:00
debugman
742b8bd650
added int32 support for go-server ( #7123 )
2020-08-06 17:17:07 +08:00
William Cheng
52fcdd5974
Migrate Go server samples to OAS 3 only ( #6471 )
...
* migrate go server samples to oas3
* add back pom.xml
2020-05-29 11:42:07 +08:00
Jim Schubert
70ca93570e
[core][general] Add metadata file tracking to aid in "Golden Tests" regeneration ( #6325 )
2020-05-22 16:48:32 -04:00
William Cheng
82e2448bf2
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2020-01-20 15:46:13 +08:00
William Cheng
04af5e0445
Merge remote-tracking branch 'origin/master' into 4.3.x
2020-01-20 15:04:34 +08:00
Jim Schubert
ea55968737
Evaluating https issues in CircleCI (on top of CiscoM31-maven-h… ( #5034 )
...
* replace http with https. Replace http://central.maven.org with https://repo1.maven.org
* replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0
* Force HTTPS for mavenCentral gradle DSL
Co-authored-by: Sebastien Rosset <serosset@cisco.com>
2020-01-18 18:53:05 -05:00
William Cheng
50f7e14a99
update samples
2020-01-14 23:07:37 +08:00
William Cheng
466a67c9bc
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2019-12-12 17:27:49 +08:00
William Cheng
3e34903042
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-12-11 15:44:50 +08:00
William Cheng
11c7007429
Prepare v4.2.3 ( #4663 )
...
* update version
* update doc
* update samples
2019-12-02 15:26:01 +08:00
Jason Lee
40799937fb
add go.mod as supporting files to go-server ( #4592 )
2019-11-25 15:58:51 +08:00
William Cheng
fffe7c8a83
update samples
2019-11-23 00:24:50 +08:00
William Cheng
ac8b96b972
update samples without batch mode
2019-11-21 17:13:30 +08:00
William Cheng
facabd4472
Merge branch '4.3.x' into 5.0.x
2019-11-21 15:19:31 +08:00
William Cheng
60f4de0f22
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-11-20 18:15:22 +08:00
William Cheng
f07b3e0521
Prepare 4.2.2-SNAPSHOT ( #4497 )
...
* update to 4.2.2-SNAPSHOT
* update doc
* update samples
* skip ocaml test
* update version
* fix version
2019-11-15 21:34:25 +08:00
William Cheng
db729be7df
[Go][Server] minor enhancement to the template ( #4417 )
...
* minor enhancement to the go server template
* update samples
2019-11-09 11:24:12 +08:00
William Cheng
4ca9430474
sync master, update doc
2019-11-04 09:38:22 +08:00
William Cheng
4824bb7711
sync master, update samples
2019-11-04 09:28:19 +08:00
William Cheng
47e2c0d027
update samples ( #4334 )
2019-10-31 13:31:49 +08:00
William Cheng
5dcde3f855
[Go][Server] better tests ( #4295 )
...
* better test for go-api-server
* better test for go gin server
* fix go-api-server test
* fix folder path
* remove red test
* update test files
* update script with gofmt
* update windows batch files
* discard changes before running ensure-up-to-date
* add go-api-server to ensure uptodate script
2019-10-29 15:15:24 +08:00
Jesse Michael
00c6e0a64b
Return Router interface from controller constructor. ( #4196 )
...
Update the go server api controller template to return the Router interface instead of the api specific router.
The Router interface type has the Routes function, which is what the generated `NewRouter` function needs. (not the api specific interface).
2019-10-22 15:27:08 +08:00
William Cheng
f43c720b08
replace 4-space with tab ( #4188 )
2019-10-20 00:46:25 +08:00