schema.ts 263 B

12345678
  1. #!/usr/bin/env bun
  2. import "zod-openapi/extend"
  3. import { Config } from "../src/config/config"
  4. import { zodToJsonSchema } from "zod-to-json-schema"
  5. const result = zodToJsonSchema(Config.Info)
  6. await Bun.write("config.schema.json", JSON.stringify(result, null, 2))