fix: schema float type (#264)

float type is "float" in manifest.
This commit is contained in:
Yuan
2025-02-05 10:04:44 -08:00
committed by GitHub
parent 91b134a2a3
commit 1702f74e99
4 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ def _parse_type(type_: str) -> Any:
return str
elif type_ == "integer":
return int
elif type_ == "number":
elif type_ == "float":
return float
elif type_ == "boolean":
return bool

View File

@@ -169,7 +169,7 @@ class TestUtils:
[
("string", str),
("integer", int),
("number", float),
("float", float),
("boolean", bool),
("array", list),
],

View File

@@ -106,7 +106,7 @@ def _parse_type(type_: str) -> Any:
return str
elif type_ == "integer":
return int
elif type_ == "number":
elif type_ == "float":
return float
elif type_ == "boolean":
return bool

View File

@@ -169,7 +169,7 @@ class TestUtils:
[
("string", str),
("integer", int),
("number", float),
("float", float),
("boolean", bool),
("array", list),
],