diff --git a/.changeset/allow-nullish-event-type.md b/.changeset/allow-nullish-event-type.md new file mode 100644 index 0000000..d38ef3d --- /dev/null +++ b/.changeset/allow-nullish-event-type.md @@ -0,0 +1,5 @@ +--- +"@everipedia/iq-utils": minor +--- + +Allow nullish EventType in BaseEvents schema to support existing wikis with null event types diff --git a/src/schema/index.ts b/src/schema/index.ts index d935ddd..a7588b7 100644 --- a/src/schema/index.ts +++ b/src/schema/index.ts @@ -243,7 +243,7 @@ export const BaseEvents = z.object({ id: z.string().nullish(), date: z.string().nullable(), title: z.string().nullish(), - type: EventType.nullable(), + type: EventType.nullish(), description: z.string().nullish(), link: z.string().nullish(), multiDateStart: z.string().nullish(),