feat: all fields optional
Some checks failed
Build and release / Build (push) Failing after 1m14s
Build and release / update-release-draft (push) Has been skipped
Build and release / Release (push) Has been skipped

This commit is contained in:
Morten Olsen
2025-12-10 22:09:09 +01:00
parent 1255639058
commit 3641e86da5
3 changed files with 7 additions and 9 deletions

View File

@@ -14,9 +14,9 @@ const documentSchema = z
text: z.string().nullable(),
source: z.string().nullable(),
sourceId: z.string().nullable(),
type: z.string(),
type: z.string().nullable(),
typeVersion: z.int().nullable(),
metadata: z.unknown(),
metadata: z.unknown().nullable(),
})
.meta({ id: 'Document' });
@@ -31,7 +31,7 @@ const documentUpsertSchema = z
text: z.string().nullish(),
source: z.string().nullish(),
sourceId: z.string().nullish(),
type: z.string().optional(),
type: z.string().nullish(),
typeVersion: z.int().nullish(),
metadata: z.unknown().nullish(),
})