2022-02-27 03:07:39 +01:00
|
|
|
import define from '../define.js';
|
2022-02-19 06:05:32 +01:00
|
|
|
|
|
|
|
export const meta = {
|
|
|
|
requireCredential: false,
|
|
|
|
} as const;
|
|
|
|
|
2022-02-20 05:15:40 +01:00
|
|
|
export const paramDef = {
|
2022-02-19 06:05:32 +01:00
|
|
|
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;
|
|
|
|
});
|