asyncapi / saunter

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

Allow async api middlewares to be executed where required #173

Open ch-ti8m-michalpenka opened 10 months ago

ch-ti8m-michalpenka commented 10 months ago

With the current approach of mapping endpoints, we cannot exclude some middlewares (e.g. authoritzation) from execution.

I propose to give full control to the developers (PR coming), similar to what swashbuckle offers.

yvanruth commented 2 months ago

@VisualBean / @yurvon-screamo is this anything that you recon will be added to core? I have a use case in which I want to have our asyncapi files generated from an AWS Lamda project. The use case of having a way to tie the call to generate the documents with 'UseAsyncApi();' would be a great alternative for me.

VisualBean commented 2 months ago

@VisualBean / @yurvon-screamo is this anything that you recon will be added to core? I have a use case in which I want to have our asyncapi files generated from an AWS Lamda project. The use case of having a way to tie the call to generate the documents with 'UseAsyncApi();' would be a great alternative for me.

I think it would be a good addition. However can you elaborate on your usecase? Just so we keep it in mind?