[
https://issues.apache.org/jira/browse/AVRO-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504203#comment-13504203
]
Quinn Slack commented on AVRO-485:
----------------------------------
I have an update to this that adds Javascript codegen. It uses ES5
Object.defineProperty to ensure that the object is valid after each field
update.
https://github.com/sqs/avro/tree/js-codegen/lang/js
Usage example at
https://github.com/sqs/avro/blob/js-codegen/lang/js/test/usage_test.js. Sample
codegen'd file at https://gist.github.com/4151179.
Should I prepare a patch with the JS codegen?
> JavaScript encoding/decoding
> ----------------------------
>
> Key: AVRO-485
> URL: https://issues.apache.org/jira/browse/AVRO-485
> Project: Avro
> Issue Type: Wish
> Reporter: Bruce Mitchener
> Assignee: Quinn Slack
> Fix For: 1.7.3
>
> Attachments: AVRO-485-js-validator.patch, AVRO-485.patch
>
>
> It would be very nice to have Javascript encoding/decoding support. There
> are at least a couple of interested in streaming Avro-encoded data to a
> browser-based client.
> Working with binary data in JS is a bit ugly ... here's a sample:
> http://github.com/christkv/node-mongodb-native/blob/master/lib/mongodb/bson/binary_parser.js
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira