mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🏷️ Use more new schemas
This commit is contained in:
parent
bff1c5f734
commit
a0ce18337a
6 changed files with 27 additions and 45 deletions
|
|
@ -102,6 +102,7 @@ export const Status = z.object({
|
|||
},
|
||||
}),
|
||||
reblog: z
|
||||
// @ts-expect-error broken recursive types
|
||||
.lazy((): z.ZodType<ApiNote> => Status as z.ZodType<ApiNote>)
|
||||
.nullable()
|
||||
.openapi({
|
||||
|
|
@ -308,6 +309,7 @@ export const Status = z.object({
|
|||
}),
|
||||
reactions: z.array(NoteReaction).openapi({}),
|
||||
quote: z
|
||||
// @ts-expect-error broken recursive types
|
||||
.lazy((): z.ZodType<ApiNote> => Status as z.ZodType<ApiNote>)
|
||||
.nullable(),
|
||||
bookmarked: zBoolean.optional().openapi({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue