asyncapi / saunter

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

Fix for DocumentName not propagated in the clone. #170

Closed renjithnew2 closed 8 months ago

renjithnew2 commented 1 year ago

Fix for after adding a document name to AsyncApi attribute like below, and then trying to get DocumentName using IDocumentFilter it comes as null.

[AsyncApi("ampq")]

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 issue :https://github.com/tehmantra/saunter/issues/172

m-wild commented 8 months ago

Released as v0.13.0 https://www.nuget.org/packages/Saunter/0.13.0