Skip to content

Commit 0b04545

Browse files
committed
fix: Add $schema to schema.json
1 parent ccd47c4 commit 0b04545

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/src/config/schema.ts

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export type { Sidebar } from "./models/sidebar";
1717

1818
export const ConfigSchema = z
1919
.object({
20+
// The URL of the schema file
21+
$schema: z.string().url().optional().catch(undefined),
2022
// The name of the project
2123
name: z.string().min(1).optional().catch(undefined),
2224
// The description of the project
@@ -54,6 +56,7 @@ export const ConfigSchema = z
5456
sidebar,
5557
})
5658
.transform((config) => {
59+
if (config.$schema) delete config.$schema;
5760
return {
5861
...config,
5962
// Extract locales from the sidebar configuration

bun.lockb

-13.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)