mirror of
https://github.com/sst/opencode.git
synced 2025-08-10 08:18:02 +00:00
docs: readme
This commit is contained in:
parent
d7aca6230d
commit
af892e5432
8 changed files with 198 additions and 32 deletions
8
packages/opencode/script/schema.ts
Executable file
8
packages/opencode/script/schema.ts
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/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))
|
Loading…
Add table
Add a link
Reference in a new issue