Add title to the json schemas

This commit is contained in:
Ashwin Bharambe 2025-02-19 13:26:39 -08:00
parent 5e7904ef6c
commit 31a5ba5268
3 changed files with 556 additions and 166 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -108,7 +108,9 @@ def get_class_property_docstrings(
def docstring_to_schema(data_type: type) -> Schema:
short_description, long_description = get_class_docstrings(data_type)
schema: Schema = {}
schema: Schema = {
"title": python_type_to_name(data_type),
}
description = "\n".join(filter(None, [short_description, long_description]))
if description: