Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faststream docs #403

Draft
wants to merge 9 commits into
base: fastapi-poc
Choose a base branch
from
Draft

Faststream docs #403

wants to merge 9 commits into from

Conversation

Kilo59
Copy link
Contributor

@Kilo59 Kilo59 commented Aug 21, 2024

Generate AsyncAPI docs from the Faststream App.

image

Copy link

codecov bot commented Aug 21, 2024

❌ 10 Tests Failed:

Tests completed Failed Passed Skipped
10 10 0 0
View the top 3 failed tests by shortest run time
 tests.agent
Stack Traces | 0s run time
No failure message available
 tests.agent
Stack Traces | 0s run time
No failure message available
 tests.test_logging_cfg
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@@ -191,7 +191,9 @@ class GXAgent:
_PYPI_GX_AGENT_PACKAGE_NAME = "great_expectations_cloud"
_PYPI_GREAT_EXPECTATIONS_PACKAGE_NAME = "great_expectations"

def __init__(self: Self):
def __init__(self: Self, app: FastStream, broker: RabbitBroker) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change for runner.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just discovered the Faststream app exposes a .broker attribute, so we don't need to inject app + broker, app by itself is enough.

Copy link
Contributor Author

@Kilo59 Kilo59 Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TrangPham
Also, I think I see how to make this not breaking, but I didn't have a chance to implement it today.
I'll try to push it in the morning.

@Kilo59 Kilo59 self-assigned this Aug 22, 2024
asyncapi.yaml Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To see what these docs would look like live, go to the asyncapi studio and paste them into the editor.

https://studio.asyncapi.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants