Releases: mozilla/jsonschema-transpiler
Releases · mozilla/jsonschema-transpiler
v2.0.0
The first release in years!
We now support JSON columns
What's Changed
- Update all dependencies by @badboy in #106
- Bug 1839640 - BigQuery: Convert json atoms to a JSON column type by @badboy in #107
- Dependency updates
New Contributors
Full Changelog: v1.10.0...v2.0.0
v1.10.0: Use pure rust libraries for regex and snakecasing (#101)
* Add formatted cargo toml * Make oniguruma an optional feature that can be enabled * Use rust 2018 macro import for lazy_static * Update documentation for building with features * Bump version to 1.10 * Add tests for alternative feature flags
Limit description length in BigQuery schemas
Propagate "description" from json schema to BigQuery schema
Adds #93 to include title
and description
fields from JSON Schemas.
Try it out:
echo '{
"description": "test description",
"title": "test title",
"type": "integer"
}' | jsonschema-transpiler --type bigquery
Add support for valueless maps
This includes #92 an option to create maps without values using the BigQuery type.
Try it out locally:
echo '{
"type": "object",
"additionalProperties": {"type": "object"}
}' | jsonschema-transpiler --type avro --allow-maps-without-value --resolve drop
Fixes a bug related to nested lists
See #90.
echo '{
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": [
{"type": "integer"}
],
"additionalItems": false
}
}
}' | jsonschema-transpiler --type bigquery --tuple-struct
Add support for tuples in the form of anonymous structs
See #89
Try it out:
{
"additionalItems": {
"type": "integer"
},
"items": [
{"type": "boolean"},
{"type": "string"}
],
"maxItems": 4,
"type": "array"
}
Remove redundant code path
Merge pull request #86 from acmiyaguchi/nullable Remove redundant code path
Add `--force-nullable` option to make all fields nullable
Merge pull request #85 from acmiyaguchi/nullable Fix #84 - Add `--force-nullable` option to make all fields nullable
Add support for `bytes` format
This release adds supports for the bytes
type, using the format
keyword.
Try it out:
{"type": "string", "format": "bytes"}