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

AVRO-1746 - Support JSON encoding in Ruby #56

Closed
wants to merge 4 commits into from

Conversation

yadavsaroj
Copy link

Adds support for JSON encoding in Ruby.

A note about implementation - in order to keep the patch minimum, I have made json encoder/decoder inherit from binary encoder/decoder. As part of future changes, may be we can define generic encoder/decoder base classes and have binary/json classes add specific implementations. After that's done, we might be able to DRY validation related logic.

# -*- encoding: utf-8 -*-
# stub: avro 1.9.0.pre1 ruby lib

Gem::Specification.new do |s|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gemspec is built using Echoe in the Rakefile. Could you merge your changes into there?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created it using rake build_gemspec. I've removed it for now.

@YuvalNaturalInt
Copy link

Hello, I've tried the code - it look real good - and i've had problems with the binary encoder

@yadavsaroj
Copy link
Author

@YuvalNaturalInt do you mean you have problems with the binary encoder in this branch? If yes, I would be happy to look into it if you could share more info about it.

@rdblue
Copy link
Contributor

rdblue commented Feb 4, 2016

@yadavsaroj, this was closed as part of the process to move the project to git. I can't re-open it but you probably can. Seems like a good reminder to get this closed out!

@Kenji-H
Copy link

Kenji-H commented Jun 5, 2018

I would like this PR to be merged...

SingingBush pushed a commit to SingingBush/avro that referenced this pull request Jun 29, 2023
Also fix a bug where GenerateAvroProtocolTask can't be used without a runtime configuration
SingingBush pushed a commit to SingingBush/avro that referenced this pull request Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants