jsonschema-bigquery

JSON →
library 7.0.2 ·javascript
verified Jun 7, 2026

Convert JSON Schema (draft-07 or later) into Google BigQuery schema and create or patch tables. Current stable version 7.0.2, released 2023-06-30. Node >=12 required. Lightweight, no runtime dependencies. Key differentiator: direct CLI (jsbq) and embedded API for programmatic schema conversion, with options to prevent additional properties and continue on error. Respects JSON Schema concepts like required fields, enums, and nested objects; maps JSON Schema types to BigQuery types (STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, RECORD, REPEATED). Handles complex nested structures and arrays. Supports --preventAdditionalObjectProperties and --continueOnError flags. Integrates with bq CLI for advanced table options. Not actively maintained recently but stable.