api: add endpoint machine_schema

This commit is contained in:
DavHau
2024-06-27 16:38:15 +07:00
parent 27b0d18f0d
commit ea87166e44
4 changed files with 13 additions and 6 deletions

View File

@@ -196,7 +196,7 @@ def type_to_dict(t: Any, scope: str = "", type_map: dict[TypeVar, type] = {}) ->
}
if t is dict:
raise JSchemaTypeError(
"Error: generic dict type not supported. Use dict[str. Any] instead"
"Error: generic dict type not supported. Use dict[str, Any] instead"
)
# Optional[T] gets internally transformed Union[T,NoneType]