Package Exports
- jsonschema-parquet
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsonschema-parquet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jsonschema-parquet
Convert between JSONSchema and Parquet-MR formats
Usage
Command line (CLI)
$ jsonchema-parquet parquet --deref ~/gits/mozilla-pipeline-schemas/telemetry/*
Library / Require
// I am not happy with this, and will be fixing it VERY SOON.
> let { Parquet } = require("jsonschema-parquet")
> p = new Parquet();
> c = p.convert({title: 'a schema', properties: {a: {type:"integer"}}})
{ type: 'message',
name: 'a schema',
parts: [ { type: 'int64', required: false, name: 'a' } ] }
> console.log(p.toString(c))
message a schema {
optional int64 a;
}Horrible details / Opinions / Translation Strategy
Key Value Maps
Incomplete Sections / Wanting Fixes
- Arrays
- Other types
- conversion from parquet to JSONSchema
- more flags for allowing titles, etc from the cli