Skip to content

Commit ba81215

Browse files
committed
fixed issue where markdown from github releases could be null
1 parent 6c7d817 commit ba81215

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared/schemas/changelog/release.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ export const GithubReleaseSchama = v.object({
55
name: v.string(),
66
draft: v.boolean(),
77
prerelease: v.boolean(),
8-
// publishedAt: v.pipe(v.string(), v.isoDateTime()),
98
html: v.string(),
10-
markdown: v.string(),
9+
markdown: v.nullable(v.string()), // can be null if no descroption was made
1110
publishedAt: v.pipe(v.string(), v.isoTimestamp()),
1211
})
1312

0 commit comments

Comments
 (0)