fix: validation (better #8456) (#8461)

* Revert "revert 484e023c0"

This reverts commit c03b70c949.

* also allow pure renote

* fix checks for pure renote
This commit is contained in:
Johann150 2022-04-03 06:57:26 +02:00 committed by GitHub
parent ebb687cde4
commit c8935b32f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 300 additions and 105 deletions

View file

@ -35,7 +35,11 @@ export const meta = {
export const paramDef = {
type: 'object',
properties: {
withFiles: { type: 'boolean' },
withFiles: {
type: 'boolean',
default: false,
description: 'Only show notes that have attached files.',
},
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
sinceId: { type: 'string', format: 'misskey:id' },
untilId: { type: 'string', format: 'misskey:id' },