-
Notifications
You must be signed in to change notification settings - Fork 30
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
extend error message with name of message that is missing the name or msgIdentifier #197
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
yeah, we need a validation in place that will simply check if that required identifier is in the asyncapi document that one want's to use, and if not, block generation with proper message. I'm only worried for those that do not care about validation, and cannot modify their documents to add identifiers, what in their case. We should probably allow to disable validation? |
@derberg is this issue still valid ? |
yup it is, feel free to pick it up |
When using the nodejs-template to generate code and in one of your messages, you failed to pass the
name
ormessageId
. When running the code, you get the errorMessage Rejected. msgIdentifier "name" does not exist
but it does not tell you which of the message in your spec is missing the required property. So if you have a lot of messages in your spec, it will be quite hard for you to figure out which message is missing the propertyThe text was updated successfully, but these errors were encountered: