Skip to content

Commit

Permalink
Fix optional bibtex fields
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed May 14, 2024
1 parent 849349c commit 7c3db01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/create-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ const Reference = z.object({
pages_end: z.string().nullable(),
folio: z.string().nullable(),
bibtex: z.object({
id: z.string().nullable(),
type: z.string().nullable(),
title: z.string().nullable(),
archive: z.string().nullable(),
archive_location: z.string().nullable(),
id: z.string().nullable().optional(),
type: z.string().nullable().optional(),
title: z.string().nullable().optional(),
archive: z.string().nullable().optional(),
archive_location: z.string().nullable().optional(),
}),
});
const Event = z
Expand Down

0 comments on commit 7c3db01

Please sign in to comment.