Skip to content
Snippets Groups Projects
Commit a65eb502 authored by syuilo's avatar syuilo
Browse files

fix api response definition

parent 55c549a9
No related branches found
No related tags found
No related merge requests found
......@@ -48,71 +48,8 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
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
}
}
}
}
}
}
}
ref: 'User',
},
};
export default define(meta, async (ps, user) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment