asyncapi / saunter

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

DocumentName not propagated in the clone and hence not available in IDocumentFilter #172

Open renjithnew2 opened 10 months ago

renjithnew2 commented 10 months ago

I am trying to add a document name to AsyncApi attribute like below. [AsyncApi("ampq")]

When I try to get DocumentName using IDocumentFilter it comes as null I think this is due to DocumentName not propagated in the clone.

public void Apply(AsyncApiDocument document, DocumentFilterContext context)
{
        var docName = document.DocumentName; //docName will be always null.
}

Created a pull request to fix this. https://github.com/tehmantra/saunter/pull/170 thanks for checking this.