Skip to content

Commit

Permalink
chore: Fix config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-raining committed Sep 29, 2024
1 parent c8c4278 commit 29e8603
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/input/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export type StructuredDocumentSection = {
children: StructuredDocumentSection[];
};

export const ValidString = v.string();
export const ValidString = v.pipe(
v.string(),
v.trim(),
v.minLength(1, 'At least one character is required'),
);

export const ThemeObject = v.intersect([
v.required(
Expand Down

0 comments on commit 29e8603

Please sign in to comment.