mirror of
https://github.com/versia-pub/api.git
synced 2026-03-12 20:09:14 +01:00
fix(federation): 🐛 Omit incorrect extra types on ServerMetadata
This commit is contained in:
parent
071a149d3e
commit
6560c88b78
1 changed files with 5 additions and 1 deletions
|
|
@ -149,7 +149,11 @@ const ReportSchema = ExtensionSchema.extend({
|
|||
comment: z.string().optional(),
|
||||
});
|
||||
|
||||
const ServerMetadataSchema = EntitySchema.extend({
|
||||
const ServerMetadataSchema = EntitySchema.omit({
|
||||
created_at: true,
|
||||
id: true,
|
||||
uri: true,
|
||||
}).extend({
|
||||
type: z.literal("ServerMetadata"),
|
||||
name: z.string(),
|
||||
version: z.string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue