forked from phoenix-oss/llama-stack-mirror
Add title to the json schemas
This commit is contained in:
parent
5e7904ef6c
commit
31a5ba5268
3 changed files with 556 additions and 166 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue