Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

nsabovic/avro-schema

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-avro

Verify that JSON objects match schemas & encode them to AVRO binary.

    var Schema = require('avro-schema').Schema;
    var schema = new Schema();
    schema.load("myfile.avsc");
    // All types from myfile.avsc are available.
    schema.load("another.avsc");
    // Verifies that object o matches the schema from another.avsc
    schema.verify(o);
    // Verifies that object o matches a particular type name.
    schema.verify(o, 'MyFileType');
    // Now encode it to avro binary format.
    var buffer = schema.encode(o);

About

Node.js AVRO schema utilities

Resources

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.