mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 17:36:57 +10:00
9 lines
317 B
TypeScript
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)
|
||
|
|
}
|