forked from loafle/openapi-generator-original
[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
This commit is contained in:
@@ -20,4 +20,4 @@ package {{packageName}}.infrastructure
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ package {{packageName}}.infrastructure
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package {{packageName}}.infrastructure
|
|||||||
*/
|
*/
|
||||||
{{#nonPublicApi}}internal {{/nonPublicApi}}enum class RequestMethod {
|
{{#nonPublicApi}}internal {{/nonPublicApi}}enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,4 +40,4 @@ import java.math.BigInteger
|
|||||||
return BigInteger(value)
|
return BigInteger(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/moshi}}
|
{{/moshi}}
|
||||||
|
|||||||
@@ -47,4 +47,4 @@ import java.io.IOException
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/gson}}
|
{{/gson}}
|
||||||
|
|||||||
@@ -83,4 +83,4 @@ import org.threeten.bp.format.DateTimeFormatter
|
|||||||
return LocalDate.parse(decoder.decodeString(), DateTimeFormatter.ISO_LOCAL_DATE)
|
return LocalDate.parse(decoder.decodeString(), DateTimeFormatter.ISO_LOCAL_DATE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/kotlinx_serialization}}
|
{{/kotlinx_serialization}}
|
||||||
|
|||||||
@@ -83,4 +83,4 @@ import org.threeten.bp.format.DateTimeFormatter
|
|||||||
return LocalDateTime.parse(decoder.decodeString(), DateTimeFormatter.ISO_LOCAL_DATE_TIME)
|
return LocalDateTime.parse(decoder.decodeString(), DateTimeFormatter.ISO_LOCAL_DATE_TIME)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/kotlinx_serialization}}
|
{{/kotlinx_serialization}}
|
||||||
|
|||||||
@@ -83,4 +83,4 @@ import org.threeten.bp.format.DateTimeFormatter
|
|||||||
return OffsetDateTime.parse(decoder.decodeString(), DateTimeFormatter.ISO_OFFSET_DATE_TIME)
|
return OffsetDateTime.parse(decoder.decodeString(), DateTimeFormatter.ISO_OFFSET_DATE_TIME)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/kotlinx_serialization}}
|
{{/kotlinx_serialization}}
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ import java.net.URI
|
|||||||
|
|
||||||
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("URI", PrimitiveKind.STRING)
|
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("URI", PrimitiveKind.STRING)
|
||||||
}
|
}
|
||||||
{{/kotlinx_serialization}}
|
{{/kotlinx_serialization}}
|
||||||
|
|||||||
@@ -37,4 +37,4 @@ import java.util.UUID
|
|||||||
return UUID.fromString(decoder.decodeString())
|
return UUID.fromString(decoder.decodeString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/kotlinx_serialization}}
|
{{/kotlinx_serialization}}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ import java.lang.RuntimeException
|
|||||||
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
|
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ class CollectionFormats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SPACEParams : SSVParams()
|
class SPACEParams : SSVParams()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,4 +32,4 @@ inline fun <reified T> Response<*>.getErrorResponse(serializerBuilder: GsonBuild
|
|||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
{{/gson}}
|
{{/gson}}
|
||||||
|
|||||||
@@ -138,4 +138,4 @@ import {{packageName}}.infrastructure.*
|
|||||||
|
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
|||||||
@@ -52,4 +52,4 @@ open class ApiClient(protected val client: WebClient) {
|
|||||||
|
|
||||||
private fun <I : Any> WebClient.RequestBodySpec.body(requestConfig: RequestConfig<I>) =
|
private fun <I : Any> WebClient.RequestBodySpec.body(requestConfig: RequestConfig<I>) =
|
||||||
apply { if (requestConfig.body != null) bodyValue(requestConfig.body) }
|
apply { if (requestConfig.body != null) bodyValue(requestConfig.body) }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -229,4 +229,4 @@ import {{packageName}}.infrastructure.*
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ import java.lang.RuntimeException
|
|||||||
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
|
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
{{#generateRoomModels}}
|
{{#generateRoomModels}}
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
{{/generateRoomModels}}
|
{{/generateRoomModels}}
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ class CollectionFormats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SPACEParams : SSVParams()
|
class SPACEParams : SSVParams()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ import {{roomModelPackage}}.*
|
|||||||
// TODO ITransformForStorage
|
// TODO ITransformForStorage
|
||||||
interface ITransformForStorage<T> {
|
interface ITransformForStorage<T> {
|
||||||
fun toRoomModel(): T
|
fun toRoomModel(): T
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,4 +116,4 @@ class GsonRequest<T>(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ interface IRequestFactory {
|
|||||||
type: Type,
|
type: Type,
|
||||||
responseListener: Response.Listener<T>,
|
responseListener: Response.Listener<T>,
|
||||||
errorListener: Response.ErrorListener): Request<T>
|
errorListener: Response.ErrorListener): Request<T>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ class OAuth : Authentication {
|
|||||||
val token: String = accessToken ?: return
|
val token: String = accessToken ?: return
|
||||||
headers["Authorization"] = "Bearer $token"
|
headers["Authorization"] = "Bearer $token"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,4 +180,4 @@ import {{packageName}}.auth.*
|
|||||||
RequestMethod.POST -> HttpMethod.Post
|
RequestMethod.POST -> HttpMethod.Post
|
||||||
RequestMethod.OPTIONS -> HttpMethod.Options
|
RequestMethod.OPTIONS -> HttpMethod.Options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "Base64ByteArray(${hex(value)})"
|
return "Base64ByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "OctetByteArray(${hex(value)})"
|
return "OctetByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
|
|||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.promise
|
import kotlinx.coroutines.promise
|
||||||
|
|
||||||
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
rootProject.name = "{{artifactId}}"
|
rootProject.name = "{{artifactId}}"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
{{#multiplatform}}enableFeaturePreview('GRADLE_METADATA'){{/multiplatform}}
|
{{#multiplatform}}enableFeaturePreview('GRADLE_METADATA'){{/multiplatform}}
|
||||||
rootProject.name = '{{artifactId}}'
|
rootProject.name = '{{artifactId}}'
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-allOff-discriminator'
|
rootProject.name = 'kotlin-allOff-discriminator'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp3'
|
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp3'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp4'
|
rootProject.name = 'kotlin-array-simple-string-jvm-okhttp4'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-array-simple-string-jvm-volley'
|
rootProject.name = 'kotlin-array-simple-string-jvm-volley'
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ class CollectionFormats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SPACEParams : SSVParams()
|
class SPACEParams : SSVParams()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,4 +116,4 @@ class GsonRequest<T>(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ interface IRequestFactory {
|
|||||||
type: Type,
|
type: Type,
|
||||||
responseListener: Response.Listener<T>,
|
responseListener: Response.Listener<T>,
|
||||||
errorListener: Response.ErrorListener): Request<T>
|
errorListener: Response.ErrorListener): Request<T>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
rootProject.name = "kotlin-array-simple-string-multiplatform"
|
rootProject.name = "kotlin-array-simple-string-multiplatform"
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
|
|||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.promise
|
import kotlinx.coroutines.promise
|
||||||
|
|
||||||
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ class OAuth : Authentication {
|
|||||||
val token: String = accessToken ?: return
|
val token: String = accessToken ?: return
|
||||||
headers["Authorization"] = "Bearer $token"
|
headers["Authorization"] = "Bearer $token"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,4 +169,4 @@ open class ApiClient(
|
|||||||
RequestMethod.POST -> HttpMethod.Post
|
RequestMethod.POST -> HttpMethod.Post
|
||||||
RequestMethod.OPTIONS -> HttpMethod.Options
|
RequestMethod.OPTIONS -> HttpMethod.Options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "Base64ByteArray(${hex(value)})"
|
return "Base64ByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "OctetByteArray(${hex(value)})"
|
return "OctetByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
rootProject.name = "kotlin-bigdecimal-default-multiplatform"
|
rootProject.name = "kotlin-bigdecimal-default-multiplatform"
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
|
|||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.promise
|
import kotlinx.coroutines.promise
|
||||||
|
|
||||||
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ class OAuth : Authentication {
|
|||||||
val token: String = accessToken ?: return
|
val token: String = accessToken ?: return
|
||||||
headers["Authorization"] = "Bearer $token"
|
headers["Authorization"] = "Bearer $token"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,4 +169,4 @@ open class ApiClient(
|
|||||||
RequestMethod.POST -> HttpMethod.Post
|
RequestMethod.POST -> HttpMethod.Post
|
||||||
RequestMethod.OPTIONS -> HttpMethod.Options
|
RequestMethod.OPTIONS -> HttpMethod.Options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "Base64ByteArray(${hex(value)})"
|
return "Base64ByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "OctetByteArray(${hex(value)})"
|
return "OctetByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-bigdecimal-default-okhttp4'
|
rootProject.name = 'kotlin-bigdecimal-default-okhttp4'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-default-values-jvm-okhttp3'
|
rootProject.name = 'kotlin-default-values-jvm-okhttp3'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-default-values-jvm-okhttp4'
|
rootProject.name = 'kotlin-default-values-jvm-okhttp4'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-default-values-jvm-retrofit2'
|
rootProject.name = 'kotlin-default-values-jvm-retrofit2'
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ class CollectionFormats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SPACEParams : SSVParams()
|
class SPACEParams : SSVParams()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-default-values-jvm-volley'
|
rootProject.name = 'kotlin-default-values-jvm-volley'
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ class CollectionFormats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SPACEParams : SSVParams()
|
class SPACEParams : SSVParams()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ import org.openapitools.client.models.room.*
|
|||||||
// TODO ITransformForStorage
|
// TODO ITransformForStorage
|
||||||
interface ITransformForStorage<T> {
|
interface ITransformForStorage<T> {
|
||||||
fun toRoomModel(): T
|
fun toRoomModel(): T
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,4 +116,4 @@ class GsonRequest<T>(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ interface IRequestFactory {
|
|||||||
type: Type,
|
type: Type,
|
||||||
responseListener: Response.Listener<T>,
|
responseListener: Response.Listener<T>,
|
||||||
errorListener: Response.ErrorListener): Request<T>
|
errorListener: Response.ErrorListener): Request<T>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
rootProject.name = "kotlin-default-values-multiplatform"
|
rootProject.name = "kotlin-default-values-multiplatform"
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ import kotlinx.coroutines.CoroutineScope
|
|||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.promise
|
import kotlinx.coroutines.promise
|
||||||
|
|
||||||
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ class OAuth : Authentication {
|
|||||||
val token: String = accessToken ?: return
|
val token: String = accessToken ?: return
|
||||||
headers["Authorization"] = "Bearer $token"
|
headers["Authorization"] = "Bearer $token"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,4 +169,4 @@ open class ApiClient(
|
|||||||
RequestMethod.POST -> HttpMethod.Post
|
RequestMethod.POST -> HttpMethod.Post
|
||||||
RequestMethod.OPTIONS -> HttpMethod.Options
|
RequestMethod.OPTIONS -> HttpMethod.Options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class Base64ByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "Base64ByteArray(${hex(value)})"
|
return "Base64ByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ class OctetByteArray(val value: ByteArray) {
|
|||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "OctetByteArray(${hex(value)})"
|
return "OctetByteArray(${hex(value)})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ data class RequestConfig<T>(
|
|||||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||||
val requiresAuthentication: Boolean,
|
val requiresAuthentication: Boolean,
|
||||||
val body: T? = null
|
val body: T? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ package org.openapitools.client.infrastructure
|
|||||||
*/
|
*/
|
||||||
enum class RequestMethod {
|
enum class RequestMethod {
|
||||||
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
rootProject.name = 'kotlin-enum-default-value'
|
rootProject.name = 'kotlin-enum-default-value'
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ fun <T : Any?> toMultiValue(items: Iterable<T>, collectionFormat: String, map: (
|
|||||||
"multi" -> items.map(map)
|
"multi" -> items.map(map)
|
||||||
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ open class ServerException(message: kotlin.String? = null, val statusCode: Int =
|
|||||||
companion object {
|
companion object {
|
||||||
private const val serialVersionUID: Long = 456L
|
private const val serialVersionUID: Long = 456L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user