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/1ef6a2fc518bfb19ebd317a47d69a6778bcd49fa/src/utils/settings/schemaOutput.ts
- Command line
-
hf download hf://chenbhao/codev@1ef6a2fc518bfb19ebd317a47d69a6778bcd49fa/src/utils/settings/schemaOutput.ts
-
curl -L -o schemaOutput.ts https://huggingface.co/chenbhao/codev/resolve/1ef6a2fc518bfb19ebd317a47d69a6778bcd49fa/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) | |
| } | |