mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
fix(federation): 🐛 Omit incorrect extra types on ServerMetadata
This commit is contained in:
parent
071a149d3e
commit
6560c88b78
|
|
@ -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…
Reference in a new issue