forked from phoenix-oss/llama-stack-mirror
Fix the OpenAPI HTML
This commit is contained in:
parent
c9ab72fa82
commit
b17277b06a
5 changed files with 250 additions and 120 deletions
|
@ -109,10 +109,10 @@ def get_class_property_docstrings(
|
|||
def docstring_to_schema(data_type: type) -> Schema:
|
||||
short_description, long_description = get_class_docstrings(data_type)
|
||||
schema: Schema = {}
|
||||
if short_description:
|
||||
schema["title"] = short_description
|
||||
if long_description:
|
||||
schema["description"] = long_description
|
||||
|
||||
description = "\n".join(filter(None, [short_description, long_description]))
|
||||
if description:
|
||||
schema["description"] = description
|
||||
return schema
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue