Skip to content

Conversation

@justenstall
Copy link

This PR adds omitempty and omitzero to the JSON struct tags for any fields that are not required according to the AsyncAPI specification. Some fields required the newer omitzero tag to be excluded without changing them to a pointer type, but I used omitempty for every other field for maximum backwards compatibility.

There is also a bug fix for the Operation.Description field, which was set to use string as its name in JSON.

I documented that the MessageTrait.Payload field should probably be removed, but kept it for now.

I also documented some nuances with the interpretation of the Operation.Messages field.

@lerenn
Copy link
Owner

lerenn commented Oct 27, 2025

Sorry about the delay, I had some changes in my life this 2 past months, I'll take a look ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants