Download src/utils/settings/schemaOutput.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/7e3630c0acaa5173def3998cb5e71d4e61ad0f34/src/utils/settings/schemaOutput.ts
- Command line
-
hf download hf://chenbhao/codev@7e3630c0acaa5173def3998cb5e71d4e61ad0f34/src/utils/settings/schemaOutput.ts
-
curl -L -o schemaOutput.ts https://huggingface.co/chenbhao/codev/resolve/7e3630c0acaa5173def3998cb5e71d4e61ad0f34/src/utils/settings/schemaOutput.ts
317 Bytes
| 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) | |
| } | |