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