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
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
William Cheng
3909505c5b
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-03-13 23:26:43 +08:00
Jiri Kuncar
8cb4741248
[go][client] Fix example value for non string enums ( #8900 )
...
* [go][client] Fix example value for non string enums
* regenerated samples
2021-03-08 18:11:50 +08:00
William Cheng
b4f4d7434b
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-02-12 18:48:20 +08:00
Bruno Coelho
23de86a434
[kotlin][client] update dependencies ( #8673 )
...
* [kotlin] update pom.xml
* [kotlin] update pom.xml
* [kotlin][client] update dependencies
* [kotlin][client] restore gradle
* [kotlin][client] try to fix CI
* Revert "[kotlin][client] restore gradle"
This reverts commit 20a2947447f5646ca4850304a26bdf76e630a497.
* [kotlin][client] try to fix CI
* [kotlin][client] try to fix CI
* [kotlin][client] try to fix CI
* install gradle
* [kotlin][client] try to fix CI
* [kotlin][client] try to fix CI
* [kotlin][client] disable integration tests
Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-02-11 22:32:29 +08:00
William Cheng
3e81876e2c
Merge remote-tracking branch 'origin/master' into 5.1.x
2021-02-06 17:52:32 +08:00
William Cheng
c7fcb39a2d
Prepare v5.0.1 release ( #8627 )
...
* release 5.0.1
* update samples
2021-02-06 16:37:22 +08:00
Bruno Coelho
45fc02350b
[kotlin] fix Date types usages ( #8594 )
...
* [kotlin] fix Date types usages
2021-02-02 20:55:51 -05:00
William Cheng
694b10e41c
Merge remote-tracking branch 'origin/5.1.x' into 6.0.x
2021-01-28 16:47:55 +08:00
William Cheng
d97717ee24
Merge remote-tracking branch 'origin/master' into 5.1.x
2021-01-28 15:52:44 +08:00
William Cheng
9286b43dfa
remove the bin folder under kotlin samples ( #8520 )
2021-01-24 14:20:40 +08:00
William Cheng
64ae0eed04
Merge remote-tracking branch 'origin/5.1.x' into 6.0.x
2021-01-09 00:15:53 +08:00
William Cheng
18bec1da28
Merge remote-tracking branch 'origin/master' into 5.1.x
2021-01-08 21:06:47 +08:00
Luiz Felipe Stangarlin
319bd7eaa8
Add Ktorm schema generator ( #7759 )
...
* [ktorm] added support for ktorm
* [ktorm] fixed type mapping
* [ktorm] fixed foreign key
* [ktorm] added variable for the missing package import
* [ktorm] added correct templates
* [ktorm] added relationship metadata
* [ktorm] also support relationships 1:m
* [ktorm] relation to primitive naming fix
* [ktorm] updated mustache templates
* [ktorm] small fixes on templates, assigmentbuilder, docs, sql script syntax.
* fix issue, rename to ktorm-schema
* replace tabs with 4 spaces
* [ktorm] added primarykey automatic generation
* [ktorm] added tests
* [ktorm] added gradle to samples
* [ktorm] fix datatime type
* [ktorm] template fixes array and primarykey
* [ktorm][sample] regenerate
* [ktorm][sample] added manually files from kotlin-client
We inherit from baseTable, so we need those for now
* [ktorm] fix: relation column types hardcoded
* update samples
* update doc
Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-01-06 17:04:49 +08:00
William Cheng
25b0cbe2f1
Prepare 5.0.1 snapshot ( #8249 )
...
* update version to 5.0.1-SNAPSHOT
* update samples
* update meta codegen
2020-12-21 17:14:18 +08:00
William Cheng
4261252491
prepare 6.0.0 snapshot release
2020-12-21 16:39:40 +08:00
William Cheng
345b68a107
prepare 5.1.0 snapshot release
2020-12-21 16:35:12 +08:00
William Cheng
d7d5e53f2b
Prepare v5.0.0 release ( #8247 )
...
* update to 5.0.0
* update samples
2020-12-21 13:04:11 +08:00
William Cheng
2578ef5e63
Prepare snapshot (v5.0.0) ( #7986 )
...
* Revert "prepare 5.0.0-beta3 release"
This reverts commit 3ebe774df37b43348bac1310a272de53a2d7040b.
* revert to snapshot
* update samples
2020-11-20 19:19:59 +08:00
William Cheng
2715f1371a
Prepare 5.0.0 beta3 ( #7984 )
...
* prepare 5.0.0-beta3 release
* update samples
* remove beta3 from readme
2020-11-20 15:18:58 +08:00
Go Shibata
5bac98cd99
[kotlin][jvm-retrofit2] Update templates ( #7592 )
...
* Fix indent of return tag
* Trim trailing whitespace
* Update samples
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
2020-10-19 21:55:49 -04:00
Alex Facciorusso
1dec9ebfb8
[kotlin][jvm-retrofit2] Better code for OkHttp client passed to Retrofit builder ( #7556 )
...
* Better code for building Retrofit
By removing the nullable `usedClient` passed to Retrofit, the code is compatible with newer Retrofit versions which don't allow null as client.
* Updated Kotlin retrofit2 samples ApiClient
2020-10-19 21:48:14 -04:00
William Cheng
2fd23f505e
Prepare 5.0.0-SNAPSHOT ( #7347 )
...
* Revert "Prepare 5.0.0-beta2 release (#7345 )"
This reverts commit 212b4f784742744b7b238607dcefb23ec9db64d7.
* update readme
2020-09-04 15:31:54 +08:00
William Cheng
212b4f7847
Prepare 5.0.0-beta2 release ( #7345 )
...
* update version
* update doc
* update samples
2020-09-04 13:03:45 +08:00
tgerth
d78e91517e
[Kotlin] Make ApiClient in jvm-retrofit2 be able to use own OkHttpClient ( #6999 )
...
* added okHttpClient as parameter to the constructor, adapted createService
* updated sample
2020-08-08 20:59:41 +08:00
William Cheng
aa698633b3
[Kotlin][Retrofit2] fix missing import for file ( #7121 )
...
* fix missing import for file
* test in shippable
* test retrofit2 fx3 kotlin sample
* add pom.xml
2020-08-05 10:24:31 +08:00
Bruno Coelho
f0157b8c0f
[kotlin][client] fix retrofit dependencies ( #6836 )
2020-07-03 00:03:17 +08:00
Nikita Karnaukh
53eff43184
[Kotlin][Client] Fix url path for Retrofit, Fix optionals for @Query @Body, Set List as default collection for Kotlin data class ( #6456 )
...
* Replace typeMapping kotlin.Array with kotlin.collections.List, because its doesn't work with Kotlin Data Classes(required manually implementing hashCode&equals)
Replace typeMapping kotlin.Array<kotlin.Byte> with efficient primitive implementation kotlin.ByteArray
Replace instantiationTypes array to kotlin.collections.ArrayList, for extending Array we should provide element count to its constructor.
* Fixed path(removed slash on begin path) for Jvm Kotlin Retrofit
* Fixed handling optional bodyParams for Jvm Kotlin Retrofit
* Fix kotlin tests
* Fixed code format for detekt inspections #2
* revert formatting
* Added ability to generate optional @Query params.
* Update Kotlin docs.
* Update Kotlin openapi3 client samples
* Update Kotlin client samples
* Update Kotlin openapi3 client samples after merge with master
* Revert hardcoding List instead Array
* Set List as default collectionType
* Update Kotlin samples
* Fixed Kotlin multiplatform api template. fix mapper for Array type.
Fixed Kotlin multiplatform api template Code style.
* Update Kotlin multiplatform sample
* Fix Kotlin multiplatform template code style
* Update Kotlin multiplatform sample
* Fix Kotlin multiplatform converting Array to List in Api.
* Update Kotlin multiplatform sample #3
* Fix Kotlin tests
* Fix Kotlin jackson Application.kt
* Fix Kotlin tests #2
* Fix merge conflict with master
* Generate samples after merge with master
* Generate samples after merge with master #2
* Generate samples after merge with master #3
* Generate samples after merge with master #4
* update kotlin samples
* update all samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-06-16 10:33:34 +08:00
Alexander Karkossa
2128f2875e
Enhancement/kotlin/apiclient and auth ( #6585 )
...
* Add multiple auth methods to ApiClient. ApiClient more configurable
* Fixed missing close tag for isMultipart in api.mustache
* Generated samples ./bin/kotlin-client-all.sh
* Generated samples./bin/openapi3/kotlin-client-petstore-all.sh
* Use of better way to add supporting files based on conditions
* Fixed missing check for retrofit generating auth files
* Generated samples
Co-authored-by: Alexander Karkossa <alexander.karkossa@dataport.de>
2020-06-11 22:09:13 +08:00
Jim Schubert
70ca93570e
[core][general] Add metadata file tracking to aid in "Golden Tests" regeneration ( #6325 )
2020-05-22 16:48:32 -04:00
Nikita Karnaukh
eefcd62d5b
[Kotlin][Client] Added supporting Retrofit2(RxJava/RxJava2/Coroutines) ( #5750 )
...
* Added support Retrofit2(RxJava/RxJava2/Coroutines) to Kotlin client code generator
* Added generated samples for Retrofit2(RxJava/RxJava2/Coroutines) on Kotlin
* Fixed generating retrofit2 without Rx/Coroutines
* Fixed MultipartBody template, remove redundant space after MultipartBody.Part annotation
* Fix documentation diff.
* Fix generating build.gradle file for samples.
Add dependencies for rxJava/rxJava2 and rx retrofit's adapter.
* Update generated sample with rx dependencies
* Update generated sample with coroutines
* Update generated sample with RxJava 2 dependencies
* Update and refactoring scripts for sample generation
* Update generated sample code
* revert changes by mistake
* revert changes by mistake #2
* Fix return type for first RxJava
* Add RxJavaCallAdapterFactory to ApiClient scheme for RxJava 1/2
* Fix script loggin
* Update generated code for RxJava 1/2
* Fix kotlin.md documentation by script export_docs_generators.sh
* Update Kotlin samples project in pom.xml
* Revert "Update Kotlin samples project in pom.xml"
This reverts commit 9de4d0ba
* Fixed "" wrapping number types for annotation value
Fixed generating polymorphic interfaces for Gson, interface fields can't be marked with @SerializedName annotation, it's enough to mark it in child model.
Fixed instantiationTypes(array, list, map) for Kotlin generator
* Update Kotlin samples project after last fixes
* Update Kotlin samples project for kotlin-jvm-*
* Update Kotlin readme.md documentations
* Update Kotlin client sample changes
* Fixed encoding braces for generics model
* Update Kotlin client sample changes
* Update Kotlin client sample after merge with master
* Fixed adding empty braces for inherit from Map/Array
* Update sample model after last fix with empty braces
* Revert adding @SerializedName to Kotlin interface fields through @get:SerializedName as for Jackson
* Update Kotlin client samples with adding @get:SerializedName
2020-05-18 16:26:27 +08:00
William Cheng
5a9b0fcf9e
update samples
2020-04-21 02:22:55 +08:00
William Cheng
faf6f197be
Merge remote-tracking branch 'origin/master' into 5.0-sync-master
2020-04-17 15:51:00 +08:00
William Cheng
a0ca253218
update samples ( #5722 )
2020-03-27 13:55:55 +08:00
Bruno Coelho
ae66c335b9
[kotlin][client] make base path globally configurable ( #5450 )
...
* [kotlin][client] make base path configurable
* [kotlin][client] update pet project
* [kotlin][client] set default base path
* [kotlin][client] set default base path
* [kotlin][client] set default base path
2020-03-24 18:18:04 +08:00
Matt Traynham
6400ce2330
[kotlin][client] Add Jackson to interface properties and remove extra line feed ( #5459 )
...
* [kotlin][client] Ensure Jackson annotations are consistent with interface vars
* [kotlin][client] Rebuild samples
* [kotlin][client] Some kotlin client enhancements
- Don't use JsonFormat for Date objects, this should be controlled via
a custom serializer/deserializer or a turning on and off serialization
features of Jackson. I've updated the jacksonObjectMapper config to
write the dates as strings, which I think was intended in the original
commit.
https://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATES_AS_TIMESTAMPS
https://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/cfg/MapperConfig.html#getDateFormat--
- Dont' use @JsonFormat(shape = JsonFormat.Shape.OBJECT) for enums.
This causes Enums to be formatted as objects with an internal "value"
field. In reality, OpenAPI enums are just strings without properties
and should be treated as a string.
https://www.baeldung.com/jackson-serialize-enums#2-enum-as-json-object
- Add's Kotlin use site annotation @get: to JsonProperty for parent interface
properties. Otherwise Kotlin will warn:
"This annotation is not applicable to target 'member property without
backing field or delegate'"
- Add's JsonTypeInfo annotations to interfaces for inheritance. This
was copied verbatim from the kotlin-spring generator.
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/kotlin-spring/typeInfoAnnotation.mustache
* [kotlin][client] Rebuild kotlin samples
2020-03-24 10:05:46 +08:00
Herve DARRITCHON
f6ef4fbec7
[kotlin][client] Add Jackson as serialization library ( #5236 )
...
* [kotlin][client] Add Jackson as serialization library
* [kotlin][client] Add kotlin-client-jackson.sh to kotlin-client-all.sh
* update kotlin client samples
* update doc
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-02-25 23:41:09 +08:00
William Cheng
100b01844a
Merge remote-tracking branch 'origin/master' into 5.0.x
2020-02-04 15:31:10 +08:00
Matt Traynham
26c9c64634
[kotlin][client] Add inheritance to Kotlin Client templates ( #4453 )
...
* Add inheritance to Kotlin Client templates
* Correct white spacing issues
* Rebuild kotlin client samples
2020-02-01 22:12:11 -05:00
William Cheng
82e2448bf2
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2020-01-20 15:46:13 +08:00
William Cheng
04af5e0445
Merge remote-tracking branch 'origin/master' into 4.3.x
2020-01-20 15:04:34 +08:00
Sebastien Rosset
d61dcc17e0
[gradle] consistent use of maven url in gradle files ( #5045 )
...
* wrap maven url with uri function
* consistent use of maven url in gradle files
2020-01-19 14:57:38 -05:00
Jim Schubert
ea55968737
Evaluating https issues in CircleCI (on top of CiscoM31-maven-h… ( #5034 )
...
* replace http with https. Replace http://central.maven.org with https://repo1.maven.org
* replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0
* Force HTTPS for mavenCentral gradle DSL
Co-authored-by: Sebastien Rosset <serosset@cisco.com>
2020-01-18 18:53:05 -05:00
William Cheng
bad78a30c8
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2019-12-20 23:26:19 +08:00
William Cheng
4fb503bcac
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-12-20 23:21:21 +08:00
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
68b4ac5bee
update kotlin samples
2019-12-20 22:45:26 +08:00