-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add support for messageId #458
Comments
@WaleedAshraf better copy-paste the slack conversation as we are on slack free plan and it will soon be lost |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@fmvilas I think we can add label that indicates this issue reached @WaleedAshraf keep in mind we no longer have schema in spec repo but now it is only in https://github.com/asyncapi/asyncapi-node to reach |
Yeah, agree this one is on Stage 1. I've added the proper label. |
@derberg in asyncapi-node I already have a pr asyncapi/spec-json-schemas#24 I think we need PR against the "2021-06-release" branch. Also, do we need to update js-parser right away? It doesn't need to be? Otherwise, we can end up with the same problem that other libs/tooling blocking newer versions of the schema. Well, I think these things will clear out with time on how/when we rollout new version. |
every PR for 2.1 release must be against
To get a change in the spec it must reach Stage 3 and it requires a change (approved PR) against the release branch. Have a look at the guide We want to have at least schema and parser supporting the latest spec as the most important tools. The others can follow up independently before or after the release. |
Got it. I don't think I'll have time any soon. So, I'll just leave it here for someone to pick and I can help out if needed. |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
I am coming from me looking for a message-specific operationId. I am used to generate client code for OpenAPI specs, that is for example callable JS functions where the function names match the operationId s and the functions provide datagram / parameter validation. And obviously it would be nice for a client to be able to call sendPing(), subscribeToData() etc. that is, to have a send-function for each possible message. Having a operationId for each message would help achieving that, I guess. Currently operationId is bound to a channel. But since it may very well be reasonable to send multiple types of messages through the same channel and since it would be good to have a message specific send-function and a message-specific handler function for incoming messages a message-specific ID but probably even a message-specific operation ID may make sense. With OpenAPI each path/method combination must have its own operation. There is an inbalance in the hierarchy in AsyncAPI: There is no equivalent for an operation let's say for create entry. |
I'm moving back this to |
Hi @WaleedAshraf! since this RFC has been here for some time, I'm wondering if you would like to retake it and be the champion, hopefully, you have some time now. I'm more than happy to help you moving it forward :) |
@smoya As I remember from the last discussion, this will require changes at multiple places and now I don't have the full context. I think you can help with defining each task as a separate issue, which can be picked up by anyone. I might be able to pick those. |
change needs to be done in repo where JSON Schema is and proper helper function added to JS Parser. Should not be much work to do IMHO, we can help coordinate for sure. |
@WaleedAshraf As you requested, here is the list of issues so you can track progress:
|
@WaleedAshraf Would you like this one included in the 2.3 release? I know it's been quiet for a little while, but it looks like it could be do-able - I'd be happy to help if you'd like. |
Hi @dalelane |
@WaleedAshraf We plan to release 2.4 release soon (April 2022). Do you think you will have some time for materializing this RFC? |
@smoya Yes, I'll have some time. Let's sync on this on Slack. |
Is Waleed back? 😱 🚀 🎉 |
@smoya PR is there 🎉 . Who can review it? |
@WaleedAshraf we also need an update to JSON Schema, you had a PR in the past asyncapi/spec-json-schemas#24 but you just need to create new against proper file and branch |
@derberg Yes. I will do that once the PR for parser PR is approved. As there can be more changes required and it gets delayed, etc. |
I think we can move this one to
and also solution itself makes a lot of sense and can't really be done differently. cc @smoya |
I guess the next step would be working on the |
Yeah, let's move it to Stage 2 👍 |
🎉 This issue has been resolved in version 2.4.0-2022-04-release.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This issue can be now closed as it got merged and released. @WaleedAshraf |
Is your feature request related to a problem? Please describe.
Currently, there is no support for a unique identifier for messages. My use case is to use
messageId
for validation.Describe the solution you'd like
We have operationId.
messageId
would be the exact same field for messages.Describe alternatives you've considered
For now, I'm relying on the
name
field and adding extra checks on it. But it's not required to be unique by specs.Additional context
Related slack conv: https://asyncapi.slack.com/archives/C34F2JV0U/p1604399108296600
Another previous conv about adding messageId: #94 (comment)
Related request from tooling: WaleedAshraf/asyncapi-validator#25
The text was updated successfully, but these errors were encountered: