Skip to content

Commit

Permalink
fix: correct AsyncAPI 2.6 operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Nov 20, 2024
1 parent f22c2d5 commit 921ead8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
8 changes: 4 additions & 4 deletions faststream/specification/asyncapi/v2_6_0/schema/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def from_sub(cls, subscriber: SubscriberSpec) -> Self:
description=subscriber.description,
servers=None,
bindings=ChannelBinding.from_sub(subscriber.bindings),
subscribe=Operation.from_sub(subscriber.operation),
publish=None,
subscribe=None,
publish=Operation.from_sub(subscriber.operation),
)

@classmethod
Expand All @@ -58,6 +58,6 @@ def from_pub(cls, publisher: PublisherSpec) -> Self:
description=publisher.description,
servers=None,
bindings=ChannelBinding.from_pub(publisher.bindings),
subscribe=None,
publish=Operation.from_pub(publisher.operation),
subscribe=Operation.from_pub(publisher.operation),
publish=None,
)
9 changes: 0 additions & 9 deletions serve.py

This file was deleted.

0 comments on commit 921ead8

Please sign in to comment.