Skip to content

Commit 1f1dc11

Browse files
committed
Add note
1 parent 73bee0a commit 1f1dc11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/python-fastui/fastui/generate_typescript.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def main(python_object_str: str, typescript_output_file: Path): # pragma: no co
1515
json_schema = generate_json_schema(root_model)
1616
json_schema_file = Path('fastui-json-schema.json')
1717
json_schema_file.write_bytes(to_json(json_schema, indent=2))
18+
# NOTE: `json-schema-to-typescript` generates ugly schemas
19+
# (https://github.com/bcherny/json-schema-to-typescript/issues/193).
20+
# Note sure what the way forward is.
1821
json2ts(json_schema_file, typescript_output_file)
1922

2023

0 commit comments

Comments
 (0)