-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): partial update operation (generated)
algolia/api-clients-automation#3486 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Kai Welke <kai.welke@algolia.com> Co-authored-by: shortcuts <vannicattec@gmail.com> Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
- Loading branch information
1 parent
9a32522
commit 69fe082
Showing
12 changed files
with
464 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/abtesting/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.abtesting | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/analytics/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.analytics | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/ingestion/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.ingestion | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/insights/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.insights | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/monitoring/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.monitoring | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/personalization/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.personalization | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.querysuggestions | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
client/src/commonMain/kotlin/com/algolia/client/model/recommend/ErrorBase.kt
This file contains 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,46 @@ | ||
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ | ||
package com.algolia.client.model.recommend | ||
|
||
import com.algolia.client.extensions.internal.* | ||
import kotlinx.serialization.* | ||
import kotlinx.serialization.descriptors.* | ||
import kotlinx.serialization.encoding.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Error. | ||
* | ||
* @param message | ||
*/ | ||
@Serializable(ErrorBaseSerializer::class) | ||
public data class ErrorBase( | ||
|
||
val message: String? = null, | ||
|
||
val additionalProperties: Map<String, JsonElement>? = null, | ||
) | ||
|
||
internal object ErrorBaseSerializer : KSerializer<ErrorBase> { | ||
|
||
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("ErrorBase") { | ||
element<String>("message", isOptional = true) | ||
} | ||
|
||
override fun deserialize(decoder: Decoder): ErrorBase { | ||
val input = decoder.asJsonDecoder() | ||
val tree = input.decodeJsonObject() | ||
return ErrorBase( | ||
message = tree["message"]?.let { input.json.decodeFromJsonElement(it) }, | ||
additionalProperties = tree.filterKeys { it !in descriptor.elementNames }, | ||
) | ||
} | ||
|
||
override fun serialize(encoder: Encoder, value: ErrorBase) { | ||
val output = encoder.asJsonEncoder() | ||
val json = buildJsonObject { | ||
value.message?.let { put("message", output.json.encodeToJsonElement(it)) } | ||
value.additionalProperties?.onEach { (key, element) -> put(key, element) } | ||
} | ||
(encoder as JsonEncoder).encodeJsonElement(json) | ||
} | ||
} |
Oops, something went wrong.