claude-code-best/src/utils/settings/schemaOutput.ts
claude-code-best f90eee85d8 feat: build
2026-03-31 19:22:47 +08:00

9 lines
317 B
TypeScript

import { toJSONSchema } from 'zod/v4'
import { jsonStringify } from '../slowOperations.js'
import { SettingsSchema } from './types.js'
export function generateSettingsJSONSchema(): string {
const jsonSchema = toJSONSchema(SettingsSchema(), { unrepresentable: 'any' })
return jsonStringify(jsonSchema, null, 2)
}