Skip to content

Commit b744d0b

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 036cb1c commit b744d0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

algoliasearch/search/models/multiple_batch_request.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88

99
from json import loads
10-
from typing import Any, Dict, Self
10+
from typing import Any, Dict, Optional, Self
1111

1212
from pydantic import BaseModel, ConfigDict, Field, StrictStr
1313

@@ -20,8 +20,9 @@ class MultipleBatchRequest(BaseModel):
2020
"""
2121

2222
action: Action
23-
body: Dict[str, Any] = Field(
24-
description="Operation arguments (varies with specified `action`)."
23+
body: Optional[Dict[str, Any]] = Field(
24+
default=None,
25+
description="Operation arguments (varies with specified `action`).",
2526
)
2627
index_name: StrictStr = Field(
2728
description="Index name (case-sensitive).", alias="indexName"

0 commit comments

Comments
 (0)