Fumito Nakazawa
a24d314006
[swift5] Use enum as parameter instead of raw type ( #10967 )
...
* Fix enum type
* Remove operation_id
* Fix samples
2021-12-01 00:34:15 +08:00
Fumito Nakazawa
a620853216
[swift5] Refactor encodeToJSON ( #10961 )
...
* Add protocol extension method
* execute sample script
* Add Packing.cmake
* Revert "Add Packing.cmake"
This reverts commit cb52547fe34c5d17dd83267daa259b7ee3ddd503.
* Remove empty lines
* Revert FILES
* Add Packing.cmake
2021-11-26 00:55:06 +08:00
Fumito Nakazawa
64a478a93c
[swift5] Remove optional from body ( #10938 )
...
* Unwrap body
* Remove unsupported type from nonDecodableBuilder
* Update samples
* Remove !
* Fix typo
2021-11-23 21:18:56 +08:00
Fumito Nakazawa
faae00df91
[swift5] Refactor some codes ( #10937 )
...
* Use compactMap
* Remove as Any cast
* Remove array
* Update samples
2021-11-23 21:18:42 +08:00
WILLIAM CHENG
eb75515715
Merge branch '5.4.x' into 6.0.x
2021-11-21 09:50:47 +08:00
WILLIAM CHENG
78fe5dc427
Merge remote-tracking branch 'origin/master' into 5.4.x
2021-11-21 09:43:21 +08:00
David Horvath
126e406193
[swift5] Cancellable requests ( #10855 )
...
* Implement cancellation of URLSession requests for Combine & RxSwift
resolve #8658
* Add generated sample code
* Add request cancellation for alamofire library and Result configuration
* Add generated sample code
* Add request cancellation for async await configuration
* Add generated sample code
2021-11-18 21:05:18 +08:00
David Horvath
552a31d85c
[swift5] Reuse URLSessions ( #10790 )
...
* Reuse URLSession with same configuration
resolve #8562
* Add typealias for taskDidReceiveChallenge closure type
* Add generated sample code
2021-11-14 10:33:18 +08:00
WILLIAM CHENG
42f4e863b7
prepare 5.4.0-SNAPSHOT
2021-10-25 12:13:33 +08:00
William Cheng
378465702c
Prepare v5.3.1 in the master ( #10681 )
...
* prepare v5.3.1
* update doc
* update readme
2021-10-25 01:16:07 +08:00
William Cheng
0bfa28f844
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-10-06 12:00:02 +08:00
Wim Van Renterghem
4e029e99ea
Remove type erasure of the Error response, as it is always the same type ( #10460 )
2021-09-25 13:52:50 +08:00
Bruno Coelho
7c133be617
[swift5][client] add support for async await ( #10442 )
...
* [swift5][client] add support for async await
* [swift5][client] disable CI for the async await sample project temporarily
2021-09-23 10:53:57 +08:00
William Cheng
acd747ca6d
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-09-22 12:13:44 +08:00
Bruno Coelho
27727acf52
[swift5][client] Fix issue 9953 ( #10387 )
...
* [swift5][client] Fix issue 9953
* [swift5][client] update docs
2021-09-14 11:39:32 +08:00
Bruno Coelho
2732c45cc1
[swift5][client] code formatting and dependencies ordering ( #10370 )
2021-09-13 20:00:20 +08:00
William Cheng
477e2365c7
improve git_push.sh ( #10356 )
2021-09-09 12:49:03 +08:00
William Cheng
0357b80f19
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-09-01 14:16:17 +08:00
Nathan Baulch
5d68bd6a03
Fix thousands of spelling typos ( #10272 )
2021-08-28 22:58:24 +08:00
William Cheng
0204bf4ae2
Squashed commit of the following:
...
commit c5a0d0f7394aa742fa336fff7e7c1d3049761868
Merge: 8c4991ba3ed f8ff8c87609
Author: William Cheng <wing328hk@gmail.com>
Date: Tue Aug 17 18:28:12 2021 +0800
Merge branch 'mustache-linting' of https://github.com/NathanBaulch/openapi-generator into NathanBaulch-mustache-linting
commit f8ff8c87609b1ca36fa26fb8474806999638195e
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:12:47 2021 +1000
Reorder tags that handle missing values
commit f5d8a33709d6a3f846a9fe4520b78c3d637051d9
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:08:59 2021 +1000
Use dot notation where possible
commit 493d14921e2333f3ae19ef6fc89318b7e263a80c
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:10:49 2021 +1000
Remove empty tags
commit 32480dc53f48227d55531b94e307d72671373737
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 10:41:58 2021 +1000
Remove redundant sections
commit a8edabd722c34aa094b4aeb11c22664529c3a219
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Wed Aug 4 22:02:22 2021 +1000
Trim extra EOF new lines
commit e89bd7458e3594bf0d30e580bc9408e45b018a57
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Wed Aug 4 21:59:26 2021 +1000
Trim trailing whitespace
2021-08-17 18:37:51 +08:00
William Cheng
b799ca9ee0
Merge remote-tracking branch 'origin/5.3.x' into 6.0.x
2021-07-27 11:52:19 +08:00
William Cheng
56aafe30d9
Merge remote-tracking branch 'origin/master' into 5.3.x
2021-07-27 11:33:35 +08:00
Christopher Gretzki
d23915a7b4
[swift5 client] fix filename for binary downloads ( #9989 )
...
* fix-filename-from-header-response-retrieval: fix early exit of iteration
before a match could be found
* fix-filename-from-header-response-retrieval: fixed same bug for alamofire usage too
* fix-filename-from-header-response-retrieval: build project and update samples
Co-authored-by: Christopher Gretzki <gretzki@adesso-mobile.de>
2021-07-21 12:37:48 +08:00
William Cheng
05e4c3cf64
update samples
2021-07-12 17:15:22 +08:00
William Cheng
35f933b27f
Merge remote-tracking branch 'origin/5.3.x' into 6.0.x
2021-07-12 17:11:35 +08:00
William Cheng
39fbf53150
create v5.3.0
2021-07-10 00:12:23 +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
Bruno Coelho
f5c3430a26
[swift5][client] avoid local variable name collision ( #9913 )
...
* [swift5][client] avoid variable name collision
* [swift5][client] update sample projects
2021-07-09 01:03:54 +08:00
Tobias Tiemerding
75fc1383bc
Fix typo (Unsuported -> Unsupported) ( #9790 )
2021-06-17 13:44:12 +08:00
Bruno Coelho
687692cedc
update AnyCodable and gitignore ( #9777 )
2021-06-17 00:37:23 +08:00
Ayman Bagabas
f923a0ef15
Swift5 Vapor 4 client library ( #9625 )
...
* [swift5] Add Vapor client library
* Try to improve overall spacing (#17 )
* [swift5] try to remove changes in model and api
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* [swift5] update sample projects
* Update samples
* [swift5] vapor: return clientResponse when no default case
* Update samples
Co-authored-by: Bruno Coelho <4brunu@users.noreply.github.com>
2021-06-06 22:08:14 +08:00
Ayman Bagabas
9bce71656c
Swift5 namespace changes ( #9624 )
...
* [swift5] Rename the API class to {{projectName}}
Instead of {{projectName}}API. This removes some unnecessary naming
complexity.
* [swift5] Define models and Configuration classes under namespace
When swiftUseApiNamespace is set, API classes get defined under the
projectName namespace. This does the same for models and the
Configuration class. Plus adding a deprecation warning when using the
un-namespaced variants.
* [swift5] Use CodingKeys in model decoder
Fixes: 0f5e7d1e3cb9 ("Swift5 models improvements (#9205 )")
* [swift5] Add swiftUseApiNamespace to urlsessionLibrary config
* Update samples
* Try to reduce model changes
Co-authored-by: Bruno Coelho <4brunu@gmail.com>
2021-06-02 00:45:01 +08:00
Bruno Coelho
6cf4843249
[swift5][client] update dependencies ( #9633 )
...
* [swift5][client] update dependencies
* [swift5][client] update sample projects
* [swift5][client] update dependencies in Carthage
2021-06-01 10:09:22 +08:00
Bruno Coelho
dee2840b20
[swift5][client] improve docs for Data ( #9605 )
2021-05-30 17:40:09 +08:00
Bruno Coelho
a61db6e596
[swift5][client] fix binary response ( #9595 )
...
* [swift5][client] fix binary respose
* [swift5][client] fix binary respose
2021-05-27 10:18:51 +08:00
Bruno Coelho
f48311dac4
[swift5][client] make AnyCodable optional ( #9479 )
...
* [swift5][client] make AnyCodable usage optional
* [swift5][client] update sample projects
2021-05-18 23:47:26 +08:00
Bruno Coelho
e6a10ae350
[swift5][client] add option to generate or not the model additional properties ( #9375 )
...
* [swift5][client] add option to generate or not the models additional properties
* [swift5][client] update sample projects
* [swift5][client] format code
* [swift5][client] format code
* [swift5][client] format code
* [swift5][client] update docs
2021-05-15 15:46:32 +08:00
William Cheng
3e58b0908c
Merge remote-tracking branch 'origin/5.2.x' into 6.0.x
2021-04-28 18:08:24 +08:00
William Cheng
37eaf70755
Merge remote-tracking branch 'origin/master' into 5.2.x
2021-04-28 17:48:21 +08:00
Ayman Bagabas
f7c3773903
Swift5 use json type for any ( #9206 )
...
* [swift5] Fix additionalProps inner type
* [swift5] Add and use AnyCodable type instead of any
* [swift5] Use the original petstore w/fake models for testing default
* [swift5] Update swift-tools-version to 5.1
* [swift5] Update samples and docs
2021-04-26 09:57:42 +08:00
Ayman Bagabas
0f5e7d1e3c
Swift5 models improvements ( #9205 )
...
* [swift5] Add useClasses to use `final class` instead of `struct`
* [swift5] Always include CodingKeys enum
* [swift5] Implement model equals and hash functions
* [swift5] Encode `null` values
* [swift5] Test `useClasses` in urlsessionLibrary
* [swift5] Add a required nullable prop test case to 2_0/swift/petstore*.yaml
* [swift5] Update samples and docs
2021-04-24 10:04:30 +08:00
William Cheng
05aa956fe1
update samples
2021-04-22 19:20:11 +08:00
Ayman Bagabas
33107c14de
[Swift5] escape reserved words ( #9204 )
...
* [swift5] `List` is not a Swift data type
* [swift5] Escape reserved words using backticks
https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID412
* [swift5] Update tests
* [swift5] Update samples and docs
2021-04-22 19:13:39 +08:00
Makoto Aoyama
c3b7ecff21
Add Hashable for Struct ( #9166 )
...
* Add hashable for struct
* Remove x-swift-hashable
* Run the shell script ./bin/generate-samples.sh
2021-04-06 10:50:23 +08:00
William Cheng
95d356ab6b
Merge remote-tracking branch 'origin/5.2.x' into 6.0.x
2021-03-21 01:10:46 +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
Markus Wandersee
fae4d7a73d
Fix for StackOverflow in Swift5 CodeGeneration Issue #8671 ( #8672 )
...
* StackOverflowFix for Issue 8671
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-03-15 17:59:09 +08:00