Skip to content

Commit bd5ead5

Browse files
fix(schema): include dark (#1535)
* Update configuration schema to include 'dark' as a required field in config.mdx and generate-metadata.ts * chore: add changeset
1 parent 9223822 commit bd5ead5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/petite-toys-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"flowbite-react": patch
3+
---
4+
5+
fix `schema.json`: add missing `dark` field in `required`

apps/web/content/docs/customize/config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The configuration file follows this JSON Schema:
5353
"default": true
5454
}
5555
},
56-
"required": ["components", "path", "prefix", "rsc", "tsx"]
56+
"required": ["components", "dark", "path", "prefix", "rsc", "tsx"]
5757
}
5858
```
5959

packages/ui/scripts/generate-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ async function generateSchema(components: string[]): Promise<void> {
249249
default: true,
250250
},
251251
},
252-
required: ["components", "path", "prefix", "rsc", "tsx"],
252+
required: ["components", "dark", "path", "prefix", "rsc", "tsx"],
253253
};
254254

255255
defaultSchema.properties.components.items.enum.push(...components);

0 commit comments

Comments
 (0)