opencode/packages/opencode/script/schema.ts
2025-06-14 12:13:46 -04:00

8 lines
263 B
TypeScript
Executable file

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