Skip to content

Commit

Permalink
cleaning up types
Browse files Browse the repository at this point in the history
  • Loading branch information
Reptapog committed Jan 19, 2024
1 parent 5667989 commit 0eaec92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/open-api/generated/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const Realm = z.object({
homepage: z.object({ blocks: z.array(UiBlock) }),
settings: RealmSettings,
realm_permissions: RealmPermissions,
boards: z.array(BoardSummary),
boards: z.array(z.union([LoggedInBoardSummary, BoardSummary])),
});
const BoardActivitySummary = z.object({
last_post_at: z.union([z.string(), z.null()]),
Expand Down
4 changes: 3 additions & 1 deletion types/open-api/realm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ components:
boards:
type: array
items:
$ref: "#/components/schemas/BoardSummary"
oneOf:
- $ref: "#/components/schemas/LoggedInBoardSummary"
- $ref: "#/components/schemas/BoardSummary"
required:
- id
- slug
Expand Down

0 comments on commit 0eaec92

Please sign in to comment.