/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
packages/framework/scripts/devtool.ts
17 строк
643 B
Adam Chmara
chore(root): apply biome formatter & linter fixes NV-6436 (#8838)
31 июл 2025, 14:59
Не верифицирован
31 июл 2025, 14:59
855fb8f
Код
Авторство
О чём код?
import { writeFileSync } from 'node:fs'; import path from 'node:path'; import $RefParser from '@apidevtools/json-schema-ref-parser'; const main = async () => { const parser = new $RefParser(); const schema = await parser.dereference(path.join(__dirname, 'schema_input.json')); // Edit this path to target the JSON schema that the send message endpoint uses // @ts-expect-error - components does not exist on the schema const body = schema.components.schemas['api.v2010.account.message']; writeFileSync(path.join(__dirname, 'schema_output.json'), JSON.stringify(body, null, 2)); console.log('schema.json updated'); }; main();