-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[Kotlin][Client] Added Kotlinx Serialization for JVM/Retrofit2/OkHttp3&4 #6916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wing328
merged 76 commits into
OpenAPITools:master
from
kuFEAR:kotlin_serialization_jvm
Mar 19, 2021
Merged
Changes from 58 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
800823c
Added supporting kotlin.serialization for jvm
kuFEAR 3447696
Added Serializable annotations for java types(date,time,url,uri etc.)
kuFEAR e8451c2
Added SafeEnumSerializer
kuFEAR fcbd192
Added StringBuilderAdapter for kotlin.serialization
kuFEAR 4d93915
Added StringBuilderAdapter for kotlin.serialization
kuFEAR 00d70d8
Switch sample to retrofit2-kotlin-serialization
kuFEAR 13207aa
Add sample for retrofit2-kotlin.serialization
kuFEAR 5f2df07
update sample
kuFEAR 8df8e56
update sample
kuFEAR dfcdee3
update sample #3
kuFEAR 4d1d37a
Fix enum quotes for kotlin.serialization
kuFEAR bf4037c
update samples
kuFEAR 9200ea6
update pom.xml
kuFEAR 991c651
add pom.xml to child module
kuFEAR 00bef7d
fix kotlin-multiplatform freeCompilerArgs
kuFEAR 02b13b3
refactoring, add useSafeEnum option, remove safeEnum for kotlin.multi…
kuFEAR 37bff33
update kotlin samples
kuFEAR c74933d
fix import kotlinx.serialization.Required
kuFEAR 0421e32
Update kotlinx.serialization 1.0.0-rc-2, kotlin 1.4.10, retrofit-kotl…
kuFEAR b35ac1d
Update gradle wrapper 6.7-rc-3
kuFEAR 5e697ea
fix SafeEnum import
kuFEAR d9592ac
fix Json initialization,
kuFEAR 09c39ff
update samples
kuFEAR c770868
update kotlinx.serialization to 1.0.0
kuFEAR 2e6fdeb
Update gradle to 6.7 in kotlin samples
kuFEAR 4d97807
fixed adding @Contextual for collections with non-primitive type elem…
kuFEAR 8d312e8
remove unused SafeEnum imports, refactored
kuFEAR 1293eac
update kotlin readme
kuFEAR 2040800
update kotlin project template Readme.md
kuFEAR 008b05c
update samples for kotlin
kuFEAR 3364fc3
simplify template for class properties
kuFEAR 91ca8bc
remove @Contextual from kotlin-multiplatform
kuFEAR 0aef702
update kotlin multiplatform dependencies
kuFEAR 8adf48a
refactoring templates
kuFEAR e6294ab
revert all changes for multiplatform
kuFEAR 61399ea
fix tests
kuFEAR 6d53203
revert multiplatform #2
kuFEAR 3ed4bb8
Merge remote-tracking branch 'base_origin/master' into kotlin_seriali…
kuFEAR 7843971
update samples after merge, fix missed isListContainer->isArray
kuFEAR 48e75ec
fixed redundant space before @Contextual
kuFEAR bf32d7a
Fixed enum template, Class were missed in generated samples
kuFEAR 3327e7d
fix enum template toString value->serialName
kuFEAR 05a37c9
fixed isEnum case for collections
kuFEAR 0989ad2
Merge remote-tracking branch 'base_origin/master' into kotlin_seriali…
kuFEAR 74c2a5b
update samples
kuFEAR 7133569
removed useSafeEnum option, kotlinx serialization has out of box appr…
kuFEAR 64b447b
generate samples
kuFEAR b5aa3bc
update kotlinx.serialization 1.0.1
kuFEAR f3aecb3
update samples
kuFEAR 87c9458
Added pom.mustache template for kotlin-client samples with fixed exec…
kuFEAR 79b7d80
update samples with new pom.xml
kuFEAR fc53cad
reverted enum value property name
kuFEAR 06c566f
fixed kotlin-multiplatform pom.xml
kuFEAR be4baf7
update kotlin-threetenbp sample
kuFEAR 8493fae
update kotlin-string sample
kuFEAR 6877291
update kotlin-string sample
kuFEAR 9c31b93
fix adding kotlinx.serialization classpath to build.gradle
kuFEAR 2fad058
generate samples
kuFEAR 195c81f
add supporting kotlinx_serialization kotlinx.serialization.Serializab…
kuFEAR 28c5cb5
update retrofit2-kotlinx-serialization-converter:0.8.0
kuFEAR 7c6cf71
update kotlinx_serialization sample with retrofit2-kotlinx-serializat…
kuFEAR 5b3fa4a
Merge remote-tracking branch 'base_origin/master' into kotlin_seriali…
kuFEAR 8dd5ce7
Merge remote-tracking branch 'base_origin/master' into kotlin_seriali…
kuFEAR bfcb127
apply suggest from @blendthink
kuFEAR 571245e
added proguard-rules.pro file for kotlinx.serialization on Android pr…
kuFEAR 95db387
Merge remote-tracking branch 'base_origin/master' into kotlin_seriali…
kuFEAR 9c50afd
fix pom.mustache
kuFEAR b91c8ce
update gradle wrapper to 6.8.3
kuFEAR ad2930b
update kotlin samples
kuFEAR 8b6b3f9
fix kotlin readme template, update kotlin samples
kuFEAR 7657b3c
update kotlin samples
kuFEAR 1ad5a7a
update kotlin sample
kuFEAR 7c3f170
revert deletion kotlin client tests
kuFEAR a6f1d8d
add support kotlinx serialization for okhttp3/4
kuFEAR 7e43580
Merge remote-tracking branch 'base_origin/master' into kotlin_seriali…
kuFEAR 627f4cd
update kotlin client samples
kuFEAR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| generatorName: kotlin | ||
| outputDir: samples/client/petstore/kotlin-retrofit2-kotlinx_serialization | ||
| library: jvm-retrofit2 | ||
| inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml | ||
| templateDir: modules/openapi-generator/src/main/resources/kotlin-client | ||
| additionalProperties: | ||
| serializationLibrary: kotlinx_serialization | ||
| artifactId: kotlin-petstore-retrofit2-kotlinx_serialization | ||
| enumPropertyNaming: UPPERCASE |
11 changes: 11 additions & 0 deletions
11
bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx2-kotlinx_serialization.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| generatorName: kotlin | ||
| outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2-kotlinx_serialization | ||
| library: jvm-retrofit2 | ||
| inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml | ||
| templateDir: modules/openapi-generator/src/main/resources/kotlin-client | ||
| additionalProperties: | ||
| serializationLibrary: kotlinx_serialization | ||
| useRxJava2: "true" | ||
| artifactId: kotlin-petstore-rx2-kotlinx_serialization-client | ||
| serializableModel: "true" | ||
| dateLibrary: java8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+57.8 KB
modules/openapi-generator/src/main/resources/kotlin-client/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions
3
...atform/gradle-wrapper.properties.mustache → ...client/gradle-wrapper.properties.mustache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| #Tue May 17 23:08:05 CST 2016 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.