Skip to content

Commit

Permalink
fix(specs): body is not required in multiple batch request (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3454

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
  • Loading branch information
algolia-bot and kai687 committed Aug 3, 2024
1 parent 9928474 commit d13f700
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import kotlinx.serialization.json.*
* MultipleBatchRequest
*
* @param action
* @param body Operation arguments (varies with specified `action`).
* @param indexName Index name (case-sensitive).
* @param body Operation arguments (varies with specified `action`).
*/
@Serializable
public data class MultipleBatchRequest(

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

/** Operation arguments (varies with specified `action`). */
@SerialName(value = "body") val body: JsonObject,

/** Index name (case-sensitive). */
@SerialName(value = "indexName") val indexName: String,

/** Operation arguments (varies with specified `action`). */
@SerialName(value = "body") val body: JsonObject? = null,
)

0 comments on commit d13f700

Please sign in to comment.