Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIにPOSTする際に要求される冗長な必須項目を減らして欲しい #13398

Closed
1 task
Sayamame-beans opened this issue Feb 19, 2024 · 0 comments · Fixed by #13824
Closed
1 task
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

Comments

@Sayamame-beans
Copy link
Member

Summary

#13396 でflash/updateについて言及されていますが、他のエンドポイントについても同様なものがあるようです。
複数のうちどれか1つが必要な場合はanyOfを使用した方が良さそうです。

例:



required: ['pageId', 'title', 'name', 'content', 'variables', 'script'],

required: ['webhookId', 'name', 'url', 'on', 'active'],

required: ['antennaId', 'name', 'src', 'keywords', 'excludeKeywords', 'users', 'caseSensitive', 'withReplies', 'withFile', 'notify'],

required: ['postId', 'title', 'fileIds'],

required: ['id', 'memo', 'url', 'imageUrl', 'place', 'priority', 'ratio', 'expiresAt', 'startsAt', 'dayOfWeek'],

Purpose

APIの利便性向上

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@Sayamame-beans Sayamame-beans added the ✨Feature This adds/improves/enhances a feature label Feb 19, 2024
@KisaragiEffective KisaragiEffective added 🧩API Issues regarding the interface between the server and the client. packages/backend Server side specific issue/PR labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants