Skip to content

Commit 1c34d92

Browse files
committed
fix(models): allow empty string as docsUrl
1 parent 10a71c4 commit 1c34d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/models/src/lib/implementation/schemas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function descriptionSchema(description = 'Description (markdown)') {
5050
* @param description
5151
*/
5252
export function docsUrlSchema(description = 'Documentation site') {
53-
return urlSchema(description).optional();
53+
return urlSchema(description).optional().or(z.string().max(0)); // allow empty string (no URL validation)
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)