William Cheng
b1564d8002
Fix UUID default value cast exception (swift5) ( #16436 )
2023-08-29 12:32:01 +01:00
ChengDaqi2023
b14f99df92
update golang.org/x/net v0.2.0 to 0.7.0 ( #16148 )
2023-08-29 18:51:32 +08:00
Wojciech Trocki
6310ecdb0f
issue15126: restore default support for golang generator ( #15127 )
2023-08-28 11:38:09 +08:00
William Cheng
80121aa88f
Prepare v7.0.1 ( #16409 )
...
* prepare 7.0.1 in master
* update doc
2023-08-25 16:11:29 +08:00
William Cheng
2635b52b42
[go] fix issue that tempfile is not deleted ( #16303 )
...
* #15131 Issue: Tempfile is not deleted
* delete tempfile in go client
---------
Co-authored-by: Aniruddh <aniruddhjoshi94@gmail.com>
2023-08-11 14:40:56 +08:00
William Cheng
f6fb83878b
[Default] update isAdditionalPropertiesTrue tag to cover more types ( #16227 )
...
* enhance additional properties support
* update samples
* update tests
* add more tests
* update samples
* fix samples
2023-08-05 13:32:43 +08:00
Adam Shannon
90eacb685c
fix(golang): make sure xml.Encoder is closed ( #16141 )
2023-07-26 15:48:46 +08:00
Richard Lavoie
117e5118b1
[GO] Fix value formatting in url with slices ( #15581 )
...
* fix reflect value for Slice
* Add test
2023-07-03 15:45:14 +08:00
William Cheng
6788f43af0
Better handling of Inline schema ( #15682 )
...
* skip allOf inline subschema created as $ref
* add option for fallback
* add back atleastonemodel
* add log
* update java, kotlin, js samples
* update tests
* fix native client test
* fix java client errors by regenerating test files
* clean up python
* clean up powershell
* clean up php
* clean up ruby
* update erlang, elixir
* update dart samples
* update ts samples
* update r, go samples
* update perl
* update swift
* add back files
* add back files
* remove outdated test files
* fix test
2023-06-11 15:35:58 +08:00
Beppe Catanese
f240ed4e4e
[Go] Serialize readonly fields ( #15765 )
...
* Do not skip readOnly fields in ToMap()
* Regenerate sample
* Add test
* Correct test
2023-06-10 19:23:52 +08:00
William Cheng
63a311a2e6
update go samples
2023-06-01 09:09:00 +08:00
rledisez
44ad6d5eac
[go-server] Support min/max/defaults for values ( #15185 )
...
* [go-server] Support min/max/defaults for values
Enforce, for the go-server, to check the minimum and maximum values
specified in the openapi description. Also apply the default if the
parameter is not passed.
Fix #14013
* Fix merge conflict
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Improve UnmarshalJSON implementation
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Improve default value handling for string
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Fix suggested changes
* rework option pattern
* add imports based on types/min max values
---------
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
2023-05-17 01:58:28 +08:00
William Cheng
f0519eb934
Fix Go client tests ( #15505 )
...
* fix go tests
* more fixes
* fix mock
2023-05-14 21:17:48 +08:00
Ween Jiann
78bffff8f3
[Go] Update API naming to follow Golang standard pkg (1 line change) ( #15331 )
...
* Add apiNameSuffix to AbstractGoCodegen
* Regenerate files
* Update tests
* Regenerate files
* Update test files
* Regenerate for CI test
* Regenerate for CI test
* Remove some docs
* Add files back
2023-05-13 09:40:26 +08:00
William Cheng
0c3460f95b
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-05-10 15:00:56 +08:00
Tiffany Marrel
4deaad557e
[Go] fix documentation of API authorization in README files ( #15345 )
...
align wording across generators
2023-05-09 14:24:16 +08:00
William Cheng
935146d187
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-04-12 17:51:47 +08:00
Beppe Catanese
2b796d5c61
[Go] Format error message only when Kind is Struct ( #15154 )
...
* Check if Kind is Struct
* Commit regenerated files
* Tabs indentation instead of 4-space
* Commit regenerated files
2023-04-11 14:39:08 +08:00
William Cheng
5d1e18306a
Prepare 6.6.0-SNAPSHOT ( #15100 )
...
* set 6.6.0 snapshot version
* update samples
* update readme
2023-04-01 18:48:01 +08:00
William Cheng
7417432a54
Prepare 6.5.0 release ( #15099 )
...
* 6.5.0 release
* update samples
2023-04-01 15:03:35 +08:00
William Cheng
1beec7ef87
Merge remote-tracking branch 'origin' into 7.0.x
2023-03-03 21:52:50 +08:00
William Cheng
c50a775e0c
prepare 6.5.0 release ( #14749 )
2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release ( #14748 )
...
* prepare 6.4.0 release
* update samples
2023-02-19 18:53:20 +08:00
Beppe Catanese
68b944e6e6
Preserve order of securitySchemes ( #14536 )
...
* Remove alphabetical sort
* Update integration testing expectations
* Regenerate files
2023-02-10 22:20:19 +08:00
Beppe Catanese
515abf8c68
[Go] Export isNil function in utils.go ( #14625 )
...
* Rename isNil to IsNil
* Regenerate files
2023-02-07 22:15:30 +08:00
William Cheng
cda3517891
[Go] properly set header parameters on api clients ( #14637 )
...
* [Go] properly set header parameters on api clients
* update samples
* update samples
---------
Co-authored-by: Paul Sokolik <paul.sokolik@gmail.com>
2023-02-07 21:45:24 +08:00
Masato Yagi
d8f777d707
Fix the examples and import path in golang client documents ( #14612 )
...
* Correct import
* Fix generated client doc when there is no response body
* generate samples
2023-02-03 21:44:45 +08:00
Gonzalo Gomez
68b41eeeea
[GO][Client] Don't import io/ioutil package that has been deprecated as of Go 1.16 ( #14476 )
...
* io/ioutil has been deprecated ass of Go 1.16, the same functionality is now provided by package io or package os
* run pr checklist
* Bump go version to 1.16.
* Run pr checklist
* Bump version to 1.18
* Run pr check list
2023-02-03 15:50:12 +08:00
William Cheng
31a89e35cb
Prepare 6.4.0 ( #14582 )
...
* update to 6.4.0 snapshot
* update samples
* update doc
2023-02-01 22:44:40 +08:00
William Cheng
8f2676c5c2
Prepare v6.3.0 release ( #14580 )
...
* 6.3.0 release
* fix maven plugin test
* update samples
* update doc
* fix tests in windows
2023-02-01 20:52:29 +08:00
Ian Cubbon
74073df27c
[GO][Client] Use a *os.File
for the API Client when uploading and downloading ( #14340 )
...
* Change the return type of a file back to a pointer
* Change the api template to handle not double pointer-ing return types of os.File
* Fix unit tests
* Couple more unit test fixes
2023-01-16 16:51:04 +08:00
Ian Cubbon
92775ceffc
[Go] [Client] Don't Explode Query Params ( #14447 )
...
* If the collection type is csv, that means 'dont explode the query params'.
* Simplify the logic just a tad
* url.Values -> Has was added in go1.17 but there are CI tests running at 1.16
2023-01-14 00:48:27 +08:00
Beppe Catanese
d0800c46e1
12551 [Go] Skipping marshalling of readonly fields ( #14335 )
...
* Skip toSerialize for readOnly fields
* Commit regenerated files
2023-01-02 23:35:54 +08:00
William Cheng
811e0de1be
replace spaces with tabs in go client ( #14189 )
2022-12-06 13:04:58 +08:00
Ian Cubbon
63629ad51c
[Go] File Download Fix Return Type ( #14046 )
...
* Changes manually cherry-picked (for the most part) from https://github.com/OpenAPITools/openapi-generator/pull/12685/files
* Examples updated post changes
* Missed a change in the mustache template
* Update examples after last fix
* Missed dereference for required files
* Update unit tests
* Missed another test case update
* `f := *f` isn't quite the same as `*f, err = ...`
2022-12-06 12:21:39 +08:00
Andrei Matei
c62ebc377e
[Go] Add authentication methods only if referenced in input spec ( #14138 )
...
* Add conditions for auth methods
* Add extra auth method validations
* Regenerate example SDK
* Clean-up tests
* Fix indentation and go.sum
2022-12-01 15:29:59 +08:00
Ian Cubbon
903ff0ba47
Trim any space when we format the error message sent back to the client. ( #14066 )
...
A trailing whitespace gets included if the error is not a RFC7807 model.
2022-11-20 22:35:21 +08:00
Vittorio Parrella
4487042f0d
Issue 11401 - report correctly the parameters with the deep object specification ( #13909 )
...
* issue #11401 - Go client generator doesn't support deepObject in query
* samples generation
* fix generation
* fix generation
* generated samples
# Conflicts:
# samples/client/petstore/go/go-petstore/model_200_response.go
# samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go
# samples/client/petstore/go/go-petstore/model_client.go
* Fixed unit tests
* revert to http connection for tests
* fix model_simple generation
* Fix parameter encoding issue
* simplified routine
* fix test url
* adapted for latest master, necessary generation
* samples generation
* sync with new master, regenerate samples
* added api client test
2022-11-20 15:09:33 +08:00
William Cheng
6a7b8fcebe
[Go][client] better code format, regenerate go client tests ( #13940 )
...
* go client regenerate test
* replace 4-space with tabs, regenerate tests
2022-11-08 10:40:28 +08:00
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +08:00
Gustavo Bazan
d5f896fe20
[GO] fix identation for model_simple.mustache ( #13919 )
...
* [GO] fix identation for model_simple.mustache
This corrects the identation for recnet changes in #13843
* running the scripts
2022-11-05 22:47:09 +08:00
William Cheng
558ae9373d
Merge remote-tracking branch 'origin/master' into 7.0.x
2022-11-01 21:01:06 +08:00
William Cheng
2947d147b4
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-11-01 17:42:59 +08:00
William Cheng
b0ce532bdc
Prepare 6.2.1 release ( #13871 )
...
* prepare 6.2.1 release
* revert change
* fix maven plugin test
* update meta
2022-11-01 17:16:46 +08:00
Nick Ufer
a04b2623b0
[GO] fix: stops checking for nil for structs ( #13843 )
...
* [GO] fix: stops checking for nil for structs
* [GO] chore: regenerates samples
2022-10-31 22:50:02 +08:00
Beppe Catanese
1de28c8a72
Improve error message (rfc7807) ( #13680 )
...
* Add func formatErrorMessage
* Add unit test
* Commit generated code
* Fix indentation
* Using tabs
* Set error before model
* Commit generated code
* Fix tabs
* Commit generated code
* Fix tabs
* Fix tabs
* Commit generated code
2022-10-31 22:35:16 +08:00
Thibault Duperron
1b65ef38f5
Update dependecies for CVE ( #13834 )
...
* Update dependecies for CVE
fix #13772
* Fix schemas
2022-10-31 10:55:11 +08:00
Maëlick
41255c1f18
Fix staticcheck ST1005 errors in generated Go client ( #13633 )
...
* Fix staticcheck ST1005 errors in go client
* Samples updated
* sample test fix for openapiv3 petstore go client
2022-10-18 22:46:49 +08:00
William Cheng
2bac0a8d99
Merge remote-tracking branch 'origin/6.3.x' into 7.0.x
2022-10-16 21:27:53 +08:00
William Cheng
4d03c9272b
prepare 6.3.0 snapshot
2022-10-15 15:40:47 +08:00