Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "zen-generator"
version = "0.1.7"
version = "0.1.8"
description = "A bidirectional Python code generator that converts between AsyncAPI 3.0 specifications and Python code (pure Python or FastAPI implementations)."
authors = [{ name = "Carlo Bertini [WaYdotNET]", email = "waydotnet@gmail.com" }]
readme = "README.md"
Expand Down
3 changes: 2 additions & 1 deletion zen_generator/generators/asyncapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def create_async_api_content(
# components.operations
components["operations"][func] = {
"action": "receive",
"description": content.get("description", ""),
# The description is now sourced from the 'request' object for better clarity.
"description": content.get("request", {}).get("description", ""),
"channel": {"$ref": f"#/channels/{func}"},
"messages": [{"$ref": f"#/channels/{func}/messages/request"}],
"reply": {
Expand Down
Loading