feat: Add n8n extension manifest schema (no-changelog) (#14382)

This commit is contained in:
Alex Grozav
2025-04-04 07:40:08 +03:00
committed by GitHub
parent 90ba680631
commit 6cc91aa8e8
10 changed files with 357 additions and 69 deletions

View File

@@ -0,0 +1,16 @@
import { extensionManifestSchema } from '../src/schema';
import { zodToJsonSchema } from 'zod-to-json-schema';
import { writeFile } from 'fs/promises';
import { resolve } from 'path';
const __dirname = new URL('.', import.meta.url).pathname;
const rootDir = resolve(__dirname, '..');
const jsonSchema = zodToJsonSchema(extensionManifestSchema, {
name: 'N8nExtensionSchema',
nameStrategy: 'title',
});
(async () => {
await writeFile(resolve(rootDir, 'schema.json'), JSON.stringify(jsonSchema, null, 2));
})();