Skip to content
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

Specify you want to use a messageId as messageIdentifier #198

Open
AceTheCreator opened this issue Mar 22, 2023 · 1 comment
Open

Specify you want to use a messageId as messageIdentifier #198

AceTheCreator opened this issue Mar 22, 2023 · 1 comment

Comments

@AceTheCreator
Copy link
Member

When using this template to generate your code, by default, it uses name as the messageIdentifier but if you use AsyncAPI v4 and above, there's already support for messageId, which means we should be able to use messageId as an identifier. So when generating your code, I suggest we add an optional additional flag that tells the generator to not use name but instead messageId.

Example @asyncapi/nodejs-template -o output -p server=production messageIdentifier=messageId

@derberg
Copy link
Member

derberg commented Mar 28, 2023

maybe flag should be called validation and not messageIdentifier ? and if not provided, then there is no validation?

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

No branches or pull requests

2 participants