Bruno Coelho
7a5d0d1a71
[kotlin][client] remove old deprecated apis ( #21988 )
2025-09-18 17:28:42 +08:00
yzaoui
2a556ff24e
Fix missing @Serializable
on enums for kotlin/jvm-retrofit2 ( #21907 )
...
* Add @Serializable annotation to enum for kotlinx-serialization
* Adjust template, generate samples
* Fix template
2025-09-06 10:17:28 +08:00
Bruno Coelho
701b6bd576
[kotlin][client] make kotlinx serialization configurable ( #20955 )
...
* [kotlin][client] make kotlinx serialization configurable from outside
* [kotlin][client] make kotlinx serialization configurable from outside
2025-03-26 10:19:24 +00:00
Ross Sullivan
e1130c343a
Added HTTP method+path to JavaDocs in kotlin clients ( #20618 )
...
* feat: Added HTTP method+path to JavaDocs in kotlin OkHTTP client
* feat: Added HTTP method+path to JavaDocs in kotlin Ktor client
* feat: Added HTTP method+path to JavaDocs in kotlin retrofit2 client
* feat: Added HTTP method+path to JavaDocs in kotlin vertex client
* feat: Added HTTP method+path to JavaDocs in kotlin volley client
2025-02-09 21:55:23 +08:00
Jan Škrášek
d442fc9a65
[kotlin][client] do not generate Serializable(forClass) annotation as the serializer is already defined ( #20092 )
2024-11-14 14:10:07 +00:00
Pavel Sveda
acb16410c4
[Kotlin] Introduce support for Kotlin Explicit API Mode for Kotlin-Client generator ( resolve #16506 ) ( #19999 )
...
* [Kotlin] Properly document nonPublicApi CLI option
* [Kotlin] Respect parameter name of parent KSerializer to avoid miss-behavior
* [Kotlin] Introduce support for Kotlin Explicit API Mode for Kotlin-Client generator (resolves #16506 )
2024-10-30 21:57:47 +00:00
Bruno Coelho
42e8f762ac
[Kotlin][Client] Encode default values with kotlinx serialization ( #19253 )
...
* [Kotlin][Client] Encode default values with kotlinx serialization
* [Kotlin][Client] Encode default values with kotlinx serialization
2024-07-29 08:42:57 +01:00
William Cheng
7747cc93e0
[Kotlin] update ApiClient to register all adapters for GsonBuilder ( #18965 )
...
* update api client to register type adapter
* update samples
* remove json array variable name
2024-06-20 00:20:11 +08:00
William Cheng
353320cb04
[kotlin] better oneOf, anyOf support ( #18382 )
...
* add validteJsonElement
* add oneOf support
* various fixes, add tests
* minor fixes
* minor fixes
* update data class
* remove comments
* array support, add test
* update api client constructor
* add anyOf support
* add new files
* fix merge
* update
* update
* update
* update
2024-05-31 12:22:27 +08:00
Lars Thern
2a15270589
[KOTLIN] Kotlinx serialization, use first party retrofit converter factory ( #18656 )
...
* Switch the jakewharton converter factory for the first party one
* Run all samples generation
2024-05-13 12:28:35 +01:00
William Cheng
f191904297
Add auto-generated test files for kotlin client ( #17916 )
...
* add auto-generated test files for kotlin client
* undo changes to doc
* add auto-generated model test files in kotlin clients
* update tests
2024-02-21 18:29:23 +08:00
Csaba Kozák
0aff1a6504
[kotlin][client] Fix compilation error when all auth method is mapped to null ( #16861 )
2023-10-24 07:38:41 +01:00
Bruno Coelho
f31c2a4b17
[kotlin][client] Add new line at the end of all files ( #16062 )
...
* [kotlin][client] add new line at end of files
* [kotlin][client] add new line at end of files
2023-07-11 17:07:06 +08:00
Tiffany Marrel
0e212f53f2
[Java] [Kotlin] ignore unsupported schemes instead of throwing exception ( #15817 )
2023-06-15 16:50:49 +08:00
Csaba Kozák
25aba7279a
[kotlin][client] Use Kotlin code style in parameter enum class names ( #15447 )
...
* [kotlin][client] Use Kotlin code style in parameter enum class names
before: MyParam_myOperation
after: MyParamMyOperation
* [kotlin][client] update generated samples
2023-05-09 16:33:30 +01:00
Dylan Kwon
b6d2e0d222
Added converterFactories property to ApiClient in jvm-retrofit2. ( #15008 )
...
* Added converterFactories property to ApiClient in jvm-retrofit2.
* [retrofit2] Supplement deprecate contents of converterFactory
* [retrofit2] Supplement deprecate contents of converterFactory
* [retrofit2] converterFactory removed.
* [retrofit2] sample update.
* [retrofit2] Type mismatch fix in Rx.
2023-03-22 15:06:04 +00: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
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
Antti Leppä
11c43c3c2b
Added Kotlin Vert.x client ( #13594 )
...
* Initial version of Kotlin Vert.x client
* Initial version of Kotlin Vert.x client
* Initial version of Kotlin Vert.x client
* Fix for parseDateToQueryString issue in vert.x kotlin client
* Moved common methods from api to ApiClient in kotlin vert.x client
* Fixed issue with absolute URLs
* bearer auth for oauth
* empty request headers fix
* missing import and typo
* added uri template dependency
* added api abstractions to client generator
* added full import form infrastructure
* removed fail on unknown properties to response body parsing
* fixed error response parsing
* replace vertx client name to more unique
* multiline content type
* optional responses added to template
* additional annotations for kotlin client
* Added additionalModelTypeAnnotations parameter support to AbstractKotlinCodegen
* Updated samples and documents
* Fixed issues with gson and moshi serializers with kotlin-jvm-vertx client
* Added sample configs for kotlin-jvm-vertx clients with gson, jackson and moshi
* Added samples for kotlin-jvm-vertx clients with gson, jackson and moshi
* Included kotlin-jvm-vertx samples to test build
* Updated samples
Co-authored-by: Katja Danilova <katja.danilova@protonmail.com>
2022-10-19 22:29:34 +08:00
Bruno Coelho
1235ccd391
[kotlin][client] move info to readme ( #13649 )
...
* [kotlin][client] move info to readme
* [kotlin][client] update sample projects
2022-10-11 11:07:36 +01:00
Julian Kalinowski
af0c9d2ca4
[kotlin] fix enum default values ( #13404 )
...
* [kotlin-okhttp]: fix enum default parameters
* [kotlin-retrofit]: add enum support
* update samples
2022-09-19 14:22:50 +01:00
Bruno Coelho
87dc75780a
[kotlin][client] add support for unknown default case with Kotlinx Serialization ( #12930 )
...
* [kotlin][client] Kotlinx Serialization cleanup
* [kotlin][client] Kotlinx Serialization cleanup
* [kotlin][client] add support for unknown default case with Kotlinx Serialization
* [kotlin][client] add support for unknown default case with Kotlinx Serialization
* [kotlin][client] add support for unknown default case with Kotlinx Serialization
* [kotlin][client] improve Kotlinx Serialization naming
* [kotlin][client] improve Kotlinx Serialization naming
2022-07-26 09:42:19 +01:00
Bruno Coelho
8d62e597ae
[kotlin][client] Kotlinx Serialization code formating ( #12922 )
...
* [kotlin][client] Kotlinx Serialization cleanup
* [kotlin][client] Kotlinx Serialization cleanup
2022-07-19 14:05:17 +01:00
Johan Sjöblom
706791f43f
[Bug][Kotlin-client] Can now handle path param of type list ( #12244 )
...
* Bugfix Kotlin-client: Can now handle path param of type list for jvm-volley and multiplatform. Also cleaning up generated code
* Adding samples to github workflow. Deleting old workflow
* Tweaking setup of jvm-volley
* Updating samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-05-05 01:04:20 +08:00
Johan Sjöblom
8950a9a3c0
[BUG][Kotlin-client] Handling default values of parameters ( #12255 )
...
* Bugfix Kotlin-client: Handling default values of parameters
* Adding object
2022-04-29 15:26:29 +01:00
Ashutosh Gangwar
1bfed460c5
Fix missing ApiKeyAuth import in 'jvm-retrofit2' Kotlin client template ( #11286 )
...
* fix incorrect ApiKeyAuth import in jvm-retrofit2 kotlin-client template
links to
- https://github.com/OpenAPITools/openapi-generator/issues/10008
- https://github.com/OpenAPITools/openapi-generator/pull/10708
* update kotlin-retrofit2 samples
2022-01-12 19:22:24 +08:00
Bruno Coelho
eb224db540
[kotlin][client] remove old Date usage ( #11082 )
...
* [kotlin][client] remove old Date usage
* [kotlin][client] remove old Date usage
2021-12-14 16:03:12 +08:00
William Cheng
fbb61658df
[kotlin][client] rename ApiInfrastructureResponse to ApiResponse ( #11094 )
...
* rename ApiInfrastructureResponse to ApiResponse
* mark ApiResponse as reserved word
* update samples, docs
* fix typo
2021-12-12 16:32:08 +08:00
Bruno Coelho
57afa97166
[kotlin][client] add base url key ( #10633 )
...
* [kotlin][client] add base url key
* [kotlin][client] update sample projects
* [kotlin][client] add base url key
2021-11-02 23:32:42 +08:00
Surya Asriadie
0936b43dfd
[Kotlin] Fix default value for kotlin class ( #10407 )
...
* Fix default value for kotlin class
* fix style: remove trailing line
* fix ktorm schema
2021-09-17 01:12:41 +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
Noor Dawod
e39e4bcd6e
Kotlin client/spacings indentations ( #9853 )
...
* Bump jimschubert/query-tag-action from 1 to 2
Bumps [jimschubert/query-tag-action](https://github.com/jimschubert/query-tag-action ) from 1 to 2.
- [Release notes](https://github.com/jimschubert/query-tag-action/releases )
- [Commits](https://github.com/jimschubert/query-tag-action/compare/v1...v2 )
Signed-off-by: dependabot[bot] <support@github.com>
* Adjust spacings, bring back suppresses to silence IntelliJ IDEs.
* Suppress few warnings since we know we are using them in the code.
* toLowerCase() is deprecated.
* Wrap enum values in backticks to guard against reserved names, bring back encode/decode for each enum.
* Wrap property names in backticks to guard against reserved names.
* Regenerate samples.
* Do not warn about unused imports.
* Regenerate samples.
* Updated petstore code.
* Add missing reserved Kotlin operators and special keywords.
* Revert adding backticks.
* Regenerate pet store shop code.
* Remove unused suppression.
* Use 3 braces to wrap name.
* Regenerate pet store shop code.
* Remove get from reserved words.
* Revert back removal of description.
* Regenerate source code for Petstore.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-02 17:38:22 +08:00
Bruno Coelho
0f51662650
[kotlin][client] small improvements ( #9640 )
...
* [kotlin][client] standardize adapter type names
* [kotlin][client] remove unused class
* [kotlin][client] fix IDE warning
* [kotlin][client] improve import layout
* [kotlin][client] update sample projects
2021-06-02 11:07:26 +08:00
Bruno Coelho
463ae10c4a
[kotlin][client] update dependencies ( #9629 )
...
* [kotlin][client] update dependencies
* [kotlin][client] update sample projects
* [kotlin][client] fix update dependencies
2021-06-01 10:09:48 +08:00
Stefan Hanselmann
1b6fd2dd7a
[Kotlin][retrofit2] replace okhttpclient with callfactory ( #9451 )
...
* [Kotlin][Retrofit][#9448 ] Replace OkHttpClient parameter with Call.Factory.
* [Kotlin][Retrofit][#9448 ] Update sample project.
2021-05-28 21:50:28 +08:00
Stefan Hanselmann
d1b8a3fac4
[Kotlin] [ #8809 ] Allow optional header parameters with Kotlin and ret… ( #9306 )
...
* [Kotlin] [#8809 ] Allow optional header parameters with Kotlin and retrofit2
* [Kotlin] [#8809 ] Update sample client
* [Kotlin] [#8809 ] Replace mustache dot notation with more classic style
* [Kotlin] [#8809 ] Remove new line at the end of the mustache template
2021-05-20 23:07:04 +08:00
Kazuki Chigita
1ff436a86a
[REQ] [kotlin-client] Add uriAdapter for moshiBuilder ( #9494 )
...
* Apply UriAdapter to moshiBuilder
* Add UriAdapter for supportingFiles
* Fix test
* Apply ./bin/generate-samples.sh
2021-05-20 23:05:22 +08:00
Stefan Hanselmann
22950fa2b2
[Kotlin][ #9313 ] Generator should support optional form parameter ( #9314 )
...
* [Kotlin][#9313 ] Make form params optional in Kotlin retrofit2 template.
* [Kotlin][#9313 ] Update sample files.
* [Kotlin] [#9313 ] Remove new line at the end of the mustache template
2021-04-23 12:30:58 +08:00
Stefan Hanselmann
5468b22b83
[Kotlin][ #7925 ] Make ApiClient in jvm-retrofit2 be able to add additional retrofit Converter.Factory ( #9316 )
...
* [Kotlin][#7925 ] Add an optional Converter.Factory to the Kotlin retrofit2 ApiClient template.
* [Kotlin][#7925 ] Update sample project.
2021-04-22 19:07:55 +08:00
Cody Mikol
b5dac42959
feat(adapter): add BigDecimal kotlin support ( #8880 )
...
* feat(adapter): add BigDecimal kotlin support
this allows the kotlin client generator to support
BigDecimal values
Fixes #7196
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-04-16 22:24:10 +08:00
Stieglitz
6dce8179de
[Kotlin] Fix (de)serialization of enum classes (kotlinx serialization) ( #9143 )
...
* fix kotlin enum serialization
* fix kotlin serialization compiler warning
* change samples
2021-04-16 10:46:51 +08:00
Nikita Karnaukh
d657e95021
[Kotlin][Client] Added Kotlinx Serialization for JVM/Retrofit2/OkHttp3&4 ( #6916 )
...
* Added supporting kotlin.serialization for jvm
* Added Serializable annotations for java types(date,time,url,uri etc.)
* Added SafeEnumSerializer
* Added StringBuilderAdapter for kotlin.serialization
Fix adapter naming
Fix Retrofit ApiClient.kt for kotlin.serialization
* Added StringBuilderAdapter for kotlin.serialization
* Switch sample to retrofit2-kotlin-serialization
* Add sample for retrofit2-kotlin.serialization
* update sample
* update sample
* update sample #3
* Fix enum quotes for kotlin.serialization
* update samples
* update pom.xml
* add pom.xml to child module
* fix kotlin-multiplatform freeCompilerArgs
* refactoring, add useSafeEnum option, remove safeEnum for kotlin.multiplatform
* update kotlin samples
* fix import kotlinx.serialization.Required
* Update kotlinx.serialization 1.0.0-rc-2, kotlin 1.4.10, retrofit-kotlinx-converter 0.7.0
* Update gradle wrapper 6.7-rc-3
* fix SafeEnum import
* fix Json initialization,
fix SafeEnumSerializer
* update samples
* update kotlinx.serialization to 1.0.0
* Update gradle to 6.7 in kotlin samples
* fixed adding @Contextual for collections with non-primitive type elements
* remove unused SafeEnum imports, refactored
* update kotlin readme
* update kotlin project template Readme.md
* update samples for kotlin
* simplify template for class properties
* remove @Contextual from kotlin-multiplatform
* update kotlin multiplatform dependencies
* refactoring templates
* revert all changes for multiplatform
* fix tests
* revert multiplatform #2
* update samples after merge, fix missed isListContainer->isArray
* fixed redundant space before @Contextual
* Fixed enum template, Class were missed in generated samples
* fix enum template toString value->serialName
* fixed isEnum case for collections
* update samples
* removed useSafeEnum option, kotlinx serialization has out of box approach with coerceInputValues option for same behavior
* generate samples
* update kotlinx.serialization 1.0.1
* update samples
* Added pom.mustache template for kotlin-client samples with fixed execution of gradle wrapper instead standalone installed gradle on CI
* update samples with new pom.xml
* reverted enum value property name
* fixed kotlin-multiplatform pom.xml
* update kotlin-threetenbp sample
* update kotlin-string sample
* update kotlin-string sample
* fix adding kotlinx.serialization classpath to build.gradle
* generate samples
* add supporting kotlinx_serialization kotlinx.serialization.Serializable with java.io.Serializable at the same time
* update retrofit2-kotlinx-serialization-converter:0.8.0
* update kotlinx_serialization sample with retrofit2-kotlinx-serialization-converter:0.8.0
* apply suggest from @blendthink
* added proguard-rules.pro file for kotlinx.serialization on Android projects
* fix pom.mustache
* update gradle wrapper to 6.8.3
* update kotlin samples
* fix kotlin readme template, update kotlin samples
* update kotlin samples
* update kotlin sample
delete petstore/kotlin unit tests
* revert deletion kotlin client tests
remove adding pom.xml to kotlin client samples
* add support kotlinx serialization for okhttp3/4
* update kotlin client samples
2021-03-19 18:12:23 +08:00