Skip to content

Commit 68b5f36

Browse files
committed
JSON schema backend fall back to command name
1 parent 06ad05b commit 68b5f36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/styx/backend/jsonschema/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def to_output_schema_json(
164164

165165
if struct.base.docs.title:
166166
ret["title"] = struct.base.docs.title
167+
else:
168+
ret["title"] = struct.base.name
167169

168170
if struct.base.docs.description:
169171
ret["description"] = struct.base.docs.description

0 commit comments

Comments
 (0)