You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstNewsValidation=z.object({id: z.number(),created_at: z.string().nullable(),// need to use the date of actual postupdated_at: z.string().nullable(),// need to use the date of actual posttitle: z.string().nullable(),link: z.string().nullable(),category_id: z.number(),tags: z.array(z.object({id: z.number().optional(),name: z.string()})).optional(),author: z.object({name: z.string(),link: z.string().nullable(),image: z.string().nullable()}).nullable().optional(),raw: z.object({title: z.string().nullable(),imageCaption: z.string().nullable(),credits: z.string().nullable(),imageAlt: z.string().nullable(),content: z.string().nullable()}).optional(),media: z.array(z.object({url: z.string().nullable(),alt: z.string().nullable(),caption: z.string().nullable()}).nullable().optional()).nullable().optional(),summary: z.object({beginner: z.string().optional(),intermediate: z.string().optional(),expert: z.string().optional()})})
I will check the data structure of these blogs and create a unified data structure:
The text was updated successfully, but these errors were encountered: