asyncapi / saunter

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

Tags #148

Closed Anaster666 closed 1 year ago

Anaster666 commented 1 year ago

Good morning!

Is only a simple question about the Tags, is it implemented?

Now in my UI appears all the operations inside "untagged", how can I configure it?

I have this: [PublishOperation(typeof(StateUpdatedIntegrationEvent), Summary = "Inform the state change.")]

Thanks!!

ame0410 commented 1 year ago

Operations.Tags exists, but the Tags property isn't exposed in OperationAttribute.

ame0410 commented 1 year ago

I just found this pull request #134 that attempts to solve the issue. @tehmantra will you be able to review it?

m-wild commented 1 year ago

Looks like the PR has a couple of conflicts, I'll get them resolved and push out a new version.

m-wild commented 1 year ago

Sorry for the delay - has been a busy couple of weeks - this is now published in v0.11.0 https://www.nuget.org/packages/Saunter/0.11.0

Anaster666 commented 1 year ago

Hi @tehmantra !

First of all thanks for all the help. But I have a question about it. Am I using correctly this property?

[Channel("Candidature/StateUpdated")] // Creates a Channel [Tags("Candidature")] [PublishOperation(typeof(CandidatureStateUpdatedIntegrationEvent), new string[] { "Candidature"}, Summary = "Event summary" )]

Obviously I'm missing something because I have this error:

Error: There were errors validating the AsyncAPI document. undefined./channels/Candidature~1StateUpdated/publish/tags/0/description should be string undefined./channels/Candidature~1StateUpdated/publish/tags/0/externalDocs should be object

Thanks for all