asyncapi / saunter

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

Extract serialization #90

Closed neoaisac closed 3 years ago

neoaisac commented 3 years ago

Fixes #89

Serialization is extracted from being hardcoded in the AsyncApiMiddleware to an external implementation of the new interface IAsyncApiDocumentSerializer so that if the user of the library wants to execute the serialization of the generated document outside of the middleware they can do that with the expectation the output will be the same.