mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-26 12:38:07 +09:00
9ebb464149
* wip
* ✌️
* use ajv/dist/core
* revert try
* clean up
23 lines
555 B
TypeScript
23 lines
555 B
TypeScript
import define from '../define';
|
|
|
|
export const meta = {
|
|
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;
|
|
});
|