APIにPOSTする際に要求される冗長な必須項目を減らして欲しい #13398
Labels
🧩API
Issues regarding the interface between the server and the client.
✨Feature
This adds/improves/enhances a feature
packages/backend
Server side specific issue/PR
Summary
#13396 でflash/updateについて言及されていますが、他のエンドポイントについても同様なものがあるようです。
複数のうちどれか1つが必要な場合は
anyOf
を使用した方が良さそうです。例:
misskey/packages/backend/src/server/api/endpoints/clips/update.ts
Line 44 in 034f472
misskey/packages/backend/src/server/api/endpoints/admin/emoji/update.ts
Line 60 in 034f472
misskey/packages/backend/src/server/api/endpoints/pages/update.ts
Line 73 in 034f472
misskey/packages/backend/src/server/api/endpoints/i/webhooks/update.ts
Line 43 in 034f472
misskey/packages/backend/src/server/api/endpoints/antennas/update.ts
Line 70 in 034f472
misskey/packages/backend/src/server/api/endpoints/gallery/posts/update.ts
Line 50 in 034f472
misskey/packages/backend/src/server/api/endpoints/admin/ad/update.ts
Line 43 in 034f472
Purpose
APIの利便性向上
Do you want to implement this feature yourself?
The text was updated successfully, but these errors were encountered: