Skip to content

Commit

Permalink
fix: Fix homepage not loading when hitting adding invalid URL during …
Browse files Browse the repository at this point in the history
…crawling. Fixes #626
  • Loading branch information
MohamedBassem committed Nov 17, 2024
1 parent 82cd3bb commit dd20fb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions packages/open-api/hoarder-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@
]
},
"url": {
"type": "string",
"format": "uri"
"type": "string"
},
"title": {
"type": "string",
Expand All @@ -125,8 +124,7 @@
},
"imageUrl": {
"type": "string",
"nullable": true,
"format": "uri"
"nullable": true
},
"imageAssetId": {
"type": "string",
Expand All @@ -146,8 +144,7 @@
},
"favicon": {
"type": "string",
"nullable": true,
"format": "uri"
"nullable": true
},
"htmlContent": {
"type": "string",
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/types/bookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ export const zAssetSchema = z.object({

export const zBookmarkedLinkSchema = z.object({
type: z.literal(BookmarkTypes.LINK),
url: z.string().url(),
url: z.string(),
title: z.string().nullish(),
description: z.string().nullish(),
imageUrl: z.string().url().nullish(),
imageUrl: z.string().nullish(),
imageAssetId: z.string().nullish(),
screenshotAssetId: z.string().nullish(),
fullPageArchiveAssetId: z.string().nullish(),
videoAssetId: z.string().nullish(),
favicon: z.string().url().nullish(),
favicon: z.string().nullish(),
htmlContent: z.string().nullish(),
crawledAt: z.date().nullish(),
});
Expand Down

0 comments on commit dd20fb7

Please sign in to comment.