Files
claude-code/src/utils/settings/schemaOutput.ts
nirholas afe99d8c1b 💓 schemaOutput.ts
2026-03-31 10:24:28 +00:00

10 lines
318 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)
}