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.
Fixes #89
Serialization is extracted from being hardcoded in the
AsyncApiMiddleware
to an external implementation of the new interfaceIAsyncApiDocumentSerializer
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.