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

Open
1 task
Sayamame-beans opened this issue Feb 19, 2024 · 0 comments · May be fixed by #13824
Open
1 task

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

Sayamame-beans opened this issue Feb 19, 2024 · 0 comments · May be fixed by #13824
Labels
✨Feature This adds/improves/enhances a feature

Comments

@Sayamame-beans
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant