forked from mirror/misskey
✌️
This commit is contained in:
parent
c8111659e1
commit
995635dd27
@ -146,30 +146,10 @@ export const paramDef = {
|
||||
},
|
||||
// (re)note with text, files and poll are optional
|
||||
anyOf: [
|
||||
{
|
||||
properties: {
|
||||
text: { type: 'string' },
|
||||
},
|
||||
required: ['text'],
|
||||
},
|
||||
{
|
||||
properties: {
|
||||
fileIds: { type: 'array' },
|
||||
},
|
||||
required: ['fileIds'],
|
||||
},
|
||||
{
|
||||
properties: {
|
||||
mediaIds: { type: 'array' },
|
||||
},
|
||||
required: ['mediaIds'],
|
||||
},
|
||||
{
|
||||
properties: {
|
||||
poll: { type: 'object' },
|
||||
},
|
||||
required: ['poll'],
|
||||
},
|
||||
{ required: ['text'] },
|
||||
{ required: ['fileIds'] },
|
||||
{ required: ['mediaIds'] },
|
||||
{ required: ['poll'] },
|
||||
],
|
||||
} as const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user