Skip to content

Commit

Permalink
fix: bug in occupations validation schema
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbeck committed Sep 21, 2023
1 parent e6edd7f commit 680d55d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-flies-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@intavia/api-client": patch
---

Fix bug in occupations validation-schema
2 changes: 1 addition & 1 deletion src/validation-schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const historicalEvent = entityBase.extend({
export const person = entityBase.extend({
kind: z.literal("person"),
gender: gender.optional(),
occupations: z.array(vocabularyEntry.shape.id).optional(),
occupations: z.array(vocabularyEntry).optional(),
});

export const place = entityBase.extend({
Expand Down

0 comments on commit 680d55d

Please sign in to comment.