Bruno Coelho
3eaafce569
[kotlin][client] Use OffsetDateTime to represente date-time received by the server ( #4835 )
...
* [kotlin] add OffsetDateTime support
* [kotlin] serializer add missing import
* [kotlin] update pet projects and fix tests
* [kotlin] update docs
* [kotlin] update pet projects
* [kotlin] update date-time
* [kotlin] update pet project
* [kotlin] update windows script
2019-12-20 23:20:02 +08:00
William Cheng
165a9e0508
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2019-12-20 20:52:27 +08:00
William Cheng
531dc30917
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-12-20 20:38:49 +08:00
Bruno Coelho
9feaae8572
[kotlin][client] make serializer configurable ( #4740 )
...
* [kotlin][client] make serializer configurable
* [kotlin] update pet projects
2019-12-20 18:08:16 +08:00
Bruno Coelho
b6fd1b0ade
[kotlin][client] expose http status code on errors ( #4742 )
...
* [kotlin][client] expose http status code on errors
* [kotlin] update pet projects
* [kotlin] update pet projects
2019-12-20 18:06:35 +08:00
Bruno Coelho
265ad2297b
[kotlin] add options sortParamsByRequiredFlag and sortModelPropertiesByRequiredFlag ( #4707 )
...
* [kotlin] add option to sortParamsByRequiredFlag
* [kotlin] add option to sortParamsByRequiredFlag
* [kotlin][client] sort parameters in the models
* [kotlin] update docs
* [kotlin][client] simplify sortParamsByRequiredFlag implementation
* [kotlin] experiment with sortnmodel properties by name
* [kotlin] introduce sortModelPropertiesByRequiredFlag
* [kotlin] update docs
* [kotlin] update kotlin
* [kotlin] fix tests
* [kotlin] update docs
* Revert "[kotlin] update docs"
This reverts commit 88ad825de5b4c090fe04398bdfde2e9d3252742f.
* [kotlin] update docs and petstores
* [kotlin] update docs
* [kotlin] update pet projects
2019-12-20 17:42:48 +08:00
Alexander Eggers
bb93a3b1e2
[Kotlin][Client] Request date converter ( #4750 )
...
* Added new cli option to define the request date converter
* Fixed a few build errors
* Update api.mustache
* Fixed api mustache
* Removed unused import
* Fixing mustache templates
* Tweaking mustache templates
* Added sample and new bat file
TODO create new openapi 2.0 source file to simulate the datestring via schema.
* Tweaking mustache templates
* Updated templates and samples
* Fixed build error
* Updated samples
* Fixed path
2019-12-18 10:22:29 +08:00
Alexander Eggers
02f5cb1a65
[Kotlin][Client] Added new option to enable moshi code generator ( #4781 )
...
* Added new option to enable moshi code generator
* Tweaking Serializer template
2019-12-14 14:39:16 +08:00
William Cheng
466a67c9bc
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2019-12-12 17:27:49 +08:00
William Cheng
5f5401bca6
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-12-12 17:24:57 +08:00
facundomedica
2277934d5e
[Kotlin] fix basic authentication compilation issue ( #4772 )
...
* Fix #4771
* update samples
2019-12-12 17:18:07 +08:00
William Cheng
11c7007429
Prepare v4.2.3 ( #4663 )
...
* update version
* update doc
* update samples
2019-12-02 15:26:01 +08:00
William Cheng
4ed742b6bc
update samples
2019-11-21 15:24:13 +08:00
William Cheng
facabd4472
Merge branch '4.3.x' into 5.0.x
2019-11-21 15:19:31 +08:00
William Cheng
60f4de0f22
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-11-20 18:15:22 +08:00
William Cheng
f07b3e0521
Prepare 4.2.2-SNAPSHOT ( #4497 )
...
* update to 4.2.2-SNAPSHOT
* update doc
* update samples
* skip ocaml test
* update version
* fix version
2019-11-15 21:34:25 +08:00
William Cheng
05e954c8aa
prefix local variable with localVar ( #4402 )
2019-11-08 15:04:33 +08:00
Bruno Coelho
7cf027fbf5
[kotlin][client] gson complete integration ( #4332 )
...
* [kotlin] update dependencies
* [kotlin][client] complete gson integration
* [kotlin][client] run petstores
* [kotlin][client] fix JsonMediaType and update petstores
* Add kotlin client gson to pom.xml
* Remove org.json dependency
* Try to fix kotlin-gson build
* Add kotlin client nonpublic to pom.xml
* Update samples
* try to fix build
* try to fix build
* try to fix build
* try to fix build
* [kotlin][client] restore libraries version
* [kotlin][client] update kotlin version
* [kotlin][client] update some libraries versions
* [kotlin][client] update some libraries versions
* [kotlin][client] add kotlin-gson and kotlin-nonpublic to CI test suit
* [kotlin][client] update some libraries versions
* try to fix build
* try to fix build
2019-11-08 15:02:48 +08:00
William Cheng
4ca9430474
sync master, update doc
2019-11-04 09:38:22 +08:00
William Cheng
4824bb7711
sync master, update samples
2019-11-04 09:28:19 +08:00
Bruno Coelho
de9f56969d
[kotlin][client] annotate api exceptions ( #4339 )
...
* [kotlin][client] annotate api call exceptions
* [kotlin][client] run petstores
2019-11-03 17:26:46 +08:00
William Cheng
47e2c0d027
update samples ( #4334 )
2019-10-31 13:31:49 +08:00
Andrew Emery
a2b37d67c0
Kotlin query collection format ( #4248 )
...
* Fixes incorrect query header collection constants
The OpenApi codegen converts OpenApi v2 documents into an OpenApi v3
representation. The query parameter collection formats are squeezed
into different values from the raw OpenApi 2 collection format values.
For example: csv -> space
See: DefaultCodegen#getCollectionFormat
* Updates kotlin samples
2019-10-29 22:55:04 +08:00
Andrew Emery
d92d84bb12
Kotlin multiplatform auth ( #4284 )
...
* Includes support for the Javascript platform
* Fixes enum serialization with non-string values
* Updates to expose api dependencies to consumers
* Uses explicit class name for Kotlin collection classes
* Maps unknown object type to Kotlin String
The Kotlinx serialization library uses reflectionless serialization and
requires compile-time serialization declarations. As a result, unknown
objects are mapped to Kotlin String instances to enable compilation
where object types are not explicitly defined.
* Improves support for binary objects
Previously, objects that contained binary data were assigned the
InputProvider data type. This was suitable for a binary input form
parameter, but unsuitable for Base64 or octet binary strings. These
binary strings are now assigned a more suitable object.
* Includes Kotlin Multiplatform auth classes
Includes support for:
- api key
- http basic
- http bearer
- oauth (partial support)
https://github.com/OpenAPITools/openapi-generator/issues/4283
* Updates Kotlin samples
2019-10-28 16:03:49 +08:00
Bruno Coelho
620aa4fd5e
[kotlin][client] only use authentication tokens when they are not null ( #4238 )
...
* [kotlin-client] only use authentication tokens when they are not null
* [kotlin-client] only use authentication tokens when they are not null
2019-10-24 00:46:46 +08:00
atetzner
ba04939c7a
Fix generation of query parameters for optional/nullable function arguments ( #3903 )
...
* OpenAPITools/openapi-generator#3880 Fix generation of query parameters for optional/nullable function arguments
* OpenAPITools/openapi-generator#3880 Updated generated samples
2019-10-21 14:18:42 +08:00
wing328
54151891cc
Merge branch 'master' into 5.0.x
2019-10-17 11:18:57 +08:00
Bruno Coelho
3cd74f4a8d
[kotlin] add option for non public api ( #4089 )
...
* [kotlin] add option for non public api
* [kotlin] update petstores
* [kotlin] add missing script to kotlin-client-all.sh
* [kotlin] update pet projects
* [kotlin] remove public modifier
* [kotlin-client] inline visibility modifier
2019-10-10 21:56:40 +08:00
William Cheng
b69b8cdd31
[Kotlin][Client] fix missing curly bracket when the model contains enum property ( #4118 )
...
* fix kotlin okhttp3, add CI test
* update kotlin server sample
2019-10-10 18:21:50 +08:00
Bruno Coelho
7a369d3b02
[kotlin-client] Add support okhttp3 and Android 4.x ( #4008 )
...
* [kotlin] support okhttp3
* [kotlin] create okhttp3 sample
* [kotlin-client] rename HttpClient to HttpLibrary
* [kotlin] move okhttp 3 to library model
* [kotlin] fix okhttp3 version
* [kotlin] fix kotlin client jvm okhttp3
* [kotlin] fix wrong spacing in okhttp3 code
* [kotlin] update okhttp3 sample to use parcelize models
* [kotlin] readd jvm tag
2019-10-09 16:38:07 +08:00
Jan
bbfcd3bf64
[kotlin-client][kotlin-server] Feature/kotlin data class serial version uid ( #4021 )
...
* feat: add companion object to data classes if the implement the interface java.io.Serializable
* style: format template file
* style: adapt to project's original code style
* fix: add missing imports
* style: reverted mustache template to original styling
* test: generate additional samples for kotlin-springboot-reactive and kotlin-springboot
* docs: name full qualified classname of interface java.io.Serializable to prevent confusion with kotlinx.serialization
2019-10-09 15:17:53 +08:00
oharaandrew314
682af7c4f3
Add DELETE with body to kotlin client ( #4047 )
...
* delete with body
* update petstore sample
* update kotlin-threetenbp sample
* update sample for kotlin-client-string
2019-10-09 00:10:57 +08:00
William Cheng
8f86f0f04a
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-10-08 21:21:04 +08:00
William Cheng
d4500b307f
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-10-04 15:02:58 +08:00
Jan
baa53cbf57
[kotlin-client][kotlin-server] feature: allow creation of kotlin data classes that implement java.io.Serializable ( #3997 )
...
* feat: allow creation of kotlin data classes that implement java.io.Serializable, by adding the config option serializableModel=(true|false)
* docs: add markdown docu for new configOption serializableModel
* fix: do not use parcelize in script
* update kotlin samples
* add the option, update the doc
2019-10-02 00:13:00 +08:00
William Cheng
5eb67d471b
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-09-22 21:00:38 +08:00
William Cheng
3019b5a5e1
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-09-22 14:18:07 +08:00
Andrew Emery
21e0e0d5d5
Kotlin multiplatform client ( #3900 )
...
* Includes Kotlin multiplatform client
Kotlin multiplatform allows Kotlin code to be shared across various target platforms.
This implementation generates Swagger clients for JVM and iOS platforms.
* Includes Kotlin Multiplatform sample scripts
* Updates existing Kotlin samples
* Includes Kotlin Multiplatform samples
* Fixes incorrect Windows sample resource location
* Updates Kotlin client documentation
* Removes unnecessary workaround to remove duplicate entries
* Includes additional multiplatform type and import mappings
* Fixes Kotlin client definitions with multiple enums
https://github.com/OpenAPITools/openapi-generator/issues/3917
* Updates Kotlin samples
2019-09-21 21:48:41 +08:00
William Cheng
ea029b4029
update doc, samples ( #3875 )
2019-09-11 21:17:11 +08:00
William Cheng
3ebefccfa9
Prepare v4.1.2 release ( #3873 )
...
* update samples
* update date
2019-09-11 18:33:27 +08:00
William Cheng
a8fe5d355c
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-08-29 14:48:00 +08:00
prisoneroftech
8f7e43b500
[Kotlin][client] Support gson and moshi as serialization libraries ( #3734 )
2019-08-29 05:37:13 +02:00
William Cheng
9182784955
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-08-28 14:01:20 +08:00
William Cheng
d0d545bbdd
Prepare 4.1.2 snapshot ( #3758 )
...
* update pom
* update samples
* update ts axios samples
2019-08-26 22:13:12 +08:00
William Cheng
0beb8caa85
reenable kotlin client tests in shippable ci ( #3751 )
2019-08-25 00:53:11 +08:00
William Cheng
14a39349d5
update kotlin client sample
2019-08-22 21:43:06 +08:00
Jim Schubert
b936d72dfa
[kotlin] Change Kotlin client exceptions to expose lack of support as UnsupportedOperationException rather than NotImplementedException. ( #3611 )
...
* [kotlin] Throw catchable exceptions rather than TODO()
* [kotlin] Regenerate samples
2019-08-13 08:38:00 -04:00
Andrey
07381e7275
Fix kotlin templates ( #3504 )
...
* Fix kotlin templates to use okhttp 4.0.1.
* Fix escaping of dataType field.
* Fix handling of arrays/lists of enums.
2019-08-11 09:35:57 -04:00
William Cheng
01222268e8
update samples
2019-08-11 18:56:47 +08:00
William Cheng
5956569e7a
Prepare 4.1.1-SNAPSHOT ( #3603 )
...
* update pom
* update samples
* update pom
2019-08-10 09:41:08 +08:00