mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-01 16:28:06 +09:00
fix api response definition
This commit is contained in:
parent
7e9e38789d
commit
464a0e6e81
@ -48,71 +48,8 @@ export const meta = {
|
|||||||
res: {
|
res: {
|
||||||
type: 'object' as const,
|
type: 'object' as const,
|
||||||
optional: false as const, nullable: false as const,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
ref: 'User',
|
||||||
id: {
|
},
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: false as const,
|
|
||||||
format: 'id',
|
|
||||||
example: 'xxxxxxxxxx',
|
|
||||||
},
|
|
||||||
name: {
|
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: true as const
|
|
||||||
},
|
|
||||||
username: {
|
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: false as const
|
|
||||||
},
|
|
||||||
host: {
|
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: true as const
|
|
||||||
},
|
|
||||||
avatarUrl: {
|
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: false as const,
|
|
||||||
format: 'url'
|
|
||||||
},
|
|
||||||
avatarBlurhash: {
|
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: true as const
|
|
||||||
},
|
|
||||||
avatarColor: {
|
|
||||||
type: 'any' as const,
|
|
||||||
optional: false as const, nullable: true as const
|
|
||||||
},
|
|
||||||
emojis: {
|
|
||||||
type: 'array' as const,
|
|
||||||
optional: false as const, nullable: false as const,
|
|
||||||
items: {
|
|
||||||
type: 'object' as const,
|
|
||||||
nullable: false as const, optional: false as const,
|
|
||||||
properties: {
|
|
||||||
name: {
|
|
||||||
type: 'string' as const,
|
|
||||||
nullable: false as const, optional: false as const
|
|
||||||
},
|
|
||||||
host: {
|
|
||||||
type: 'string' as const,
|
|
||||||
nullable: true as const, optional: false as const
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
type: 'string' as const,
|
|
||||||
nullable: false as const, optional: false as const,
|
|
||||||
format: 'url'
|
|
||||||
},
|
|
||||||
aliases: {
|
|
||||||
type: 'array' as const,
|
|
||||||
nullable: false as const, optional: false as const,
|
|
||||||
items: {
|
|
||||||
type: 'string' as const,
|
|
||||||
nullable: false as const, optional: false as const
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default define(meta, async (ps, user) => {
|
export default define(meta, async (ps, user) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user