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

Enable Default Support for Protobuf #36

Merged
merged 1 commit into from
Nov 13, 2020
Merged

Enable Default Support for Protobuf #36

merged 1 commit into from
Nov 13, 2020

Conversation

AtakanColak
Copy link
Collaborator

@AtakanColak AtakanColak commented Nov 6, 2020

By setting default codecCreation to false we can have default support for protobuf. Also added Codec generation to schema.Codec() call to make up for this change, this way overall behaviour will stay the same for avro users. Fixes #30

@sashati
Copy link

sashati commented Nov 8, 2020

I'm afraid why you call it Default for Protobuf? When it seems you just disabled auto-creating for Avro.

@AtakanColak
Copy link
Collaborator Author

AtakanColak commented Nov 9, 2020

@sashati by disabling default avro codec creation, we stop default client from trying to create protobuf avro codecs.

@sashati
Copy link

sashati commented Nov 9, 2020

Thanks @AtakanColak for the reply. I get the point.
Well, maybe here is not a good place to ask. But I didn't find any place in the code to deal with Protobuf codes. Seems the Schema object is just Avro and adding Protobuf support needs a significant change in this codebase. Do you have any idea/sample code how to use it. Or is there any active development on Protobuf? I would love to contribute

@AtakanColak
Copy link
Collaborator Author

@sashati My experience with schema registry was unfortunately limited to Avro. Issues #16 and #17 would be the best place to discuss Protobuf. Any contribution would be surely welcome.

@AtakanColak AtakanColak merged commit ac61995 into riferrei:master Nov 13, 2020
@AtakanColak AtakanColak deleted the fix-30 branch November 13, 2020 16:27
thinker0 added a commit to thinker0/srclient that referenced this pull request May 11, 2021
* commit '975a69734c7052463bf133ad7ac4a92dc5dfc3ea':
  Add the ability to create a schema with an arbitrary name (riferrei#43)
  Add .gitignore (riferrei#40)
  Add delete subject (riferrei#38)
  Enable Default Support for Protobuf fix-30 (riferrei#36)
  add IsCompatible
  add mutex to codec and caching enabled
  add semaphore to http requests

# Conflicts:
#	go.mod
#	schemaRegistryClient.go
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

Successfully merging this pull request may close these issues.

Default initialisation of SchemaRegistryClient does not support Protobuf
3 participants