Skip to content

Commit d13f700

Browse files
algolia-botkai687
andcommitted
fix(specs): body is not required in multiple batch request (generated)
algolia/api-clients-automation#3454 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent 9928474 commit d13f700

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/search/MultipleBatchRequest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import kotlinx.serialization.json.*
88
* MultipleBatchRequest
99
*
1010
* @param action
11-
* @param body Operation arguments (varies with specified `action`).
1211
* @param indexName Index name (case-sensitive).
12+
* @param body Operation arguments (varies with specified `action`).
1313
*/
1414
@Serializable
1515
public data class MultipleBatchRequest(
1616

1717
@SerialName(value = "action") val action: Action,
1818

19-
/** Operation arguments (varies with specified `action`). */
20-
@SerialName(value = "body") val body: JsonObject,
21-
2219
/** Index name (case-sensitive). */
2320
@SerialName(value = "indexName") val indexName: String,
21+
22+
/** Operation arguments (varies with specified `action`). */
23+
@SerialName(value = "body") val body: JsonObject? = null,
2424
)

0 commit comments

Comments
 (0)