-
Notifications
You must be signed in to change notification settings - Fork 478
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 consumer proto schema validation for pulsar #3014
Conversation
Signed-off-by: yaron2 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with 2 nits
pubsub/pulsar/pulsar.go
Outdated
m.internalTopicSchemas[topic] = schemaMetadata{ | ||
protocol: avroProtocol, | ||
value: v, | ||
} | ||
} else if strings.HasSuffix(k, topicProtoSchemaIdentifier) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Total nit, but since we have 3 cases now it may be nice to change this to a switch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with 2 nits
Co-authored-by: Alessandro (Ale) Segala <[email protected]> Signed-off-by: Yaron Schneider <[email protected]>
Signed-off-by: yaron2 <[email protected]>
Adds protobuf schema validation for Pulsar consumers.