We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccd47c4 commit 0b04545Copy full SHA for 0b04545
api/src/config/schema.ts
@@ -17,6 +17,8 @@ export type { Sidebar } from "./models/sidebar";
17
18
export const ConfigSchema = z
19
.object({
20
+ // The URL of the schema file
21
+ $schema: z.string().url().optional().catch(undefined),
22
// The name of the project
23
name: z.string().min(1).optional().catch(undefined),
24
// The description of the project
@@ -54,6 +56,7 @@ export const ConfigSchema = z
54
56
sidebar,
55
57
})
58
.transform((config) => {
59
+ if (config.$schema) delete config.$schema;
60
return {
61
...config,
62
// Extract locales from the sidebar configuration
bun.lockb
-13.7 KB
0 commit comments