BLOG-109 Fix published_time schema to include offset #110

Merged
squid merged 1 commits from BLOG-109_fix_zod_iso_datetime_parsing_error into main 2025-08-02 14:55:45 +08:00
Showing only changes of commit 74c0ad516a - Show all commits

View File

@ -8,7 +8,7 @@ export const PostInfoResponseSchema = z.object({
description: z.string(), description: z.string(),
preview_image_url: z.url(), preview_image_url: z.url(),
labels: z.array(LabelResponseSchema), labels: z.array(LabelResponseSchema),
published_time: z.iso.datetime() published_time: z.iso.datetime({ offset: true })
}); });
export class PostInfoResponseDto { export class PostInfoResponseDto {