Minor improvement to swift-combine client generator (#15892)

* minor improvement to swift combine

* update swift tc
This commit is contained in:
William Cheng 2023-06-23 10:50:12 +08:00 committed by GitHub
parent 9f3d9a5e8f
commit ae8da31772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -1009,6 +1009,7 @@ Here is a list of template creators:
* Swift 3: @hexelon * Swift 3: @hexelon
* Swift 4: @ehyche * Swift 4: @ehyche
* Swift 5: @4brunu * Swift 5: @4brunu
* Swift Combine: @dydus0x14
* TypeScript (Angular1): @mhardorf * TypeScript (Angular1): @mhardorf
* TypeScript (Angular2): @roni-frantchi * TypeScript (Angular2): @roni-frantchi
* TypeScript (Angular6): @akehir * TypeScript (Angular6): @akehir
@ -1164,7 +1165,7 @@ If you want to join the committee, please kindly apply by sending an email to te
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) | | Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) | | Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) | | Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) |
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) | | Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) | | TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
| Xojo | @Topheee (2023/04) | | Xojo | @Topheee (2023/04) |

View File

@ -1,6 +1,5 @@
/* /*
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech) * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
* Copyright 2018 SmartBear Software
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -562,6 +561,7 @@ public class SwiftCombineClientCodegen extends DefaultCodegen implements Codegen
public void setProjectName(String projectName) { public void setProjectName(String projectName) {
this.projectName = projectName; this.projectName = projectName;
} }
@Override @Override
public String toEnumValue(String value, String datatype) { public String toEnumValue(String value, String datatype) {
// for string, array of string // for string, array of string
@ -804,7 +804,9 @@ public class SwiftCombineClientCodegen extends DefaultCodegen implements Codegen
} }
@Override @Override
public GeneratorLanguage generatorLanguage() { return GeneratorLanguage.SWIFT; } public GeneratorLanguage generatorLanguage() {
return GeneratorLanguage.SWIFT;
}
protected void addAnyDecoderIfNeeded() { protected void addAnyDecoderIfNeeded() {
if (!anyDecoderWasAdded) { if (!anyDecoderWasAdded) {