Skip to content

Commit

Permalink
RedisRouter asyncapi_version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
KrySeyt committed Aug 2, 2024
1 parent f635f0d commit 2f01e6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions faststream/redis/fastapi/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from typing_extensions import Annotated, Doc, deprecated, override

from faststream.__about__ import SERVICE_NAME
from faststream.asyncapi.version import AsyncAPIVersion
from faststream.broker.fastapi.router import StreamRouter
from faststream.broker.utils import default_filter
from faststream.redis.broker.broker import RedisBroker as RB
Expand Down Expand Up @@ -130,6 +131,10 @@ def __init__(
Optional[str],
Doc("AsyncAPI server description."),
] = None,
asyncapi_version: Annotated[
AsyncAPIVersion,
Doc("Version of AsyncAPI for schema generation")
] = AsyncAPIVersion.v2_6,
asyncapi_tags: Annotated[
Optional[Iterable[Union["asyncapi.Tag", "asyncapi.TagDict"]]],
Doc("AsyncAPI server tags."),
Expand Down Expand Up @@ -412,6 +417,7 @@ def __init__(
protocol=protocol,
description=description,
protocol_version=protocol_version,
asyncapi_version=asyncapi_version,
asyncapi_tags=asyncapi_tags,
asyncapi_url=asyncapi_url,
# FastAPI kwargs
Expand Down
Empty file.

0 comments on commit 2f01e6b

Please sign in to comment.