mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(config): ✨ Add JSON schema for config
This commit is contained in:
parent
d20988afa1
commit
7d1522cc1e
5 changed files with 4023 additions and 2 deletions
6
packages/config-manager/json-schema.ts
Normal file
6
packages/config-manager/json-schema.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { zodToJsonSchema } from "zod-to-json-schema";
|
||||
import { configValidator } from "./config.type";
|
||||
|
||||
const jsonSchema = zodToJsonSchema(configValidator);
|
||||
|
||||
console.write(`${JSON.stringify(jsonSchema, null, 4)}\n`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue