Skip to content

Commit 8c6396a

Browse files
algolia-botmillotp
andcommitted
fix(specs): typoTolerance can be a boolean string (generated)
algolia/api-clients-automation#4900 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
1 parent 651d65a commit 8c6396a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

algoliasearch/recommend/models/typo_tolerance_enum.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class TypoToleranceEnum(str, Enum):
2828

2929
STRICT = "strict"
3030

31+
TRUE = "true"
32+
33+
FALSE = "false"
34+
3135
@classmethod
3236
def from_json(cls, json_str: str) -> Self:
3337
"""Create an instance of TypoToleranceEnum from a JSON string"""

algoliasearch/search/models/typo_tolerance_enum.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class TypoToleranceEnum(str, Enum):
2828

2929
STRICT = "strict"
3030

31+
TRUE = "true"
32+
33+
FALSE = "false"
34+
3135
@classmethod
3236
def from_json(cls, json_str: str) -> Self:
3337
"""Create an instance of TypoToleranceEnum from a JSON string"""

0 commit comments

Comments
 (0)