From b744d0b1524a8a474ba5b56a847d9d63e61ab5a8 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Sat, 3 Aug 2024 07:29:06 +0000 Subject: [PATCH] fix(specs): body is not required in multiple batch request (generated) https://github.com/algolia/api-clients-automation/pull/3454 Co-authored-by: algolia-bot Co-authored-by: Kai Welke --- algoliasearch/search/models/multiple_batch_request.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/algoliasearch/search/models/multiple_batch_request.py b/algoliasearch/search/models/multiple_batch_request.py index 1826f722f..927ea11d3 100644 --- a/algoliasearch/search/models/multiple_batch_request.py +++ b/algoliasearch/search/models/multiple_batch_request.py @@ -7,7 +7,7 @@ from __future__ import annotations from json import loads -from typing import Any, Dict, Self +from typing import Any, Dict, Optional, Self from pydantic import BaseModel, ConfigDict, Field, StrictStr @@ -20,8 +20,9 @@ class MultipleBatchRequest(BaseModel): """ action: Action - body: Dict[str, Any] = Field( - description="Operation arguments (varies with specified `action`)." + body: Optional[Dict[str, Any]] = Field( + default=None, + description="Operation arguments (varies with specified `action`).", ) index_name: StrictStr = Field( description="Index name (case-sensitive).", alias="indexName"