-
-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0.0] Should we have messageId
and name
fields in Message Object?
#862
Comments
As per current spec messageId is already required to be unique across whole document. The main diff will be that currently, it's optional. You'll have to make it required. |
@WaleedAshraf Yeah, but that However, thinking about it second time I think that |
From #796 (comment) Let's check the definition for messageId field at https://www.asyncapi.com/docs/reference/specification/v2.5.0#messageObject:
Now let's think, Isn't the messageId right made for that purpose? My suggestion is to go further and deprecate |
Another discussion that should take place (unless there is a clear reason) is why do we have |
@smoya As for the message fields, I would leave the |
Looks like for |
I would completely remove it instead of deprecating it. We already use keys as ids in v3.0.0. |
And it's not true 😄 Why? For operation of course, because we can define operations in one place, new |
Sounds reasonable. Can we then just remove |
I think this wasn't include (for some reason) in #691. Considering the freeze we set up, I wonder if we shall discard it for 3.0 and rather be a candidate for 4.0. |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
|
We had discussion about it in the 3.0 meeting - https://youtu.be/H5P-gBwdFs0?t=506 (started from given second - about 25 minutes).
We wonder if we need
name
andmessageId
in new v3 spec. We can treat keys inchannel[x].messages
object asmessageId
. This means thatmessageId
(object key) then will be unique against the channel and not against the specification/application. We should discuss whether the change is a good one or whether we should rather leavemessageId
andname
. WDYT?cc @jonaslagoni @fmvilas @smoya @derberg @dalelane @char0n
You are also very important @WaleedAshraf You added
messageId
to the specification and we will be very grateful if you will add your 2 cents :)The text was updated successfully, but these errors were encountered: