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 <[email protected]>
Co-authored-by: Kai Welke <[email protected]>
  • Loading branch information
algolia-bot and kai687 committed Aug 3, 2024
1 parent 036cb1c commit b744d0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions algoliasearch/search/models/multiple_batch_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit b744d0b

Please sign in to comment.