78df3dc484
* docs: category & description for reset password * docs: category & description for testing * docs: descriptions for groups endpoints * docs: descriptions for drive file endpoints * docs: descriptions for sw endpoints * docs: descriptions for user list endpoints * docs: descriptions & result type for gallery posts * docs: descriptions & result type for user endpoints * docs: add return type for stats
27 lines
643 B
TypeScript
27 lines
643 B
TypeScript
import define from '../define.js';
|
|
|
|
export const meta = {
|
|
tags: ['non-productive'],
|
|
|
|
description: 'Endpoint for testing input validation.',
|
|
|
|
requireCredential: false,
|
|
} as const;
|
|
|
|
export const paramDef = {
|
|
type: 'object',
|
|
properties: {
|
|
required: { type: 'boolean' },
|
|
string: { type: 'string' },
|
|
default: { type: 'string', default: 'hello' },
|
|
nullableDefault: { type: 'string', nullable: true, default: 'hello' },
|
|
id: { type: 'string', format: 'misskey:id' },
|
|
},
|
|
required: ['required'],
|
|
} as const;
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default define(meta, paramDef, async (ps, me) => {
|
|
return ps;
|
|
});
|