Skip to content

mindler-sasu/zod2bq

Repository files navigation

Convert Zod Schemas to BigQuery Schemas

very nice project

import { zod2bq } from "zod2bq"
import { z } from "zod"

const zodSchema = z.object({
      beers: z.array(z.object({ name: z.string() })),
    });
const bigquerySchema = zod2bq(zodSchema);

You can write to JSON file with

const file = "./testBigQuerySchema.json"
const bigquerySchema = zod2bq(zodSchema, file);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published