-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove specs interface from Faststream and AsgiFaststream
- Loading branch information
Showing
14 changed files
with
115 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
"""AsyncAPI related functions.""" | ||
|
||
from faststream.specification.asyncapi.generate import get_app_schema | ||
from .base import AsyncAPIProto | ||
from .factory import AsyncAPI | ||
from faststream.specification.asyncapi.site import get_asyncapi_html | ||
|
||
__all__ = ( | ||
"AsyncAPIProto", | ||
"AsyncAPI", | ||
"get_asyncapi_html", | ||
"get_app_schema", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from faststream.specification.asyncapi.base import schema | ||
from .asyncapi import AsyncAPIProto | ||
|
||
__all__ = ("schema",) | ||
__all__ = ( | ||
"AsyncAPIProto", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from abc import abstractmethod | ||
from typing import Any, Protocol | ||
|
||
|
||
class AsyncAPIProto(Protocol): | ||
@abstractmethod | ||
def json(self) -> str: | ||
... | ||
|
||
@abstractmethod | ||
def jsonable(self) -> Any: | ||
... | ||
|
||
@abstractmethod | ||
def yaml(self) -> str: | ||
... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
from .asyncapi import AsyncAPI2 | ||
from .generate import get_app_schema | ||
|
||
__all__ = ("get_app_schema",) | ||
__all__ = ( | ||
"AsyncAPI2", | ||
"get_app_schema", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.