feat(pubsub): Add Schema support#9305
Conversation
e51cbac to
989d981
Compare
7bcf49f to
d8de2eb
Compare
4ab3ada to
dff3d90
Compare
|
Here is the summary of changes. You are about to add 12 region tags.
This comment is generated by snippet-bot.
|
|
Samples - Linux failure: 1 ruby version out of 4 failed with the following flake unrelated to this PR: |
anguillanneuf
left a comment
There was a problem hiding this comment.
I reviewed the samples:
- google-cloud-pubsub/samples/acceptance/data/*
- google-cloud-pubsub/samples/utilities/us-states_pb.rb
- google-cloud-pubsub/samples/schemas.rb
- google-cloud-pubsub/samples/acceptance/schemas_test.rb: thank you for adding tests for all the different scenarios!
|
@anguillanneuf Thank you! |
| gem.add_dependency "google-cloud-pubsub-v1", "~> 0.0" | ||
|
|
||
| gem.add_development_dependency "autotest-suffix", "~> 1.1" | ||
| gem.add_development_dependency "avro", "~> 1.10" |
There was a problem hiding this comment.
Is this introducing the dependency because of the tests and/or samples? I'm a little nervous introducing the dependency for the entire library just because of those. For example, one who is using proto isn't going to want to have a dependency on the avro library.
There was a problem hiding this comment.
It's just for tests in this case, and won't impact the published package.
Development dependencies aren't installed by default and aren't activated when a gem is required.
https://guides.rubygems.org/specification-reference/#add_development_dependency
| # than the one currently connected to, the alternate project ID can be | ||
| # specified here. Not used if a fully-qualified schema name is | ||
| # provided for `schema_name`. | ||
| # @param [Boolean] skip_lookup Optionally create a {Subscription} object |
There was a problem hiding this comment.
Subscription -> Schema throughout this file.
|
OSx build failing with: |
closes: #9304