π File detail
utils/settings/schemaOutput.ts
π§© .tsπ 9 linesπΎ 317 bytesπ text
β Back to All Filesπ― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes generateSettingsJSONSchema β mainly functions, hooks, or classes. Dependencies touch schema validation. It composes internal code from slowOperations and types (relative imports).
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
import { toJSONSchema } from 'zod/v4' import { jsonStringify } from '../slowOperations.js' import { SettingsSchema } from './types.js' export function generateSettingsJSONSchema(): string {
π€ Exports (heuristic)
generateSettingsJSONSchema
π External import roots
Package roots from from "β¦" (relative paths omitted).
zod
π₯οΈ Source preview
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)
}