diff --git a/README.md b/README.md index 8cffb653c7d..241f986411c 100644 --- a/README.md +++ b/README.md @@ -1009,6 +1009,7 @@ Here is a list of template creators: * Swift 3: @hexelon * Swift 4: @ehyche * Swift 5: @4brunu + * Swift Combine: @dydus0x14 * TypeScript (Angular1): @mhardorf * TypeScript (Angular2): @roni-frantchi * 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) | | 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) | -| 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) | | Xojo | @Topheee (2023/04) | diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java index 016498ede6b..937715359f8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java @@ -1,6 +1,5 @@ /* * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech) - * Copyright 2018 SmartBear Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -303,7 +302,7 @@ public class SwiftCombineClientCodegen extends DefaultCodegen implements Codegen } return "[String: " + getTypeDeclaration(inner) + "]"; } else if (ModelUtils.isComposedSchema(target)) { - List schemas = ModelUtils.getInterfaces((ComposedSchema)target); + List schemas = ModelUtils.getInterfaces((ComposedSchema) target); if (schemas.size() == 1) { return getTypeDeclaration(schemas.get(0)); } else { @@ -562,6 +561,7 @@ public class SwiftCombineClientCodegen extends DefaultCodegen implements Codegen public void setProjectName(String projectName) { this.projectName = projectName; } + @Override public String toEnumValue(String value, String datatype) { // for string, array of string @@ -804,7 +804,9 @@ public class SwiftCombineClientCodegen extends DefaultCodegen implements Codegen } @Override - public GeneratorLanguage generatorLanguage() { return GeneratorLanguage.SWIFT; } + public GeneratorLanguage generatorLanguage() { + return GeneratorLanguage.SWIFT; + } protected void addAnyDecoderIfNeeded() { if (!anyDecoderWasAdded) {