MCPcopy Create free account
hub / github.com/deepnote/deepnote / run

Function run

packages/cli/scripts/generate-json-schemas.ts:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { integrationsFileSchema } from '@deepnote/database-integrations'
4
5async function run() {
6 // Dynamic import avoids tsc resolving zod-to-json-schema's deeply nested generics
7 const { zodToJsonSchema } = (await import('zod-to-json-schema')) as { zodToJsonSchema: (schema: unknown) => unknown }
8 const jsonSchema = zodToJsonSchema(integrationsFileSchema)
9 await fs.writeFile(path.join('json-schemas', 'integrations-file-schema.json'), JSON.stringify(jsonSchema, null, 2))
10}
11
12run()
13 .then(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected