asyncapi / saunter

Saunter is a code-first AsyncAPI documentation generator for dotnet.
https://www.asyncapi.com/
MIT License
194 stars 55 forks source link

[FEATURE] Allow usages of the annotation attributes on interfaces (not only classes) #213

Closed smoerijf closed 1 week ago

smoerijf commented 1 month ago

Why do we need this improvement?

Allows for nicer architecture using interfaces in the projects consuming AsyncApi.

How will this change help?

Service interfaces with annotations together with data classes can be separated from actual implementations. (Similar to WCF or gRPC)

Screenshots

No response

How could it be implemented/designed?

Allow the AsyncApi, Channel, ChannelParameter and Operation attributes to be used on interface targets.

(I've code & unitTests ready)

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!